ILIAS
Release_5_0_x_branch Revision 61816
|
represents a creation of local roles action More...
Public Member Functions | |
__construct ($a_action_id=0) | |
Constructor. | |
getType () | |
Get action type. | |
setRoleTemplateId ($a_role_template_id) | |
Set role template id. | |
getRoleTemplateId () | |
get role template id | |
apply () | |
Apply action. | |
revert () | |
Revert action. | |
save () | |
Create new action. | |
delete () | |
Delete ilDB $ilDB. | |
toXml (ilXmlWriter $writer) | |
Write xml of template action. | |
read () | |
Read db entry ilDB $ilDB. | |
Public Member Functions inherited from ilDidacticTemplateAction | |
getActionId () | |
Get action id. | |
setActionId ($a_action_id) | |
Set action id. | |
setType ($a_type_id) | |
Set type id. | |
setTemplateId ($a_id) | |
Set template id. | |
getTemplateId () | |
Get template id. | |
setRefId ($a_ref_id) | |
Set ref id of target object. | |
getRefId () | |
Get ref id of target object. | |
__clone () | |
Clone method. |
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 | PATTERN_PARENT_TYPE = 'action' |
Protected Member Functions inherited from ilDidacticTemplateAction | |
initSourceObject () | |
Init the source object. | |
filterRoles (ilObject $source) | |
Filter roles. |
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 |
Reimplemented from ilDidacticTemplateAction.
Definition at line 21 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::apply | ( | ) |
Apply action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 56 of file class.ilDidacticTemplateLocalRoleAction.php.
References $GLOBALS, ilObject\_lookupDescription(), ilObject\_lookupTitle(), getRoleTemplateId(), and ilDidacticTemplateAction\initSourceObject().
ilDidacticTemplateLocalRoleAction::delete | ( | ) |
Delete ilDB $ilDB.
Reimplemented from ilDidacticTemplateAction.
Definition at line 125 of file class.ilDidacticTemplateLocalRoleAction.php.
References $ilDB, $query, and ilDidacticTemplateAction\getActionId().
ilDidacticTemplateLocalRoleAction::getRoleTemplateId | ( | ) |
get role template id
Definition at line 48 of file class.ilDidacticTemplateLocalRoleAction.php.
References $role_template_id.
Referenced by apply(), save(), and toXml().
ilDidacticTemplateLocalRoleAction::getType | ( | ) |
Get action type.
Reimplemented from ilDidacticTemplateAction.
Definition at line 30 of file class.ilDidacticTemplateLocalRoleAction.php.
References ilDidacticTemplateAction\TYPE_LOCAL_ROLE.
ilDidacticTemplateLocalRoleAction::read | ( | ) |
Read db entry ilDB $ilDB.
Reimplemented from ilDidacticTemplateAction.
Definition at line 172 of file class.ilDidacticTemplateLocalRoleAction.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), and setRoleTemplateId().
ilDidacticTemplateLocalRoleAction::revert | ( | ) |
Revert action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 94 of file class.ilDidacticTemplateLocalRoleAction.php.
ilDidacticTemplateLocalRoleAction::save | ( | ) |
Create new action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 104 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 39 of file class.ilDidacticTemplateLocalRoleAction.php.
Referenced by read().
ilDidacticTemplateLocalRoleAction::toXml | ( | ilXmlWriter | $writer | ) |
Write xml of template action.
ilXmlWriter | $writer |
Reimplemented from ilDidacticTemplateAction.
Definition at line 142 of file class.ilDidacticTemplateLocalRoleAction.php.
References ilObject\_lookupType(), ilXmlWriter\appendXML(), getRoleTemplateId(), ilRoleXmlExport\MODE_DTPL, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
private |
Definition at line 15 of file class.ilDidacticTemplateLocalRoleAction.php.
Referenced by getRoleTemplateId().