| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Description of class. More...
 Inheritance diagram for ilDidacticTemplateLocalPolicyAction:
 Inheritance diagram for ilDidacticTemplateLocalPolicyAction: Collaboration diagram for ilDidacticTemplateLocalPolicyAction:
 Collaboration diagram for ilDidacticTemplateLocalPolicyAction:| Public Member Functions | |
| __construct ($action_id=0) | |
| Constructor. | |
| addFilterPattern (ilDidacticTemplateFilterPattern $pattern) | |
| Add filter. | |
| setFilterPatterns (Array $patterns) | |
| Set filter patterns. | |
| getFilterPattern () | |
| Get filter pattern. | |
| setFilterType ($a_type) | |
| Set filter type. | |
| getFilterType () | |
| Get filter type. | |
| setRoleTemplateType ($a_tpl_type) | |
| Set Role template type. | |
| getRoleTemplateType () | |
| Get role template type. | |
| setRoleTemplateId ($a_id) | |
| Set role template id. | |
| getRoleTemplateId () | |
| Get role template id. | |
| save () | |
| Save action. | |
| delete () | |
| delete action filter  ilDB $ilDB | |
| apply () | |
| Apply action. | |
| revert () | |
| Revert action. | |
| getType () | |
| Get action type. | |
| toXml (ilXmlWriter $writer) | |
| Export to xml. | |
| __clone () | |
| clone method | |
| read () | |
| 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. | |
| 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 | PATTERN_PARENT_TYPE = 'action' | 
| Protected Member Functions | |
| createLocalPolicy (ilObject $source, $role) | |
| Create local policy. | |
| revertLocalPolicy (ilObject $source, $role) | |
|  Protected Member Functions inherited from ilDidacticTemplateAction | |
| initSourceObject () | |
| Init the source object. | |
| filterRoles (ilObject $source) | |
| Filter roles. | |
| Private Attributes | |
| $pattern = array() | |
| $filter_type = self::FILTER_SOURCE_TITLE | |
| $role_template_type = self::TPL_ACTION_OVERWRITE | |
| $role_template_id = 0 | |
Description of class.
Definition at line 12 of file class.ilDidacticTemplateLocalPolicyAction.php.
| ilDidacticTemplateLocalPolicyAction::__construct | ( | $action_id = 0 | ) | 
Constructor.
| int | $action_id | 
Reimplemented from ilDidacticTemplateAction.
Definition at line 31 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\$action_id.
| ilDidacticTemplateLocalPolicyAction::__clone | ( | ) | 
clone method
Reimplemented from ilDidacticTemplateAction.
Definition at line 330 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, getFilterPattern(), and setFilterPatterns().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::addFilterPattern | ( | ilDidacticTemplateFilterPattern | $pattern | ) | 
Add filter.
| ilDidacticTemplateFilterPatter | $pattern | 
Definition at line 40 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::apply | ( | ) | 
Apply action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 171 of file class.ilDidacticTemplateLocalPolicyAction.php.
References createLocalPolicy(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Create local policy.
| ilObject | $source | |
| array | $role | 
Definition at line 377 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $GLOBALS, ilObject\getRefId(), getRoleTemplateId(), getRoleTemplateType(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.
Referenced by apply().
 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:| ilDidacticTemplateLocalPolicyAction::delete | ( | ) | 
delete action filter ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 148 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::getFilterPattern | ( | ) | 
| ilDidacticTemplateLocalPolicyAction::getFilterType | ( | ) | 
Get filter type.
Definition at line 76 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $filter_type.
Referenced by save(), and toXml().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getRoleTemplateId | ( | ) | 
Get role template id.
Definition at line 111 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $role_template_id.
Referenced by createLocalPolicy(), save(), and toXml().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getRoleTemplateType | ( | ) | 
Get role template type.
Definition at line 93 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $role_template_type.
Referenced by createLocalPolicy(), save(), and toXml().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::getType | ( | ) | 
Get action type.
Reimplemented from ilDidacticTemplateAction.
Definition at line 249 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\TYPE_LOCAL_POLICY.
| ilDidacticTemplateLocalPolicyAction::read | ( | ) | 
ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 343 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, $res, $row, addFilterPattern(), DB_FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), setFilterType(), setRoleTemplateId(), and setRoleTemplateType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::revert | ( | ) | 
Revert action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 206 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\filterRoles(), ilDidacticTemplateAction\initSourceObject(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, and revertLocalPolicy().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 448 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $GLOBALS, $query, $res, $row, DB_FETCHMODE_OBJECT, ilObject\getRefId(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.
Referenced by 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:| ilDidacticTemplateLocalPolicyAction::save | ( | ) | 
Save action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 119 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), getFilterType(), getRoleTemplateId(), and getRoleTemplateType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDidacticTemplateLocalPolicyAction::setFilterPatterns | ( | Array | $patterns | ) | 
Set filter patterns.
| array | $patterns | 
Definition at line 49 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by __clone().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setFilterType | ( | $a_type | ) | 
Set filter type.
| int | $a_type | 
Definition at line 67 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setRoleTemplateId | ( | $a_id | ) | 
Set role template id.
| int | $a_id | 
Definition at line 102 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::setRoleTemplateType | ( | $a_tpl_type | ) | 
Set Role template type.
| int | $a_tpl_type | 
Definition at line 85 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateLocalPolicyAction::toXml | ( | ilXmlWriter | $writer | ) | 
Export to xml.
| ilXmlWriter | $writer | 
Reimplemented from ilDidacticTemplateAction.
Definition at line 259 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, ilObject\_lookupType(), ilXmlWriter\appendXML(), getFilterPattern(), getFilterType(), getRoleTemplateId(), getRoleTemplateType(), ilRoleXmlExport\MODE_DTPL, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 22 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getFilterType().
| 
 | private | 
Definition at line 21 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by __clone(), addFilterPattern(), delete(), getFilterPattern(), read(), save(), and toXml().
| 
 | private | 
Definition at line 24 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getRoleTemplateId().
| 
 | private | 
Definition at line 23 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by getRoleTemplateType().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_ADD = 3 | 
Definition at line 16 of file class.ilDidacticTemplateLocalPolicyAction.php.
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_INTERSECT = 2 | 
Definition at line 15 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by ilDidacticTemplateImport\parseActions().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_OVERWRITE = 1 | 
Definition at line 14 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by ilDidacticTemplateImport\parseActions().
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_SUBTRACT = 4 | 
Definition at line 17 of file class.ilDidacticTemplateLocalPolicyAction.php.
| const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_UNION = 5 | 
Definition at line 18 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by ilDidacticTemplateImport\parseActions().