| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Abstract class for template actions. More...
 Inheritance diagram for ilDidacticTemplateAction:
 Inheritance diagram for ilDidacticTemplateAction: Collaboration diagram for ilDidacticTemplateAction:
 Collaboration diagram for ilDidacticTemplateAction:| Public Member Functions | |
| __construct ($action_id=0) | |
| Constructor. | |
| 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. | |
| save () | |
| write action to db overwrite for filling additional db fields | |
| delete () | |
| Delete didactic template action overwrite for filling additional db fields. | |
| read () | |
| ilDB $ilDB | |
| getType () | |
| Get type of template. | |
| apply () | |
| Apply action. | |
| revert () | |
| Implement everthing that is necessary to revert a didactic template. | |
| __clone () | |
| Clone method. | |
| toXml (ilXmlWriter $writer) | |
| Write xml for export. | |
| 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 | PATTERN_PARENT_TYPE = 'action' | 
| Protected Member Functions | |
| initSourceObject () | |
| Init the source object. | |
| filterRoles (ilObject $source) | |
| Filter roles. | |
| Private Attributes | |
| $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 ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 32 of file class.ilDidacticTemplateAction.php.
References $action_id, read(), and setActionId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateAction::__clone | ( | ) | 
Clone method.
Reimplemented in ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateBlockRoleAction.
Definition at line 185 of file class.ilDidacticTemplateAction.php.
References setActionId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | abstract | 
Apply action.
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
| ilDidacticTemplateAction::delete | ( | ) | 
Delete didactic template action overwrite for filling additional db fields.
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateLocalRoleAction, and ilDidacticTemplateBlockRoleAction.
Definition at line 134 of file class.ilDidacticTemplateAction.php.
References $query, and getActionId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Filter roles.
| ilObject | $object | 
Definition at line 213 of file class.ilDidacticTemplateAction.php.
References $GLOBALS, ilObject\_lookupTitle(), getActionId(), 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::getActionId | ( | ) | 
Get action id.
Definition at line 42 of file class.ilDidacticTemplateAction.php.
References $action_id.
Referenced by ilDidacticTemplateBlockRoleAction\delete(), ilDidacticTemplateLocalRoleAction\delete(), delete(), ilDidacticTemplateLocalPolicyAction\delete(), filterRoles(), read(), ilDidacticTemplateLocalRoleAction\read(), ilDidacticTemplateBlockRoleAction\read(), ilDidacticTemplateLocalPolicyAction\read(), ilDidacticTemplateBlockRoleAction\save(), save(), ilDidacticTemplateLocalRoleAction\save(), and ilDidacticTemplateLocalPolicyAction\save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::getRefId | ( | ) | 
Get ref id of target object.
Definition at line 97 of file class.ilDidacticTemplateAction.php.
References $ref_id.
Referenced by initSourceObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::getTemplateId | ( | ) | 
Get template id.
Definition at line 79 of file class.ilDidacticTemplateAction.php.
References $tpl_id.
Referenced by save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | abstract | 
Get type of template.
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
Referenced by save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Init the source object.
Definition at line 202 of file class.ilDidacticTemplateAction.php.
References ilObjectFactory\getInstanceByRefId(), and getRefId().
Referenced by ilDidacticTemplateLocalRoleAction\apply(), ilDidacticTemplateBlockRoleAction\apply(), ilDidacticTemplateLocalPolicyAction\apply(), ilDidacticTemplateBlockRoleAction\revert(), and ilDidacticTemplateLocalPolicyAction\revert().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::read | ( | ) | 
ilDB $ilDB
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 147 of file class.ilDidacticTemplateAction.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getActionId(), and setTemplateId().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
| ilDidacticTemplateAction::save | ( | ) | 
write action to db overwrite for filling additional db fields
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateLocalRoleAction, and ilDidacticTemplateBlockRoleAction.
Definition at line 108 of file class.ilDidacticTemplateAction.php.
References $query, getActionId(), getTemplateId(), getType(), and setActionId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateAction::setActionId | ( | $a_action_id | ) | 
Set action id.
| int | $a_action_id | 
Definition at line 51 of file class.ilDidacticTemplateAction.php.
Referenced by __clone(), __construct(), and save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::setRefId | ( | $a_ref_id | ) | 
Set ref id of target object.
| int | ref id void | 
Definition at line 89 of file class.ilDidacticTemplateAction.php.
| ilDidacticTemplateAction::setTemplateId | ( | $a_id | ) | 
Set template id.
| int | $a_id | 
Definition at line 70 of file class.ilDidacticTemplateAction.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateAction::setType | ( | $a_type_id | ) | 
Set type id.
| int | ref id | 
Definition at line 61 of file class.ilDidacticTemplateAction.php.
| 
 | abstract | 
Write xml for export.
Reimplemented in ilDidacticTemplateLocalPolicyAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalRoleAction.
| 
 | private | 
Definition at line 21 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateBlockRoleAction\__construct(), ilDidacticTemplateLocalPolicyAction\__construct(), __construct(), and getActionId().
| 
 | private | 
Definition at line 26 of file class.ilDidacticTemplateAction.php.
Referenced by getRefId().
| 
 | private | 
Definition at line 22 of file class.ilDidacticTemplateAction.php.
Referenced by getTemplateId().
| 
 | private | 
Definition at line 23 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::FILTER_SOURCE_OBJ_ID = 2 | 
Definition at line 17 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::FILTER_SOURCE_TITLE = 1 | 
Definition at line 16 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateImport\parseActions().
| const ilDidacticTemplateAction::PATTERN_PARENT_TYPE = 'action' | 
Definition at line 19 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().