|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Abstract class for template actions. More...
Inheritance diagram for ilDidacticTemplateAction:
Collaboration diagram for ilDidacticTemplateAction:Public Member Functions | |
| __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 () | |
| @global 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... | |
Data Fields | |
| 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 | |
| initSourceObject () | |
| Init the source object. More... | |
| filterRoles (ilObject $source) | |
| Filter roles. More... | |
Private Attributes | |
| $logger = null | |
| $action_id = 0 | |
| $tpl_id = 0 | |
| $type = 0 | |
| $ref_id = 0 | |
Abstract class for template actions.
Definition at line 10 of file class.ilDidacticTemplateAction.php.
| ilDidacticTemplateAction::__construct | ( | $action_id = 0 | ) |
Constructor.
Reimplemented in ilDidacticTemplateLocalRoleAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalPolicyAction.
Definition at line 38 of file class.ilDidacticTemplateAction.php.
References $action_id, $GLOBALS, read(), and setActionId().
Here is the call graph for this function:| ilDidacticTemplateAction::__clone | ( | ) |
Clone method.
Reimplemented in ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalPolicyAction.
Definition at line 202 of file class.ilDidacticTemplateAction.php.
References setActionId().
Here is the call graph for this function:
|
abstract |
Apply action.
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
| ilDidacticTemplateAction::delete | ( | ) |
Delete didactic template action overwrite for filling additional db fields.
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 151 of file class.ilDidacticTemplateAction.php.
References $ilDB, $query, and getActionId().
Here is the call graph for this function:
|
protected |
Filter roles.
| ilObject | $object |
Definition at line 230 of file class.ilDidacticTemplateAction.php.
References ilObject\_lookupTitle(), FILTER_PARENT_ROLES, FILTER_SOURCE_TITLE, getActionId(), ilLoggerFactory\getLogger(), ilObject\getRefId(), and ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId().
Referenced by ilDidacticTemplateBlockRoleAction\apply(), ilDidacticTemplateLocalPolicyAction\apply(), ilDidacticTemplateBlockRoleAction\revert(), and ilDidacticTemplateLocalPolicyAction\revert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateAction::getActionId | ( | ) |
Get action id.
Definition at line 59 of file class.ilDidacticTemplateAction.php.
References $action_id.
Referenced by delete(), ilDidacticTemplateBlockRoleAction\delete(), ilDidacticTemplateLocalPolicyAction\delete(), ilDidacticTemplateLocalRoleAction\delete(), filterRoles(), read(), ilDidacticTemplateBlockRoleAction\read(), ilDidacticTemplateLocalPolicyAction\read(), ilDidacticTemplateLocalRoleAction\read(), save(), ilDidacticTemplateBlockRoleAction\save(), ilDidacticTemplateLocalPolicyAction\save(), and ilDidacticTemplateLocalRoleAction\save().
Here is the caller graph for this function:| ilDidacticTemplateAction::getLogger | ( | ) |
Get logger.
Definition at line 50 of file class.ilDidacticTemplateAction.php.
References $logger.
Referenced by ilDidacticTemplateLocalPolicyAction\apply(), and ilDidacticTemplateLocalPolicyAction\revert().
Here is the caller graph for this function:| ilDidacticTemplateAction::getRefId | ( | ) |
Get ref id of target object.
Definition at line 114 of file class.ilDidacticTemplateAction.php.
References $ref_id.
Referenced by ilDidacticTemplateLocalRoleAction\apply(), and initSourceObject().
Here is the caller graph for this function:| ilDidacticTemplateAction::getTemplateId | ( | ) |
Get template id.
Definition at line 96 of file class.ilDidacticTemplateAction.php.
References $tpl_id.
Referenced by save().
Here is the caller graph for this function:
|
abstract |
Get type of template.
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
Referenced by save().
Here is the caller graph for this function:
|
protected |
Init the source object.
Definition at line 219 of file class.ilDidacticTemplateAction.php.
References ilObjectFactory\getInstanceByRefId(), and getRefId().
Referenced by ilDidacticTemplateBlockRoleAction\apply(), ilDidacticTemplateLocalPolicyAction\apply(), ilDidacticTemplateLocalRoleAction\apply(), ilDidacticTemplateBlockRoleAction\revert(), and ilDidacticTemplateLocalPolicyAction\revert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateAction::read | ( | ) |
@global ilDB $ilDB
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 164 of file class.ilDidacticTemplateAction.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getActionId(), and setTemplateId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Implement everthing that is necessary to revert a didactic template.
return bool
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
| ilDidacticTemplateAction::save | ( | ) |
write action to db overwrite for filling additional db fields
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 125 of file class.ilDidacticTemplateAction.php.
References $ilDB, $query, getActionId(), getTemplateId(), getType(), and setActionId().
Here is the call graph for this function:| ilDidacticTemplateAction::setActionId | ( | $a_action_id | ) |
Set action id.
| int | $a_action_id |
Definition at line 68 of file class.ilDidacticTemplateAction.php.
Referenced by __clone(), __construct(), and save().
Here is the caller graph for this function:| ilDidacticTemplateAction::setRefId | ( | $a_ref_id | ) |
Set ref id of target object.
| int | ref id @reteurn void |
Definition at line 106 of file class.ilDidacticTemplateAction.php.
| ilDidacticTemplateAction::setTemplateId | ( | $a_id | ) |
Set template id.
| int | $a_id |
Definition at line 87 of file class.ilDidacticTemplateAction.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateAction::setType | ( | $a_type_id | ) |
Set type id.
| int | ref id |
Definition at line 78 of file class.ilDidacticTemplateAction.php.
|
abstract |
Write xml for export.
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
|
private |
Definition at line 27 of file class.ilDidacticTemplateAction.php.
Referenced by __construct(), ilDidacticTemplateBlockRoleAction\__construct(), ilDidacticTemplateLocalPolicyAction\__construct(), and getActionId().
|
private |
Definition at line 25 of file class.ilDidacticTemplateAction.php.
Referenced by getLogger().
|
private |
Definition at line 32 of file class.ilDidacticTemplateAction.php.
Referenced by getRefId().
|
private |
Definition at line 28 of file class.ilDidacticTemplateAction.php.
Referenced by getTemplateId().
|
private |
Definition at line 29 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::FILTER_PARENT_ROLES = 3 |
Definition at line 18 of file class.ilDidacticTemplateAction.php.
Referenced by filterRoles().
| const ilDidacticTemplateAction::FILTER_SOURCE_OBJ_ID = 2 |
Definition at line 17 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateLocalPolicyAction\toXml().
| const ilDidacticTemplateAction::FILTER_SOURCE_TITLE = 1 |
Definition at line 16 of file class.ilDidacticTemplateAction.php.
Referenced by filterRoles(), ilDidacticTemplateImport\parseActions(), and ilDidacticTemplateLocalPolicyAction\toXml().
| const ilDidacticTemplateAction::PATTERN_PARENT_TYPE = 'action' |
Definition at line 20 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::TYPE_BLOCK_ROLE = 3 |
Definition at line 14 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateBlockRoleAction\getType().
| const ilDidacticTemplateAction::TYPE_LOCAL_POLICY = 1 |
Definition at line 12 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateLocalPolicyAction\getType().
| const ilDidacticTemplateAction::TYPE_LOCAL_ROLE = 2 |
Definition at line 13 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateLocalRoleAction\getType().