ILIAS
Release_4_2_x_branch Revision 61807
|
Settings template application class. More...
Public Member Functions | |
__construct ($a_id=0, $config=null) | |
Constructor. | |
setId ($a_val) | |
Set id. | |
getId () | |
Get id. | |
setTitle ($a_val) | |
Set title. | |
getTitle () | |
Get title. | |
setType ($a_val) | |
Set type. | |
getType () | |
Get type. | |
setDescription ($a_val) | |
Set description. | |
getDescription () | |
Get description. | |
setSetting ($a_setting, $a_value, $a_hide=false) | |
Set setting. | |
removeSetting ($a_setting) | |
Remove setting. | |
removeAllSettings () | |
Remove all settings. | |
getSettings () | |
Get settings. | |
addHiddenTab ($a_tab_id) | |
Add hidden tab. | |
removeAllHiddenTabs () | |
Remove all hidden tabs. | |
getHiddenTabs () | |
Get hidden tabs. | |
getConfig () | |
Returns the template config associated with this template or NULL if none is given. | |
setConfig (ilSettingsTemplateConfig $config) | |
Sets the template config for this template. | |
read () | |
Read. | |
create () | |
Create settings template. | |
update () | |
Update settings template. | |
insertHiddenTabs () | |
Insert hidden tabs. | |
delete () | |
Delete settings template. |
Static Public Member Functions | |
static | getAllSettingsTemplates ($a_type) |
Get all settings templates of type. | |
static | lookupTitle ($a_id) |
Lookup title. |
Static Protected Member Functions | |
static | lookupProperty ($a_id, $a_prop) |
Lookup property. |
Private Member Functions | |
insertSettings () | |
Insert settings to db. |
Private Attributes | |
$id | |
$type | |
$title | |
$description | |
$setting = array() | |
$hidden_tab = array() | |
$config |
Settings template application class.
Definition at line 11 of file class.ilSettingsTemplate.php.
ilSettingsTemplate::__construct | ( | $a_id = 0 , |
|
$config = null |
|||
) |
ilSettingsTemplate::addHiddenTab | ( | $a_tab_id | ) |
Add hidden tab.
string | tab id |
Definition at line 180 of file class.ilSettingsTemplate.php.
Referenced by read().
ilSettingsTemplate::create | ( | ) |
Create settings template.
Definition at line 263 of file class.ilSettingsTemplate.php.
References $ilDB, getDescription(), getId(), getTitle(), getType(), insertHiddenTabs(), insertSettings(), and setId().
ilSettingsTemplate::delete | ( | ) |
Delete settings template.
Definition at line 353 of file class.ilSettingsTemplate.php.
References $ilDB.
|
static |
Get all settings templates of type.
string | $a_type | object type |
Definition at line 373 of file class.ilSettingsTemplate.php.
References $ilDB.
Referenced by ilSettingsTemplateTableGUI\__construct(), ilObjSurveyGUI\addDidacticTemplateOptions(), ilObjTestGUI\addDidacticTemplateOptions(), and ilObjSurveyGUI\importFileObject().
ilSettingsTemplate::getConfig | ( | ) |
Returns the template config associated with this template or NULL if none is given.
Definition at line 207 of file class.ilSettingsTemplate.php.
References $config.
Referenced by setSetting().
ilSettingsTemplate::getDescription | ( | ) |
Get description.
Definition at line 117 of file class.ilSettingsTemplate.php.
References $description.
Referenced by create(), and update().
ilSettingsTemplate::getHiddenTabs | ( | ) |
Get hidden tabs.
Definition at line 196 of file class.ilSettingsTemplate.php.
References $hidden_tab.
Referenced by insertHiddenTabs().
ilSettingsTemplate::getId | ( | ) |
ilSettingsTemplate::getSettings | ( | ) |
Get settings.
Definition at line 169 of file class.ilSettingsTemplate.php.
References $setting.
Referenced by insertSettings().
ilSettingsTemplate::getTitle | ( | ) |
Get title.
Definition at line 77 of file class.ilSettingsTemplate.php.
References $title.
Referenced by create(), and update().
ilSettingsTemplate::getType | ( | ) |
Get type.
Definition at line 97 of file class.ilSettingsTemplate.php.
References $type.
Referenced by create(), and update().
ilSettingsTemplate::insertHiddenTabs | ( | ) |
Insert hidden tabs.
Definition at line 336 of file class.ilSettingsTemplate.php.
References $ilDB, and getHiddenTabs().
Referenced by create(), and update().
|
private |
Insert settings to db.
Definition at line 317 of file class.ilSettingsTemplate.php.
References $ilDB, and getSettings().
Referenced by create(), and update().
|
staticprotected |
Lookup property.
id | level id |
Definition at line 396 of file class.ilSettingsTemplate.php.
References $ilDB.
Referenced by lookupTitle().
|
static |
Lookup title.
@return |
Definition at line 413 of file class.ilSettingsTemplate.php.
References lookupProperty().
Referenced by ilSettingsTemplateGUI\confirmSettingsTemplateDeletion(), and ilObjSurveyGUI\propertiesObject().
ilSettingsTemplate::read | ( | ) |
Read.
@return |
Definition at line 227 of file class.ilSettingsTemplate.php.
References $ilDB, addHiddenTab(), setDescription(), setSetting(), setTitle(), and setType().
Referenced by __construct().
ilSettingsTemplate::removeAllHiddenTabs | ( | ) |
Remove all hidden tabs.
Definition at line 188 of file class.ilSettingsTemplate.php.
ilSettingsTemplate::removeAllSettings | ( | ) |
Remove all settings.
Definition at line 161 of file class.ilSettingsTemplate.php.
ilSettingsTemplate::removeSetting | ( | $a_setting | ) |
Remove setting.
string | setting |
Definition at line 153 of file class.ilSettingsTemplate.php.
ilSettingsTemplate::setConfig | ( | ilSettingsTemplateConfig | $config | ) |
Sets the template config for this template.
ilSettingsTemplateConfig | $config |
Definition at line 216 of file class.ilSettingsTemplate.php.
References $config.
Referenced by __construct().
ilSettingsTemplate::setDescription | ( | $a_val | ) |
Set description.
string | $a_val | description |
Definition at line 107 of file class.ilSettingsTemplate.php.
Referenced by read().
ilSettingsTemplate::setId | ( | $a_val | ) |
Set id.
integer | id |
Definition at line 47 of file class.ilSettingsTemplate.php.
Referenced by __construct(), and create().
ilSettingsTemplate::setSetting | ( | $a_setting, | |
$a_value, | |||
$a_hide = false |
|||
) |
Set setting.
string | setting |
mixed | value |
boolean | hide the setting? |
Definition at line 129 of file class.ilSettingsTemplate.php.
References ilSettingsTemplateConfig\CHECKBOX, and getConfig().
Referenced by read().
ilSettingsTemplate::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 67 of file class.ilSettingsTemplate.php.
Referenced by read().
ilSettingsTemplate::setType | ( | $a_val | ) |
Set type.
string | $a_val | type |
Definition at line 87 of file class.ilSettingsTemplate.php.
Referenced by read().
ilSettingsTemplate::update | ( | ) |
Update settings template.
Definition at line 287 of file class.ilSettingsTemplate.php.
References $ilDB, getDescription(), getId(), getTitle(), getType(), insertHiddenTabs(), and insertSettings().
|
private |
Definition at line 24 of file class.ilSettingsTemplate.php.
Referenced by __construct(), getConfig(), and setConfig().
|
private |
Definition at line 16 of file class.ilSettingsTemplate.php.
Referenced by getDescription().
|
private |
Definition at line 18 of file class.ilSettingsTemplate.php.
Referenced by getHiddenTabs().
|
private |
Definition at line 13 of file class.ilSettingsTemplate.php.
Referenced by getId().
|
private |
Definition at line 17 of file class.ilSettingsTemplate.php.
Referenced by getSettings().
|
private |
Definition at line 15 of file class.ilSettingsTemplate.php.
Referenced by getTitle().
|
private |
Definition at line 14 of file class.ilSettingsTemplate.php.
Referenced by getType().