ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
getId () | |
Get id. | |
enable ($a_status) | |
Set enabled status. | |
isEnabled () | |
Check if template is enabled. | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
Get title. | |
getDescription () | |
Get description. | |
setDescription ($a_description) | |
Set description. | |
setInfo ($a_info) | |
Set installation info text. | |
getInfo () | |
Get installation info text. | |
setType ($a_type) | |
Set type. | |
getType () | |
Get type. | |
setAssignments (Array $a_ass) | |
Set assignments. | |
getAssignments () | |
Get object assignemnts. | |
addAssignment ($a_obj_type) | |
Add one assignment obj type. | |
delete () | |
Delete settings. | |
save () | |
Save settings. | |
update () | |
Update settings ilDB $ilDB. | |
toXml (ilXmlWriter $writer) | |
Export. | |
__clone () | |
Implemented clone method. |
Data Fields | |
const | TYPE_CREATION = 1 |
Protected Member Functions | |
setId ($a_id) | |
Set id. | |
read () | |
read settings from db |
Private Member Functions | |
saveAssignments () | |
Save assignments in DB. | |
saveAssignment ($a_obj_type) | |
Add one object assignment ilDB $ilDB. | |
deleteAssignments () | |
Delete assignments ilDB $ilDB. |
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 | ) |
ilDidacticTemplateSetting::__clone | ( | ) |
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().
ilDidacticTemplateSetting::delete | ( | ) |
Delete settings.
Definition at line 172 of file class.ilDidacticTemplateSetting.php.
References $query, ilDidacticTemplateActionFactory\getActionsByTemplateId(), and getId().
|
private |
Delete assignments ilDB $ilDB.
Definition at line 258 of file class.ilDidacticTemplateSetting.php.
References $query, and getId().
Referenced by update().
ilDidacticTemplateSetting::enable | ( | $a_status | ) |
Set enabled status.
bool | $a_status |
Definition at line 56 of file class.ilDidacticTemplateSetting.php.
Referenced by __clone(), and read().
ilDidacticTemplateSetting::getAssignments | ( | ) |
Get object assignemnts.
Definition at line 155 of file class.ilDidacticTemplateSetting.php.
References $assignments.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), saveAssignments(), and toXml().
ilDidacticTemplateSetting::getDescription | ( | ) |
Get description.
Definition at line 92 of file class.ilDidacticTemplateSetting.php.
References $description.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
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().
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().
ilDidacticTemplateSetting::getTitle | ( | ) |
Get title.
Definition at line 83 of file class.ilDidacticTemplateSetting.php.
References $title.
Referenced by ilDidacticTemplateSettingsGUI\initEditTemplate(), save(), toXml(), and update().
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().
|
protected |
read settings from db
Read settings
Read assigned objects
Definition at line 295 of file class.ilDidacticTemplateSetting.php.
References $query, $res, $row, addAssignment(), DB_FETCHMODE_OBJECT, enable(), getId(), setDescription(), setInfo(), setTitle(), and setType().
Referenced by __construct().
ilDidacticTemplateSetting::save | ( | ) |
Save settings.
Definition at line 199 of file class.ilDidacticTemplateSetting.php.
References $query, getDescription(), getId(), getInfo(), getTitle(), getType(), isEnabled(), saveAssignments(), and setId().
|
private |
Add one object assignment ilDB $ilDB.
string | $a_obj_type |
Definition at line 241 of file class.ilDidacticTemplateSetting.php.
References $query, and getId().
Referenced by saveAssignments().
|
private |
Save assignments in DB.
Definition at line 227 of file class.ilDidacticTemplateSetting.php.
References getAssignments(), and saveAssignment().
Referenced by save(), and update().
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().
|
protected |
Set id.
int | $a_id |
Definition at line 38 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 110 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::setTitle | ( | $a_title | ) |
Set title.
string | $a_title |
Definition at line 74 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::setType | ( | $a_type | ) |
Set type.
int | $a_type |
Definition at line 128 of file class.ilDidacticTemplateSetting.php.
Referenced by read().
ilDidacticTemplateSetting::toXml | ( | ilXmlWriter | $writer | ) |
Export.
ilXmlWriter | $writer |
Definition at line 338 of file class.ilDidacticTemplateSetting.php.
References $info, $type, ilDidacticTemplateActionFactory\getActionsByTemplateId(), getAssignments(), getDescription(), getId(), getInfo(), getTitle(), getType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilDidacticTemplateSetting::update | ( | ) |
Update settings ilDB $ilDB.
Definition at line 272 of file class.ilDidacticTemplateSetting.php.
References $query, deleteAssignments(), getDescription(), getId(), getInfo(), getTitle(), getType(), isEnabled(), and saveAssignments().
|
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().