ILIAS
Release_4_2_x_branch Revision 61807
|
Description of class. More...
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 318 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, getFilterPattern(), and setFilterPatterns().
ilDidacticTemplateLocalPolicyAction::addFilterPattern | ( | ilDidacticTemplateFilterPattern | $pattern | ) |
Add filter.
ilDidacticTemplateFilterPatter | $pattern |
Definition at line 40 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern.
Referenced by read().
ilDidacticTemplateLocalPolicyAction::apply | ( | ) |
Apply action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 171 of file class.ilDidacticTemplateLocalPolicyAction.php.
References createLocalPolicy(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
|
protected |
Create local policy.
ilObject | $source | |
array | $role |
Definition at line 365 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().
ilDidacticTemplateLocalPolicyAction::delete | ( | ) |
delete action filter ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 148 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $ilDB, $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().
ilDidacticTemplateLocalPolicyAction::getFilterPattern | ( | ) |
ilDidacticTemplateLocalPolicyAction::getFilterType | ( | ) |
Get filter type.
Definition at line 76 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $filter_type.
Referenced by save(), and toXml().
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().
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().
ilDidacticTemplateLocalPolicyAction::getType | ( | ) |
Get action type.
Reimplemented from ilDidacticTemplateAction.
Definition at line 237 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\TYPE_LOCAL_POLICY.
ilDidacticTemplateLocalPolicyAction::read | ( | ) |
ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 331 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $ilDB, $pattern, $query, $res, $row, addFilterPattern(), DB_FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), setFilterType(), setRoleTemplateId(), and setRoleTemplateType().
ilDidacticTemplateLocalPolicyAction::revert | ( | ) |
Revert action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 206 of file class.ilDidacticTemplateLocalPolicyAction.php.
References ilDidacticTemplateAction\filterRoles(), ilDidacticTemplateAction\initSourceObject(), and revertLocalPolicy().
|
protected |
Definition at line 436 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $GLOBALS, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, ilObject\getRefId(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.
Referenced by revert().
ilDidacticTemplateLocalPolicyAction::save | ( | ) |
Save action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 119 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $ilDB, $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), getFilterType(), getRoleTemplateId(), and getRoleTemplateType().
ilDidacticTemplateLocalPolicyAction::setFilterPatterns | ( | Array | $patterns | ) |
Set filter patterns.
array | $patterns |
Definition at line 49 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by __clone().
ilDidacticTemplateLocalPolicyAction::setFilterType | ( | $a_type | ) |
Set filter type.
int | $a_type |
Definition at line 67 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
ilDidacticTemplateLocalPolicyAction::setRoleTemplateId | ( | $a_id | ) |
Set role template id.
int | $a_id |
Definition at line 102 of file class.ilDidacticTemplateLocalPolicyAction.php.
Referenced by read().
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().
ilDidacticTemplateLocalPolicyAction::toXml | ( | ilXmlWriter | $writer | ) |
Export to xml.
ilXmlWriter | $writer |
Reimplemented from ilDidacticTemplateAction.
Definition at line 247 of file class.ilDidacticTemplateLocalPolicyAction.php.
References $pattern, ilObject\_lookupType(), ilXmlWriter\appendXML(), getFilterPattern(), getFilterType(), getRoleTemplateId(), getRoleTemplateType(), ilRoleXmlExport\MODE_DTPL, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
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().