Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
ExternConfig Class Reference
Inheritance diagram for ExternConfig:
ExternConfigDb

Public Member Functions

 __construct ($range_id, $module_name, $config_id= '')
 
 getName ()
 
 getConfigName ()
 
 getType ()
 
 getTypeName ()
 
getConfiguration ()
 
 setConfiguration ($config)
 
 setDefaultConfiguration ($config)
 
 getParameterNames ()
 
 getAllParameterNames ()
 
 getValue ($element_name, $attribute)
 
 setValue ($element_name, $attribute, $value)
 
 getAttributes ($element_name, $tag, $second_set=false)
 
 getTag ($element_name, $tag, $second_set=false)
 
 restore ($module, $element_name= '', $values= '')
 
 store ()
 
 parse ()
 
 makeId ()
 
 getId ()
 
 createConfigName ($range_id)
 
 setGlobalConfig ($global_config, $registered_elements)
 
 insertConfiguration ()
 
 deleteConfiguration ()
 
 copy ($range_id)
 

Static Public Member Functions

static GetInstance ($range_id, $module_name, $config_id= '')
 
static GetAllConfigurations ($range_id, $type=null)
 
static GetConfigurationMetaData ($range_id, $config_id)
 
static ExistConfiguration ($range_id, $config_id)
 
static SetStandardConfiguration ($range_id, $config_id)
 
static DeleteAllConfigurations ($range_id)
 
static GetInfo ($range_id, $config_id)
 
static GetGlobalConfiguration ($range_id)
 
static ChangeName ($range_id, $module_type, $config_id, $old_name, $new_name)
 
static GetConfigurationByName ($range_id, $module_type, $name)
 
static GetStandardConfiguration ($range_id, $type)
 
static GetInstitutesWithConfigurations ($check_view=null)
 

Data Fields

 $id = null
 
 $config = []
 
 $global_id = null
 
 $module_type
 
 $module_name
 
 $config_name
 
 $range_id
 

Protected Member Functions

 updateConfiguration ()
 

Constructor & Destructor Documentation

__construct (   $range_id,
  $module_name,
  $config_id = '' 
)

Member Function Documentation

static ChangeName (   $range_id,
  $module_type,
  $config_id,
  $old_name,
  $new_name 
)
static
copy (   $range_id)
createConfigName (   $range_id)
static DeleteAllConfigurations (   $range_id)
static
deleteConfiguration ( )
static ExistConfiguration (   $range_id,
  $config_id 
)
static
static GetAllConfigurations (   $range_id,
  $type = null 
)
static

Returns an array of meta data for all configurations of an institute

Parameters
string$range_id
string$typeoptional parameter to check the right type of the range_id (the right type of "Einrichtung" sem or fak)
Returns
array ("name" the name of the configuration, "id" the config_id, "is_default" TRUE if it is the default configuration)
getAllParameterNames ( )
getAttributes (   $element_name,
  $tag,
  $second_set = false 
)
getConfigName ( )
& getConfiguration ( )
static GetConfigurationByName (   $range_id,
  $module_type,
  $name 
)
static
static GetConfigurationMetaData (   $range_id,
  $config_id 
)
static
static GetGlobalConfiguration (   $range_id)
static
getId ( )
static GetInfo (   $range_id,
  $config_id 
)
static
static GetInstance (   $range_id,
  $module_name,
  $config_id = '' 
)
static
static GetInstitutesWithConfigurations (   $check_view = null)
static
getName ( )
getParameterNames ( )
static GetStandardConfiguration (   $range_id,
  $type 
)
static
getTag (   $element_name,
  $tag,
  $second_set = false 
)

Returns a complete HTML-tag with attributes

getType ( )
getTypeName ( )
getValue (   $element_name,
  $attribute 
)
insertConfiguration ( )
makeId ( )
parse ( )
restore (   $module,
  $element_name = '',
  $values = '' 
)

Restores a configuration with all registered elements and their attributes. The restored configuration contains only the attributes of the current registered elements.

public

Parameters
object$moduleThe module whose configuration will be restored
string$element_nameThe name of the element
string[]$values These values overwrites the values in current configuration
setConfiguration (   $config)
setDefaultConfiguration (   $config)
setGlobalConfig (   $global_config,
  $registered_elements 
)
static SetStandardConfiguration (   $range_id,
  $config_id 
)
static
setValue (   $element_name,
  $attribute,
  $value 
)
store ( )
updateConfiguration ( )
protected

Field Documentation

$config = []
$config_name
$global_id = null
$id = null
$module_name
$module_type
$range_id

The documentation for this class was generated from the following file: