ILIAS
Release_4_4_x_branch Revision 61816
|
Description of ilDidacticTemplateBlockRoleAction. 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. | |
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 () | |
read action data 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 | FILTER_SOURCE_TITLE = 1 |
const | FILTER_SOURCE_OBJ_ID = 2 |
const | PATTERN_PARENT_TYPE = 'action' |
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 | |
blockRole ($a_role_id, $source) | |
Blo k role. | |
deleteLocalPolicy ($a_role_id, $source) | |
Delete local policy. | |
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 |
Description of ilDidacticTemplateBlockRoleAction.
Definition at line 12 of file class.ilDidacticTemplateBlockRoleAction.php.
ilDidacticTemplateBlockRoleAction::__construct | ( | $action_id = 0 | ) |
Constructor.
int | $action_id |
Reimplemented from ilDidacticTemplateAction.
Definition at line 27 of file class.ilDidacticTemplateBlockRoleAction.php.
References ilDidacticTemplateAction\$action_id.
ilDidacticTemplateBlockRoleAction::__clone | ( | ) |
clone method
Reimplemented from ilDidacticTemplateAction.
Definition at line 273 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, getFilterPattern(), and setFilterPatterns().
ilDidacticTemplateBlockRoleAction::addFilterPattern | ( | ilDidacticTemplateFilterPattern | $pattern | ) |
Add filter.
ilDidacticTemplateFilterPatter | $pattern |
Definition at line 36 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern.
Referenced by read().
ilDidacticTemplateBlockRoleAction::apply | ( | ) |
Apply action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 130 of file class.ilDidacticTemplateBlockRoleAction.php.
References blockRole(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
|
protected |
Blo k role.
int | $a_role_id | |
ilObject | $source |
Definition at line 148 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by apply().
ilDidacticTemplateBlockRoleAction::delete | ( | ) |
delete action filter ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 107 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().
|
protected |
Delete local policy.
int | $a_role_id | |
ilObject | $source |
Definition at line 199 of file class.ilDidacticTemplateBlockRoleAction.php.
References $GLOBALS, ilObject\_lookupTitle(), and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.
Referenced by revert().
ilDidacticTemplateBlockRoleAction::getFilterPattern | ( | ) |
ilDidacticTemplateBlockRoleAction::getFilterType | ( | ) |
Get filter type.
Definition at line 72 of file class.ilDidacticTemplateBlockRoleAction.php.
References $filter_type.
Referenced by save(), and toXml().
ilDidacticTemplateBlockRoleAction::getType | ( | ) |
Get action type.
Reimplemented from ilDidacticTemplateAction.
Definition at line 235 of file class.ilDidacticTemplateBlockRoleAction.php.
References ilDidacticTemplateAction\TYPE_BLOCK_ROLE.
ilDidacticTemplateBlockRoleAction::read | ( | ) |
read action data ilDB $ilDB
Reimplemented from ilDidacticTemplateAction.
Definition at line 291 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, $query, $res, $row, addFilterPattern(), DB_FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), and setFilterType().
ilDidacticTemplateBlockRoleAction::revert | ( | ) |
Revert action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 180 of file class.ilDidacticTemplateBlockRoleAction.php.
References deleteLocalPolicy(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
ilDidacticTemplateBlockRoleAction::save | ( | ) |
Save action.
Reimplemented from ilDidacticTemplateAction.
Definition at line 80 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), and getFilterType().
ilDidacticTemplateBlockRoleAction::setFilterPatterns | ( | Array | $patterns | ) |
Set filter patterns.
array | $patterns |
Definition at line 45 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by __clone().
ilDidacticTemplateBlockRoleAction::setFilterType | ( | $a_type | ) |
Set filter type.
int | $a_type |
Definition at line 63 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by read().
ilDidacticTemplateBlockRoleAction::toXml | ( | ilXmlWriter | $writer | ) |
Export to xml.
ilXmlWriter | $writer |
Reimplemented from ilDidacticTemplateAction.
Definition at line 245 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, getFilterPattern(), getFilterType(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
private |
Definition at line 21 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by getFilterType().
|
private |
Definition at line 20 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by __clone(), addFilterPattern(), delete(), getFilterPattern(), read(), save(), and toXml().
const ilDidacticTemplateBlockRoleAction::FILTER_SOURCE_OBJ_ID = 2 |
Definition at line 15 of file class.ilDidacticTemplateBlockRoleAction.php.
const ilDidacticTemplateBlockRoleAction::FILTER_SOURCE_TITLE = 1 |
Definition at line 14 of file class.ilDidacticTemplateBlockRoleAction.php.
const ilDidacticTemplateBlockRoleAction::PATTERN_PARENT_TYPE = 'action' |
Definition at line 17 of file class.ilDidacticTemplateBlockRoleAction.php.