|
ILIAS
release_8 Revision v8.24
|
Description of class. More...
Inheritance diagram for ilDidacticTemplateLocalPolicyAction:
Collaboration diagram for ilDidacticTemplateLocalPolicyAction:Public Member Functions | |
| __construct (int $action_id=0) | |
| addFilterPattern (ilDidacticTemplateFilterPattern $pattern) | |
| setFilterPatterns (array $patterns) | |
| Set filter patterns. More... | |
| getFilterPattern () | |
| Get filter pattern. More... | |
| setFilterType (int $a_type) | |
| getFilterType () | |
| setRoleTemplateType (int $a_tpl_type) | |
| getRoleTemplateType () | |
| setRoleTemplateId (int $a_id) | |
| getRoleTemplateId () | |
| save () | |
| Write action to db Overwrite for filling additional db fields. More... | |
| delete () | |
| Delete didactic template action Overwrite for filling additional db fields. More... | |
| apply () | |
| Apply action. More... | |
| revert () | |
| Implement everthing that is necessary to revert a didactic template return bool. More... | |
| getType () | |
| Get type of template. More... | |
| toXml (ilXmlWriter $writer) | |
| __clone () | |
| read () | |
Public Member Functions inherited from ilDidacticTemplateAction | |
| __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 | TPL_ACTION_OVERWRITE = 1 |
| const | TPL_ACTION_INTERSECT = 2 |
| const | TPL_ACTION_ADD = 3 |
| const | TPL_ACTION_SUBTRACT = 4 |
| const | TPL_ACTION_UNION = 5 |
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 | FILTER_LOCAL_ROLES = 4 |
| const | PATTERN_PARENT_TYPE = 'action' |
Protected Member Functions | |
| createLocalPolicy (ilObject $source, array $role) | |
| revertLocalPolicy (ilObject $source, array $role) | |
Protected Member Functions inherited from ilDidacticTemplateAction | |
| initSourceObject () | |
| filterRoles (ilObject $source) | |
Private Attributes | |
| array | $pattern = [] |
| int | $filter_type = self::FILTER_SOURCE_TITLE |
| int | $role_template_type = self::TPL_ACTION_OVERWRITE |
| int | $role_template_id = 0 |
Additional Inherited Members | |
Protected Attributes inherited from ilDidacticTemplateAction | |
| ilLogger | $logger |
| ilDBInterface | $db |
| ilRbacReview | $review |
| ilRbacAdmin | $admin |
Description of class.
Definition at line 11 of file class.ilDidacticTemplateLocalPolicyAction.php.
| ilDidacticTemplateLocalPolicyAction::__construct | ( | int | $action_id = 0 | ) |
Reimplemented from ilDidacticTemplateAction.
Definition at line 25 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\$action_id, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::__clone | ( | ) |
Reimplemented from ilDidacticTemplateAction.
Definition at line 260 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, getFilterPattern(), and setFilterPatterns().
Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::addFilterPattern | ( | ilDidacticTemplateFilterPattern | $pattern | ) |
Definition at line 30 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::apply | ( | ) |
Apply action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 120 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $source, createLocalPolicy(), ilDidacticTemplateAction\filterRoles(), ilDidacticTemplateAction\getLogger(), and ilDidacticTemplateAction\initSourceObject().
Here is the call graph for this function:
|
protected |
Definition at line 291 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $source, ilDidacticTemplateAction\getLogger(), ilObject\getRefId(), getRoleTemplateId(), getRoleTemplateType(), ILIAS\Repository\logger(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, ROLE_FOLDER_ID, TPL_ACTION_INTERSECT, TPL_ACTION_OVERWRITE, and TPL_ACTION_UNION.
Referenced by apply().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::delete | ( | ) |
Delete didactic template action Overwrite for filling additional db fields.
Reimplemented from ilDidacticTemplateAction.
Definition at line 108 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().
Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::getFilterPattern | ( | ) |
Get filter pattern.
Definition at line 48 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern.
Referenced by __clone(), delete(), save(), and toXml().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getFilterType | ( | ) |
Definition at line 58 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $filter_type.
Referenced by save(), and toXml().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getRoleTemplateId | ( | ) |
Definition at line 78 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $role_template_id.
Referenced by createLocalPolicy(), save(), and toXml().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getRoleTemplateType | ( | ) |
Definition at line 68 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $role_template_type.
Referenced by createLocalPolicy(), save(), and toXml().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getType | ( | ) |
Get type of template.
Reimplemented from ilDidacticTemplateAction.
Definition at line 183 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\TYPE_LOCAL_POLICY.
| ilDidacticTemplateLocalPolicyAction::read | ( | ) |
Reimplemented from ilDidacticTemplateAction.
Definition at line 271 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, $res, addFilterPattern(), ilDBConstants\FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), setFilterType(), setRoleTemplateId(), setRoleTemplateType(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::revert | ( | ) |
Implement everthing that is necessary to revert a didactic template return bool.
Reimplemented from ilDidacticTemplateAction.
Definition at line 146 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $source, ilDidacticTemplateAction\filterRoles(), ilDidacticTemplateAction\getLogger(), ilDidacticTemplateAction\initSourceObject(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, and revertLocalPolicy().
Here is the call graph for this function:
|
protected |
Definition at line 370 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $query, $res, $source, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), ILIAS\Repository\logger(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, and ROLE_FOLDER_ID.
Referenced by revert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::save | ( | ) |
Write action to db Overwrite for filling additional db fields.
Reimplemented from ilDidacticTemplateAction.
Definition at line 83 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), getFilterType(), getRoleTemplateId(), and getRoleTemplateType().
Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::setFilterPatterns | ( | array | $patterns | ) |
Set filter patterns.
| ilDidacticTemplateExcludeFilterPattern[] | $patterns |
Definition at line 39 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by __clone().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setFilterType | ( | int | $a_type | ) |
Definition at line 53 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setRoleTemplateId | ( | int | $a_id | ) |
Definition at line 73 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setRoleTemplateType | ( | int | $a_tpl_type | ) |
Definition at line 63 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::toXml | ( | ilXmlWriter | $writer | ) |
Reimplemented from ilDidacticTemplateAction.
Definition at line 188 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, ilObject\_lookupType(), ilXmlWriter\appendXML(), ilDidacticTemplateAction\FILTER_LOCAL_ROLES, ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, getFilterPattern(), getFilterType(), getRoleTemplateId(), getRoleTemplateType(), IL_INST_ID, ilRoleXmlExport\MODE_DTPL, ROLE_FOLDER_ID, TPL_ACTION_INTERSECT, TPL_ACTION_OVERWRITE, TPL_ACTION_UNION, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:
|
private |
Definition at line 21 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getFilterType().
|
private |
Definition at line 20 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by __clone(), addFilterPattern(), delete(), getFilterPattern(), read(), save(), and toXml().
|
private |
Definition at line 23 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getRoleTemplateId().
|
private |
Definition at line 22 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getRoleTemplateType().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_ADD = 3 |
Definition at line 15 of file class.ilDidacticTemplateLocalPolicyAction.php.
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_INTERSECT = 2 |
Definition at line 14 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by createLocalPolicy(), ilDidacticTemplateImport\parseActions(), and toXml().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_OVERWRITE = 1 |
Definition at line 13 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by createLocalPolicy(), ilDidacticTemplateImport\parseActions(), and toXml().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_SUBTRACT = 4 |
Definition at line 16 of file class.ilDidacticTemplateLocalPolicyAction.php.
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_UNION = 5 |
Definition at line 17 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by createLocalPolicy(), ilDidacticTemplateImport\parseActions(), and toXml().