ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
getId () | |
Get id. More... | |
enable ($a_status) | |
Set enabled status. More... | |
isEnabled () | |
Check if template is enabled. More... | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
getPresentationTitle ($a_lng="") | |
getDescription () | |
Get description. More... | |
getPresentationDescription ($a_lng="") | |
setDescription ($a_description) | |
Set description. More... | |
setInfo ($a_info) | |
Set installation info text. More... | |
getInfo () | |
Get installation info text. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setAssignments (array $a_ass) | |
Set assignments. More... | |
getAssignments () | |
Get object assignemnts. More... | |
addAssignment ($a_obj_type) | |
Add one assignment obj type. More... | |
getEffectiveFrom () | |
setEffectiveFrom ($effective_from) | |
isAutoGenerated () | |
isExclusive () | |
setExclusive ($exclusive) | |
getTranslations () | |
get all translations from this object More... | |
delete () | |
Delete settings. More... | |
save () | |
Save settings. More... | |
update () | |
Update settings ilDB $ilDB. More... | |
toXml (ilXmlWriter $writer) | |
Export. More... | |
__clone () | |
Implemented clone method. More... | |
getTranslationObject () | |
isEffective ($a_node_id) | |
Data Fields | |
const | TYPE_CREATION = 1 |
Protected Member Functions | |
setId ($a_id) | |
Set id. More... | |
getPresentation ($a_value, $a_lng) | |
saveEffectiveNodes () | |
deleteEffectiveNodes () | |
readEffectiveNodes () | |
read () | |
read settings from db More... | |
Private Member Functions | |
setAutoGenerated ($auto_generated) | |
DO NOT CHANGE THIS VALUE. More... | |
saveAssignments () | |
Save assignments in DB. More... | |
saveAssignment ($a_obj_type) | |
Add one object assignment ilDB $ilDB. More... | |
deleteAssignments () | |
Delete assignments ilDB $ilDB. More... | |
Private Attributes | |
$id = 0 | |
$enabled = false | |
$title = '' | |
$description = '' | |
$info = '' | |
$type = self::TYPE_CREATION | |
$assignments = array() | |
$effective_from = array() | |
$auto_generated = false | |
$exclusive = false | |
Definition at line 10 of file class.ilDidacticTemplateSetting.php.
ilDidacticTemplateSetting::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Definition at line 31 of file class.ilDidacticTemplateSetting.php.
References read(), and setId().
ilDidacticTemplateSetting::__clone | ( | ) |
Implemented clone method.
Definition at line 608 of file class.ilDidacticTemplateSetting.php.
References ilDidacticTemplateCopier\appendCopyInfo(), enable(), getTitle(), setAutoGenerated(), setId(), and setTitle().
ilDidacticTemplateSetting::addAssignment | ( | $a_obj_type | ) |
Add one assignment obj type.
string | $a_obj_type |
Definition at line 197 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::delete | ( | ) |
Delete settings.
Definition at line 302 of file class.ilDidacticTemplateSetting.php.
References $action, $ilDB, $query, ilDidacticTemplateObjSettings\deleteByTemplateId(), deleteEffectiveNodes(), ilDidacticTemplateActionFactory\getActionsByTemplateId(), getId(), getTranslationObject(), and isAutoGenerated().
|
private |
Delete assignments ilDB $ilDB.
Definition at line 452 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, getId(), and isAutoGenerated().
Referenced by update().
|
protected |
ilDidacticTemplateSetting::enable | ( | $a_status | ) |
Set enabled status.
bool | $a_status |
Definition at line 59 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), and read().
ilDidacticTemplateSetting::getAssignments | ( | ) |
Get object assignemnts.
Definition at line 188 of file class.ilDidacticTemplateSetting.php.
References $assignments, and array.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), saveAssignments(), and toXml().
ilDidacticTemplateSetting::getDescription | ( | ) |
Get description.
Definition at line 110 of file class.ilDidacticTemplateSetting.php.
References $description.
Referenced by getPresentationDescription(), getTranslations(), save(), toXml(), and update().
ilDidacticTemplateSetting::getEffectiveFrom | ( | ) |
Definition at line 205 of file class.ilDidacticTemplateSetting.php.
References $effective_from.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), isEffective(), saveEffectiveNodes(), and toXml().
ilDidacticTemplateSetting::getId | ( | ) |
Get id.
Definition at line 50 of file class.ilDidacticTemplateSetting.php.
References $id.
Referenced by delete(), deleteAssignments(), deleteEffectiveNodes(), getTranslationObject(), ilDidacticTemplateImport\parseActions(), read(), readEffectiveNodes(), save(), saveAssignment(), saveEffectiveNodes(), toXml(), and update().
ilDidacticTemplateSetting::getInfo | ( | ) |
Get installation info text.
Definition at line 152 of file class.ilDidacticTemplateSetting.php.
References $info.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
|
protected |
Definition at line 279 of file class.ilDidacticTemplateSetting.php.
References $ilUser, $lang, and getTranslationObject().
Referenced by getPresentationDescription(), and getPresentationTitle().
ilDidacticTemplateSetting::getPresentationDescription | ( | $a_lng = "" | ) |
string | $a_lng |
Definition at line 119 of file class.ilDidacticTemplateSetting.php.
References $lng, getDescription(), getPresentation(), and isAutoGenerated().
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate().
ilDidacticTemplateSetting::getPresentationTitle | ( | $a_lng = "" | ) |
string | $a_lng |
Definition at line 95 of file class.ilDidacticTemplateSetting.php.
References $lng, getPresentation(), getTitle(), and isAutoGenerated().
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate().
ilDidacticTemplateSetting::getTitle | ( | ) |
Get title.
Definition at line 86 of file class.ilDidacticTemplateSetting.php.
References $title.
Referenced by __clone(), getPresentationTitle(), getTranslations(), save(), toXml(), and update().
ilDidacticTemplateSetting::getTranslationObject | ( | ) |
Definition at line 620 of file class.ilDidacticTemplateSetting.php.
References getId(), and ilMultilingualism\getInstance().
Referenced by delete(), getPresentation(), getTranslations(), and toXml().
ilDidacticTemplateSetting::getTranslations | ( | ) |
get all translations from this object
public
Definition at line 258 of file class.ilDidacticTemplateSetting.php.
References $lang, getDescription(), getTitle(), and getTranslationObject().
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate().
ilDidacticTemplateSetting::getType | ( | ) |
ilDidacticTemplateSetting::isAutoGenerated | ( | ) |
Definition at line 221 of file class.ilDidacticTemplateSetting.php.
References $auto_generated.
Referenced by delete(), deleteAssignments(), getPresentationDescription(), getPresentationTitle(), ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), saveAssignment(), and saveAssignments().
ilDidacticTemplateSetting::isEffective | ( | $a_node_id | ) |
int | $a_node_id |
Definition at line 630 of file class.ilDidacticTemplateSetting.php.
References getEffectiveFrom().
ilDidacticTemplateSetting::isEnabled | ( | ) |
Check if template is enabled.
Definition at line 68 of file class.ilDidacticTemplateSetting.php.
References $enabled.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), and update().
ilDidacticTemplateSetting::isExclusive | ( | ) |
Definition at line 239 of file class.ilDidacticTemplateSetting.php.
References $exclusive.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
|
protected |
read settings from db
Read settings
Read assigned objects
Definition at line 498 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, $res, $row, addAssignment(), enable(), ilDBConstants\FETCHMODE_OBJECT, getId(), readEffectiveNodes(), setAutoGenerated(), setDescription(), setExclusive(), setInfo(), setTitle(), and setType().
Referenced by __construct().
|
protected |
Definition at line 432 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, getId(), and setEffectiveFrom().
Referenced by read().
ilDidacticTemplateSetting::save | ( | ) |
Save settings.
Definition at line 336 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, getDescription(), getId(), getInfo(), getTitle(), getType(), isAutoGenerated(), isEnabled(), isExclusive(), saveAssignments(), and setId().
|
private |
Add one object assignment ilDB $ilDB.
string | $a_obj_type |
Definition at line 382 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, getId(), and isAutoGenerated().
Referenced by saveAssignments().
|
private |
Save assignments in DB.
Definition at line 365 of file class.ilDidacticTemplateSetting.php.
References getAssignments(), isAutoGenerated(), and saveAssignment().
Referenced by save(), and update().
|
protected |
Definition at line 401 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, getEffectiveFrom(), and getId().
Referenced by update().
ilDidacticTemplateSetting::setAssignments | ( | array | $a_ass | ) |
Set assignments.
array | $a_ass |
Definition at line 179 of file class.ilDidacticTemplateSetting.php.
References array.
|
private |
DO NOT CHANGE THIS VALUE.
bool | $auto_generated |
Definition at line 231 of file class.ilDidacticTemplateSetting.php.
References $auto_generated.
Referenced by __clone(), and read().
ilDidacticTemplateSetting::setDescription | ( | $a_description | ) |
Set description.
string | $a_description |
Definition at line 134 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::setEffectiveFrom | ( | $effective_from | ) |
int[] | $effective_from |
Definition at line 213 of file class.ilDidacticTemplateSetting.php.
References $effective_from.
Referenced by readEffectiveNodes().
ilDidacticTemplateSetting::setExclusive | ( | $exclusive | ) |
boolean | $exclusive |
Definition at line 247 of file class.ilDidacticTemplateSetting.php.
References $exclusive.
Referenced by read().
|
protected |
Set id.
int | $a_id |
Definition at line 41 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), __construct(), and save().
ilDidacticTemplateSetting::setInfo | ( | $a_info | ) |
Set installation info text.
string | $a_info |
Definition at line 143 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::setTitle | ( | $a_title | ) |
Set title.
string | $a_title |
Definition at line 77 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), and read().
ilDidacticTemplateSetting::setType | ( | $a_type | ) |
Set type.
int | $a_type |
Definition at line 161 of file class.ilDidacticTemplateSetting.php.
References $a_type.
Referenced by read().
ilDidacticTemplateSetting::toXml | ( | ilXmlWriter | $writer | ) |
Export.
ilXmlWriter | $writer |
Definition at line 542 of file class.ilDidacticTemplateSetting.php.
References $action, $ilSetting, $info, $type, array, ilDidacticTemplateActionFactory\getActionsByTemplateId(), getAssignments(), getDescription(), getEffectiveFrom(), getId(), getInfo(), getTitle(), getTranslationObject(), getType(), isExclusive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilDidacticTemplateSetting::update | ( | ) |
Update settings ilDB $ilDB.
Definition at line 471 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, deleteAssignments(), deleteEffectiveNodes(), getDescription(), getId(), getInfo(), getTitle(), getType(), isEnabled(), isExclusive(), saveAssignments(), and saveEffectiveNodes().
|
private |
Definition at line 21 of file class.ilDidacticTemplateSetting.php.
Referenced by getAssignments().
|
private |
Definition at line 23 of file class.ilDidacticTemplateSetting.php.
Referenced by isAutoGenerated(), and setAutoGenerated().
|
private |
Definition at line 18 of file class.ilDidacticTemplateSetting.php.
Referenced by getDescription().
|
private |
Definition at line 22 of file class.ilDidacticTemplateSetting.php.
Referenced by getEffectiveFrom(), and setEffectiveFrom().
|
private |
Definition at line 16 of file class.ilDidacticTemplateSetting.php.
Referenced by isEnabled().
|
private |
Definition at line 24 of file class.ilDidacticTemplateSetting.php.
Referenced by isExclusive(), and setExclusive().
|
private |
Definition at line 15 of file class.ilDidacticTemplateSetting.php.
Referenced by getId().
|
private |
Definition at line 19 of file class.ilDidacticTemplateSetting.php.
|
private |
Definition at line 17 of file class.ilDidacticTemplateSetting.php.
Referenced by getTitle().
|
private |
Definition at line 20 of file class.ilDidacticTemplateSetting.php.
const ilDidacticTemplateSetting::TYPE_CREATION = 1 |
Definition at line 12 of file class.ilDidacticTemplateSetting.php.
Referenced by ilDidacticTemplateImport\parseSettings().