ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
represents a creation of local roles action More...
Public Member Functions | |
__construct ($a_action_id=0) | |
Constructor. More... | |
getType () | |
Get action type. More... | |
setRoleTemplateId ($a_role_template_id) | |
Set role template id. More... | |
getRoleTemplateId () | |
get role template id More... | |
apply () | |
Apply action. More... | |
revert () | |
Revert action. More... | |
save () | |
Create new action. More... | |
delete () | |
Delete ilDB $ilDB. More... | |
toXml (ilXmlWriter $writer) | |
Write xml of template action. More... | |
read () | |
Read db entry ilDB $ilDB. More... | |
Public Member Functions inherited from ilDidacticTemplateAction | |
__construct ($action_id=0) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getActionId () | |
Get action id. More... | |
setActionId ($a_action_id) | |
Set action id. More... | |
setType ($a_type_id) | |
Set type id. More... | |
setTemplateId ($a_id) | |
Set template id. More... | |
getTemplateId () | |
Get template id. More... | |
setRefId ($a_ref_id) | |
Set ref id of target object. More... | |
getRefId () | |
Get ref id of target object. More... | |
save () | |
write action to db overwrite for filling additional db fields More... | |
delete () | |
Delete didactic template action overwrite for filling additional db fields. More... | |
read () | |
ilDB $ilDB More... | |
getType () | |
Get type of template. More... | |
apply () | |
Apply action. More... | |
revert () | |
Implement everthing that is necessary to revert a didactic template. More... | |
__clone () | |
Clone method. More... | |
toXml (ilXmlWriter $writer) | |
Write xml for export. More... | |
Private Attributes | |
$role_template_id = 0 | |
Additional Inherited Members | |
Data Fields inherited from ilDidacticTemplateAction | |
const | TYPE_LOCAL_POLICY = 1 |
const | TYPE_LOCAL_ROLE = 2 |
const | TYPE_BLOCK_ROLE = 3 |
const | FILTER_SOURCE_TITLE = 1 |
const | FILTER_SOURCE_OBJ_ID = 2 |
const | FILTER_PARENT_ROLES = 3 |
const | PATTERN_PARENT_TYPE = 'action' |
Protected Member Functions inherited from ilDidacticTemplateAction | |
initSourceObject () | |
Init the source object. More... | |
filterRoles (ilObject $source) | |
Filter roles. More... | |
represents a creation of local roles action
Definition at line 12 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::__construct | ( | $a_action_id = 0 | ) |
Constructor.
int | $a_action_id |
Definition at line 20 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::apply | ( | ) |
Apply action.
Definition at line 55 of file class.ilDidacticTemplateLocalRoleAction.php.
References $source, ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilLoggerFactory\getLogger(), ilDidacticTemplateAction\getRefId(), getRoleTemplateId(), and ilDidacticTemplateAction\initSourceObject().
ilDidacticTemplateLocalRoleAction::delete | ( | ) |
Delete ilDB $ilDB.
Definition at line 134 of file class.ilDidacticTemplateLocalRoleAction.php.
References $ilDB, $query, and ilDidacticTemplateAction\getActionId().
ilDidacticTemplateLocalRoleAction::getRoleTemplateId | ( | ) |
get role template id
Definition at line 47 of file class.ilDidacticTemplateLocalRoleAction.php.
References $role_template_id.
Referenced by apply(), save(), and toXml().
ilDidacticTemplateLocalRoleAction::getType | ( | ) |
Get action type.
Definition at line 29 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::read | ( | ) |
Read db entry ilDB $ilDB.
Definition at line 180 of file class.ilDidacticTemplateLocalRoleAction.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), and setRoleTemplateId().
ilDidacticTemplateLocalRoleAction::revert | ( | ) |
Revert action.
Definition at line 103 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::save | ( | ) |
Create new action.
Definition at line 113 of file class.ilDidacticTemplateLocalRoleAction.php.
References $ilDB, $query, $res, ilDidacticTemplateAction\getActionId(), and getRoleTemplateId().
ilDidacticTemplateLocalRoleAction::setRoleTemplateId | ( | $a_role_template_id | ) |
Set role template id.
int | $a_role_template_id |
Definition at line 38 of file class.ilDidacticTemplateLocalRoleAction.php.
Referenced by read().
ilDidacticTemplateLocalRoleAction::toXml | ( | ilXmlWriter | $writer | ) |
Write xml of template action.
ilXmlWriter | $writer |
Definition at line 151 of file class.ilDidacticTemplateLocalRoleAction.php.
References ilObject\_lookupType(), ilXmlWriter\appendXML(), array, getRoleTemplateId(), ilRoleXmlExport\MODE_DTPL, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
private |
Definition at line 14 of file class.ilDidacticTemplateLocalRoleAction.php.
Referenced by getRoleTemplateId().