|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Collaboration diagram for ilDidacticTemplateSetting: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... | |
| getDescription () | |
| Get description. More... | |
| 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... | |
| delete () | |
| Delete settings. More... | |
| save () | |
| Save settings. More... | |
| update () | |
| Update settings @global ilDB $ilDB. More... | |
| toXml (ilXmlWriter $writer) | |
| Export. More... | |
| __clone () | |
| Implemented clone method. More... | |
Data Fields | |
| const | TYPE_CREATION = 1 |
Protected Member Functions | |
| setId ($a_id) | |
| Set id. More... | |
| read () | |
| read settings from db More... | |
Private Member Functions | |
| saveAssignments () | |
| Save assignments in DB. More... | |
| saveAssignment ($a_obj_type) | |
| Add one object assignment @global ilDB $ilDB. More... | |
| deleteAssignments () | |
| Delete assignments @global ilDB $ilDB. More... | |
Private Attributes | |
| $id = 0 | |
| $enabled = false | |
| $title = '' | |
| $description = '' | |
| $info = '' | |
| $type = self::TYPE_CREATION | |
| $assignments = array() | |
Definition at line 10 of file class.ilDidacticTemplateSetting.php.
| ilDidacticTemplateSetting::__construct | ( | $a_id = 0 | ) |
Constructor.
| int | $a_id |
Definition at line 28 of file class.ilDidacticTemplateSetting.php.
References read(), and setId().
Here is the call graph for this function:| ilDidacticTemplateSetting::__clone | ( | ) |
Implemented clone method.
Definition at line 395 of file class.ilDidacticTemplateSetting.php.
References enable(), and setId().
Here is the call graph for this function:| ilDidacticTemplateSetting::addAssignment | ( | $a_obj_type | ) |
Add one assignment obj type.
| string | $a_obj_type |
Definition at line 164 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateSetting::delete | ( | ) |
Delete settings.
Definition at line 172 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, ilDidacticTemplateObjSettings\deleteByTemplateId(), ilDidacticTemplateActionFactory\getActionsByTemplateId(), and getId().
Here is the call graph for this function:
|
private |
Delete assignments @global ilDB $ilDB.
Definition at line 260 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, and getId().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateSetting::enable | ( | $a_status | ) |
Set enabled status.
| bool | $a_status |
Definition at line 56 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getAssignments | ( | ) |
Get object assignemnts.
Definition at line 155 of file class.ilDidacticTemplateSetting.php.
References $assignments.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), saveAssignments(), and toXml().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getDescription | ( | ) |
Get description.
Definition at line 92 of file class.ilDidacticTemplateSetting.php.
References $description.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getId | ( | ) |
Get id.
Definition at line 47 of file class.ilDidacticTemplateSetting.php.
References $id.
Referenced by delete(), deleteAssignments(), ilDidacticTemplateImport\parseActions(), read(), save(), saveAssignment(), toXml(), and update().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getInfo | ( | ) |
Get installation info text.
Definition at line 119 of file class.ilDidacticTemplateSetting.php.
References $info.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getTitle | ( | ) |
Get title.
Definition at line 83 of file class.ilDidacticTemplateSetting.php.
References $title.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
Here is the caller graph for this function:| ilDidacticTemplateSetting::getType | ( | ) |
| ilDidacticTemplateSetting::isEnabled | ( | ) |
Check if template is enabled.
Definition at line 65 of file class.ilDidacticTemplateSetting.php.
References $enabled.
Referenced by save(), and update().
Here is the caller graph for this function:
|
protected |
read settings from db
Read settings
Read assigned objects
Definition at line 297 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, $res, $row, addAssignment(), DB_FETCHMODE_OBJECT, enable(), getId(), setDescription(), setInfo(), setTitle(), and setType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateSetting::save | ( | ) |
Save settings.
Definition at line 201 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, getDescription(), getId(), getInfo(), getTitle(), getType(), isEnabled(), saveAssignments(), and setId().
Here is the call graph for this function:
|
private |
Add one object assignment @global ilDB $ilDB.
| string | $a_obj_type |
Definition at line 243 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, and getId().
Referenced by saveAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Save assignments in DB.
Definition at line 229 of file class.ilDidacticTemplateSetting.php.
References getAssignments(), and saveAssignment().
Referenced by save(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateSetting::setAssignments | ( | Array | $a_ass | ) |
Set assignments.
| array | $a_ass |
Definition at line 146 of file class.ilDidacticTemplateSetting.php.
| ilDidacticTemplateSetting::setDescription | ( | $a_description | ) |
Set description.
| string | $a_description |
Definition at line 101 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
Here is the caller graph for this function:
|
protected |
Set id.
| int | $a_id |
Definition at line 38 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), __construct(), and save().
Here is the caller graph for this function:| ilDidacticTemplateSetting::setInfo | ( | $a_info | ) |
Set installation info text.
| string | $a_info |
Definition at line 110 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateSetting::setTitle | ( | $a_title | ) |
Set title.
| string | $a_title |
Definition at line 74 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateSetting::setType | ( | $a_type | ) |
Set type.
| int | $a_type |
Definition at line 128 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateSetting::toXml | ( | ilXmlWriter | $writer | ) |
Export.
| ilXmlWriter | $writer |
Definition at line 340 of file class.ilDidacticTemplateSetting.php.
References $info, $type, ilDidacticTemplateActionFactory\getActionsByTemplateId(), getAssignments(), getDescription(), getId(), getInfo(), getTitle(), getType(), TYPE_CREATION, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilDidacticTemplateSetting::update | ( | ) |
Update settings @global ilDB $ilDB.
Definition at line 274 of file class.ilDidacticTemplateSetting.php.
References $ilDB, $query, deleteAssignments(), getDescription(), getId(), getInfo(), getTitle(), getType(), isEnabled(), and saveAssignments().
Here is the call graph for this function:
|
private |
Definition at line 21 of file class.ilDidacticTemplateSetting.php.
Referenced by getAssignments().
|
private |
Definition at line 18 of file class.ilDidacticTemplateSetting.php.
Referenced by getDescription().
|
private |
Definition at line 16 of file class.ilDidacticTemplateSetting.php.
Referenced by isEnabled().
|
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(), and toXml().