|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Abstract class for template actions. More...
Inheritance diagram for ilDidacticTemplateAction:
Collaboration diagram for ilDidacticTemplateAction:Public Member Functions | |
| __construct (int $action_id=0) | |
| getLogger () | |
| getActionId () | |
| setActionId (int $a_action_id) | |
| setType (int $a_type_id) | |
| setTemplateId (int $a_id) | |
| getTemplateId () | |
| setRefId (int $a_ref_id) | |
| getRefId () | |
| 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 () | |
| getType () | |
| Get type of template. More... | |
| apply () | |
| Apply action. More... | |
| revert () | |
| Implement everthing that is necessary to revert a didactic template return bool. More... | |
| __clone () | |
| toXml (ilXmlWriter $writer) | |
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 | FILTER_LOCAL_ROLES = 4 |
| const | PATTERN_PARENT_TYPE = 'action' |
Protected Member Functions | |
| initSourceObject () | |
| filterRoles (ilObject $source) | |
Protected Attributes | |
| ilLogger | $logger |
| ilDBInterface | $db |
| ilRbacReview | $review |
| ilRbacAdmin | $admin |
Private Attributes | |
| int | $action_id = 0 |
| int | $tpl_id = 0 |
| int | $type = 0 |
| int | $ref_id = 0 |
Abstract class for template actions.
Definition at line 25 of file class.ilDidacticTemplateAction.php.
| ilDidacticTemplateAction::__construct | ( | int | $action_id = 0 | ) |
Reimplemented in ilDidacticTemplateLocalRoleAction, ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalPolicyAction.
Definition at line 49 of file class.ilDidacticTemplateAction.php.
References $DIC, ILIAS\Repository\logger(), read(), and setActionId().
Here is the call graph for this function:| ilDidacticTemplateAction::__clone | ( | ) |
Reimplemented in ilDidacticTemplateBlockRoleAction, and ilDidacticTemplateLocalPolicyAction.
Definition at line 164 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 129 of file class.ilDidacticTemplateAction.php.
References getActionId().
Here is the call graph for this function:
|
protected |
Definition at line 177 of file class.ilDidacticTemplateAction.php.
References ilObject\_lookupTitle(), FILTER_LOCAL_ROLES, FILTER_PARENT_ROLES, FILTER_SOURCE_TITLE, getActionId(), ilObject\getRefId(), ILIAS\Repository\int(), ILIAS\Repository\logger(), 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 | ( | ) |
Definition at line 67 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 | ( | ) |
Definition at line 62 of file class.ilDidacticTemplateAction.php.
References $logger.
Referenced by ilDidacticTemplateLocalPolicyAction\apply(), ilDidacticTemplateLocalPolicyAction\createLocalPolicy(), and ilDidacticTemplateLocalPolicyAction\revert().
Here is the caller graph for this function:| ilDidacticTemplateAction::getRefId | ( | ) |
Definition at line 97 of file class.ilDidacticTemplateAction.php.
References $ref_id.
Referenced by ilDidacticTemplateLocalRoleAction\apply(), and initSourceObject().
Here is the caller graph for this function:| ilDidacticTemplateAction::getTemplateId | ( | ) |
Definition at line 87 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 |
Definition at line 171 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 | ( | ) |
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
Definition at line 136 of file class.ilDidacticTemplateAction.php.
References $res, 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 107 of file class.ilDidacticTemplateAction.php.
References getActionId(), getTemplateId(), getType(), and setActionId().
Here is the call graph for this function:| ilDidacticTemplateAction::setActionId | ( | int | $a_action_id | ) |
Definition at line 72 of file class.ilDidacticTemplateAction.php.
Referenced by __clone(), __construct(), and save().
Here is the caller graph for this function:| ilDidacticTemplateAction::setRefId | ( | int | $a_ref_id | ) |
Definition at line 92 of file class.ilDidacticTemplateAction.php.
| ilDidacticTemplateAction::setTemplateId | ( | int | $a_id | ) |
Definition at line 82 of file class.ilDidacticTemplateAction.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateAction::setType | ( | int | $a_type_id | ) |
Definition at line 77 of file class.ilDidacticTemplateAction.php.
|
abstract |
Reimplemented in ilDidacticTemplateBlockRoleAction, ilDidacticTemplateLocalPolicyAction, and ilDidacticTemplateLocalRoleAction.
|
private |
Definition at line 43 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateBlockRoleAction\__construct(), ilDidacticTemplateLocalPolicyAction\__construct(), getActionId(), and ILIAS\UI\Implementation\Component\Table\DataRow\withDisabledAction().
|
protected |
Definition at line 41 of file class.ilDidacticTemplateAction.php.
|
protected |
Definition at line 39 of file class.ilDidacticTemplateAction.php.
|
protected |
Definition at line 38 of file class.ilDidacticTemplateAction.php.
Referenced by getLogger().
|
private |
Definition at line 47 of file class.ilDidacticTemplateAction.php.
Referenced by getRefId().
|
protected |
Definition at line 40 of file class.ilDidacticTemplateAction.php.
|
private |
Definition at line 44 of file class.ilDidacticTemplateAction.php.
Referenced by getTemplateId().
|
private |
Definition at line 45 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::FILTER_LOCAL_ROLES = 4 |
Definition at line 34 of file class.ilDidacticTemplateAction.php.
Referenced by filterRoles(), ilDidacticTemplateImport\parseLocalPolicyAction(), and ilDidacticTemplateLocalPolicyAction\toXml().
| const ilDidacticTemplateAction::FILTER_PARENT_ROLES = 3 |
| const ilDidacticTemplateAction::FILTER_SOURCE_OBJ_ID = 2 |
Definition at line 32 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateImport\parseBlockRoleAction(), ilDidacticTemplateImport\parseLocalPolicyAction(), ilDidacticTemplateBlockRoleAction\toXml(), and ilDidacticTemplateLocalPolicyAction\toXml().
| const ilDidacticTemplateAction::FILTER_SOURCE_TITLE = 1 |
| const ilDidacticTemplateAction::PATTERN_PARENT_TYPE = 'action' |
Definition at line 36 of file class.ilDidacticTemplateAction.php.
| const ilDidacticTemplateAction::TYPE_BLOCK_ROLE = 3 |
Definition at line 29 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateBlockRoleAction\getType().
| const ilDidacticTemplateAction::TYPE_LOCAL_POLICY = 1 |
Definition at line 27 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateLocalPolicyAction\getType().
| const ilDidacticTemplateAction::TYPE_LOCAL_ROLE = 2 |
Definition at line 28 of file class.ilDidacticTemplateAction.php.
Referenced by ilDidacticTemplateActionFactory\factoryByType(), ilDidacticTemplateActionFactory\factoryByTypeAndId(), and ilDidacticTemplateLocalRoleAction\getType().