|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Settings template application class. More...
Collaboration diagram for ilSettingsTemplate:Public Member Functions | |
| __construct ($a_id=0, $config=null) | |
| Constructor. More... | |
| setId ($a_val) | |
| Set id. More... | |
| getId () | |
| Get id. More... | |
| setAutoGenerated ($a_status) | |
| Set auto generated status. More... | |
| getAutoGenerated () | |
| Get auto generated status. More... | |
| setTitle ($a_val) | |
| Set title. More... | |
| getTitle () | |
| Get title. More... | |
| setType ($a_val) | |
| Set type. More... | |
| getType () | |
| Get type. More... | |
| setDescription ($a_val) | |
| Set description. More... | |
| getDescription () | |
| Get description. More... | |
| setSetting ($a_setting, $a_value, $a_hide=false) | |
| Set setting. More... | |
| removeSetting ($a_setting) | |
| Remove setting. More... | |
| removeAllSettings () | |
| Remove all settings. More... | |
| getSettings () | |
| Get settings. More... | |
| addHiddenTab ($a_tab_id) | |
| Add hidden tab. More... | |
| removeAllHiddenTabs () | |
| Remove all hidden tabs. More... | |
| getHiddenTabs () | |
| Get hidden tabs. More... | |
| getConfig () | |
| Returns the template config associated with this template or NULL if none is given. More... | |
| setConfig (ilSettingsTemplateConfig $config) | |
| Sets the template config for this template. More... | |
| read () | |
| Read. More... | |
| create () | |
| Create settings template. More... | |
| update () | |
| Update settings template. More... | |
| insertHiddenTabs () | |
| Insert hidden tabs. More... | |
| delete () | |
| Delete settings template. More... | |
Static Public Member Functions | |
| static | getAllSettingsTemplates ($a_type, $a_include_auto_generated=false) |
| Get all settings templates of type. More... | |
| static | lookupTitle ($a_id) |
| Lookup title. More... | |
| static | lookupDescription ($a_id) |
| Lookup title. More... | |
| static | translate ($a_title_desc) |
Static Protected Member Functions | |
| static | lookupProperty ($a_id, $a_prop) |
| Lookup property. More... | |
Protected Attributes | |
| $db | |
Private Member Functions | |
| insertSettings () | |
| Insert settings to db. More... | |
Private Attributes | |
| $id | |
| $type | |
| $title | |
| $description | |
| $setting = array() | |
| $hidden_tab = array() | |
| $auto_generated = false | |
| $config | |
Settings template application class.
Definition at line 11 of file class.ilSettingsTemplate.php.
| ilSettingsTemplate::__construct | ( | $a_id = 0, |
|
$config = null |
|||
| ) |
Constructor.
Definition at line 40 of file class.ilSettingsTemplate.php.
References $config, $DIC, read(), setConfig(), and setId().
Here is the call graph for this function:| ilSettingsTemplate::addHiddenTab | ( | $a_tab_id | ) |
Add hidden tab.
| string | tab id |
Definition at line 213 of file class.ilSettingsTemplate.php.
Referenced by read().
Here is the caller graph for this function:| ilSettingsTemplate::create | ( | ) |
Create settings template.
Definition at line 305 of file class.ilSettingsTemplate.php.
References $db, $ilDB, getAutoGenerated(), getDescription(), getId(), getTitle(), getType(), insertHiddenTabs(), insertSettings(), and setId().
Here is the call graph for this function:| ilSettingsTemplate::delete | ( | ) |
Delete settings template.
Definition at line 399 of file class.ilSettingsTemplate.php.
|
static |
Get all settings templates of type.
| string | $a_type | object type |
Definition at line 422 of file class.ilSettingsTemplate.php.
Referenced by ilSettingsTemplateTableGUI\__construct(), ilObjSurveyGUI\addDidacticTemplateOptions(), ilObjTestGUI\addDidacticTemplateOptions(), ilLOEditorGUI\applySettingsTemplate(), and ilObjSurveyGUI\importSurveyObject().
Here is the caller graph for this function:| ilSettingsTemplate::getAutoGenerated | ( | ) |
Get auto generated status.
Definition at line 88 of file class.ilSettingsTemplate.php.
References $auto_generated.
Referenced by create(), and update().
Here is the caller graph for this function:| ilSettingsTemplate::getConfig | ( | ) |
Returns the template config associated with this template or NULL if none is given.
Definition at line 240 of file class.ilSettingsTemplate.php.
References $config.
Referenced by setSetting().
Here is the caller graph for this function:| ilSettingsTemplate::getDescription | ( | ) |
Get description.
Definition at line 149 of file class.ilSettingsTemplate.php.
References $description.
Referenced by create(), and update().
Here is the caller graph for this function:| ilSettingsTemplate::getHiddenTabs | ( | ) |
Get hidden tabs.
Definition at line 229 of file class.ilSettingsTemplate.php.
References $hidden_tab.
Referenced by insertHiddenTabs().
Here is the caller graph for this function:| ilSettingsTemplate::getId | ( | ) |
Get id.
Definition at line 69 of file class.ilSettingsTemplate.php.
References $id.
Referenced by create(), and update().
Here is the caller graph for this function:| ilSettingsTemplate::getSettings | ( | ) |
Get settings.
Definition at line 202 of file class.ilSettingsTemplate.php.
References $setting.
Referenced by insertSettings().
Here is the caller graph for this function:| ilSettingsTemplate::getTitle | ( | ) |
Get title.
Definition at line 109 of file class.ilSettingsTemplate.php.
References $title.
Referenced by create(), and update().
Here is the caller graph for this function:| ilSettingsTemplate::getType | ( | ) |
Get type.
Definition at line 129 of file class.ilSettingsTemplate.php.
References $type.
Referenced by create(), and update().
Here is the caller graph for this function:| ilSettingsTemplate::insertHiddenTabs | ( | ) |
Insert hidden tabs.
Definition at line 383 of file class.ilSettingsTemplate.php.
References $db, $ilDB, and getHiddenTabs().
Referenced by create(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Insert settings to db.
Definition at line 365 of file class.ilSettingsTemplate.php.
References $db, $ilDB, and getSettings().
Referenced by create(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookup title.
return
Definition at line 486 of file class.ilSettingsTemplate.php.
References lookupProperty().
Here is the call graph for this function:
|
staticprotected |
Lookup property.
| id | level id |
Definition at line 455 of file class.ilSettingsTemplate.php.
Referenced by lookupDescription(), and lookupTitle().
Here is the caller graph for this function:
|
static |
Lookup title.
return
Definition at line 476 of file class.ilSettingsTemplate.php.
References lookupProperty().
Referenced by ilSettingsTemplateGUI\confirmSettingsTemplateDeletion(), and ilObjSurveyGUI\propertiesObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSettingsTemplate::read | ( | ) |
Read.
return
Definition at line 262 of file class.ilSettingsTemplate.php.
References $db, $ilDB, addHiddenTab(), setAutoGenerated(), setDescription(), setSetting(), setTitle(), and setType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSettingsTemplate::removeAllHiddenTabs | ( | ) |
Remove all hidden tabs.
Definition at line 221 of file class.ilSettingsTemplate.php.
| ilSettingsTemplate::removeAllSettings | ( | ) |
Remove all settings.
Definition at line 194 of file class.ilSettingsTemplate.php.
| ilSettingsTemplate::removeSetting | ( | $a_setting | ) |
Remove setting.
| string | setting |
Definition at line 186 of file class.ilSettingsTemplate.php.
| ilSettingsTemplate::setAutoGenerated | ( | $a_status | ) |
Set auto generated status.
| type | $a_status |
Definition at line 79 of file class.ilSettingsTemplate.php.
Referenced by read().
Here is the caller graph for this function:| ilSettingsTemplate::setConfig | ( | ilSettingsTemplateConfig | $config | ) |
Sets the template config for this template.
| ilSettingsTemplateConfig | $config |
Definition at line 250 of file class.ilSettingsTemplate.php.
References $config.
Referenced by __construct().
Here is the caller graph for this function:| ilSettingsTemplate::setDescription | ( | $a_val | ) |
Set description.
| string | $a_val | description |
Definition at line 139 of file class.ilSettingsTemplate.php.
Referenced by read().
Here is the caller graph for this function:| ilSettingsTemplate::setId | ( | $a_val | ) |
Set id.
| integer | id |
Definition at line 59 of file class.ilSettingsTemplate.php.
Referenced by __construct(), and create().
Here is the caller graph for this function:| ilSettingsTemplate::setSetting | ( | $a_setting, | |
| $a_value, | |||
$a_hide = false |
|||
| ) |
Set setting.
| string | setting |
| mixed | value |
| boolean | hide the setting? |
Definition at line 161 of file class.ilSettingsTemplate.php.
References ilSettingsTemplateConfig\CHECKBOX, and getConfig().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSettingsTemplate::setTitle | ( | $a_val | ) |
Set title.
| string | title |
Definition at line 99 of file class.ilSettingsTemplate.php.
Referenced by read().
Here is the caller graph for this function:| ilSettingsTemplate::setType | ( | $a_val | ) |
Set type.
| string | $a_val | type |
Definition at line 119 of file class.ilSettingsTemplate.php.
Referenced by read().
Here is the caller graph for this function:
|
static |
Definition at line 492 of file class.ilSettingsTemplate.php.
References $GLOBALS.
Referenced by ilSettingsTemplateTableGUI\fillRow().
Here is the caller graph for this function:| ilSettingsTemplate::update | ( | ) |
Update settings template.
Definition at line 332 of file class.ilSettingsTemplate.php.
References $db, $ilDB, getAutoGenerated(), getDescription(), getId(), getTitle(), getType(), insertHiddenTabs(), and insertSettings().
Here is the call graph for this function:
|
private |
Definition at line 26 of file class.ilSettingsTemplate.php.
Referenced by getAutoGenerated().
|
private |
Definition at line 33 of file class.ilSettingsTemplate.php.
Referenced by __construct(), getConfig(), and setConfig().
|
protected |
Definition at line 16 of file class.ilSettingsTemplate.php.
Referenced by create(), delete(), insertHiddenTabs(), insertSettings(), read(), and update().
|
private |
Definition at line 21 of file class.ilSettingsTemplate.php.
Referenced by getDescription().
|
private |
Definition at line 23 of file class.ilSettingsTemplate.php.
Referenced by getHiddenTabs().
|
private |
Definition at line 18 of file class.ilSettingsTemplate.php.
Referenced by getId().
|
private |
Definition at line 22 of file class.ilSettingsTemplate.php.
Referenced by getSettings().
|
private |
Definition at line 20 of file class.ilSettingsTemplate.php.
Referenced by getTitle().
|
private |
Definition at line 19 of file class.ilSettingsTemplate.php.
Referenced by getType().