ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Description of ilDidacticTemplateBlockRoleAction. More...
Public Member Functions | |
__construct ($action_id=0) | |
Constructor. More... | |
addFilterPattern (ilDidacticTemplateFilterPattern $pattern) | |
Add filter. More... | |
setFilterPatterns (array $patterns) | |
Set filter patterns. More... | |
getFilterPattern () | |
Get filter pattern. More... | |
setFilterType ($a_type) | |
Set filter type. More... | |
getFilterType () | |
Get filter type. More... | |
save () | |
Save action. More... | |
delete () | |
delete action filter ilDB $ilDB More... | |
apply () | |
Apply action. More... | |
revert () | |
Revert action. More... | |
getType () | |
Get action type. More... | |
toXml (ilXmlWriter $writer) | |
Export to xml. More... | |
__clone () | |
clone method More... | |
read () | |
read action data ilDB $ilDB More... | |
Public Member Functions inherited from ilDidacticTemplateAction | |
__construct ($action_id=0) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getActionId () | |
Get action id. More... | |
setActionId ($a_action_id) | |
Set action id. More... | |
setType ($a_type_id) | |
Set type id. More... | |
setTemplateId ($a_id) | |
Set template id. More... | |
getTemplateId () | |
Get template id. More... | |
setRefId ($a_ref_id) | |
Set ref id of target object. More... | |
getRefId () | |
Get ref id of target object. More... | |
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 () | |
ilDB $ilDB More... | |
getType () | |
Get type of template. More... | |
apply () | |
Apply action. More... | |
revert () | |
Implement everthing that is necessary to revert a didactic template. More... | |
__clone () | |
Clone method. More... | |
toXml (ilXmlWriter $writer) | |
Write xml for export. More... | |
Data Fields | |
const | FILTER_SOURCE_TITLE = 1 |
const | FILTER_SOURCE_OBJ_ID = 2 |
const | FILTER_PARENT_ROLES = 3 |
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 | FILTER_PARENT_ROLES = 3 |
const | FILTER_LOCAL_ROLES = 4 |
const | PATTERN_PARENT_TYPE = 'action' |
Protected Member Functions | |
blockRole ($a_role_id, $source) | |
Blo k role. More... | |
deleteLocalPolicy ($a_role_id, $source) | |
Delete local policy. More... | |
Protected Member Functions inherited from ilDidacticTemplateAction | |
initSourceObject () | |
Init the source object. More... | |
filterRoles (ilObject $source) | |
Filter roles. More... | |
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 |
Definition at line 28 of file class.ilDidacticTemplateBlockRoleAction.php.
References ilDidacticTemplateAction\$action_id.
ilDidacticTemplateBlockRoleAction::__clone | ( | ) |
clone method
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 37 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern.
Referenced by read().
ilDidacticTemplateBlockRoleAction::apply | ( | ) |
Apply action.
Definition at line 133 of file class.ilDidacticTemplateBlockRoleAction.php.
References $source, blockRole(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
|
protected |
Blo k role.
int | $a_role_id | |
ilObject | $source |
Definition at line 150 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by apply().
ilDidacticTemplateBlockRoleAction::delete | ( | ) |
delete action filter ilDB $ilDB
Definition at line 109 of file class.ilDidacticTemplateBlockRoleAction.php.
References $DIC, $ilDB, $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().
|
protected |
Delete local policy.
int | $a_role_id | |
ilObject | $source |
Definition at line 195 of file class.ilDidacticTemplateBlockRoleAction.php.
References $DIC, $source, ilObject\_lookupTitle(), ilLoggerFactory\getLogger(), and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.
Referenced by revert().
ilDidacticTemplateBlockRoleAction::getFilterPattern | ( | ) |
ilDidacticTemplateBlockRoleAction::getFilterType | ( | ) |
Get filter type.
Definition at line 73 of file class.ilDidacticTemplateBlockRoleAction.php.
References $filter_type.
Referenced by save(), and toXml().
ilDidacticTemplateBlockRoleAction::getType | ( | ) |
Get action type.
Definition at line 229 of file class.ilDidacticTemplateBlockRoleAction.php.
ilDidacticTemplateBlockRoleAction::read | ( | ) |
read action data ilDB $ilDB
Definition at line 290 of file class.ilDidacticTemplateBlockRoleAction.php.
References $DIC, $ilDB, $pattern, $query, $res, $row, addFilterPattern(), ilDBConstants\FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), and setFilterType().
ilDidacticTemplateBlockRoleAction::revert | ( | ) |
Revert action.
Definition at line 177 of file class.ilDidacticTemplateBlockRoleAction.php.
References $source, deleteLocalPolicy(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().
ilDidacticTemplateBlockRoleAction::save | ( | ) |
Save action.
Definition at line 81 of file class.ilDidacticTemplateBlockRoleAction.php.
References $DIC, $ilDB, $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), and getFilterType().
ilDidacticTemplateBlockRoleAction::setFilterPatterns | ( | array | $patterns | ) |
Set filter patterns.
array | $patterns |
Definition at line 46 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by __clone().
ilDidacticTemplateBlockRoleAction::setFilterType | ( | $a_type | ) |
Set filter type.
int | $a_type |
Definition at line 64 of file class.ilDidacticTemplateBlockRoleAction.php.
References $a_type.
Referenced by read().
ilDidacticTemplateBlockRoleAction::toXml | ( | ilXmlWriter | $writer | ) |
Export to xml.
ilXmlWriter | $writer |
Definition at line 239 of file class.ilDidacticTemplateBlockRoleAction.php.
References $pattern, getFilterPattern(), getFilterType(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
private |
Definition at line 22 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by getFilterType().
|
private |
Definition at line 21 of file class.ilDidacticTemplateBlockRoleAction.php.
Referenced by __clone(), addFilterPattern(), delete(), getFilterPattern(), read(), save(), and toXml().
const ilDidacticTemplateBlockRoleAction::FILTER_PARENT_ROLES = 3 |
Definition at line 16 of file class.ilDidacticTemplateBlockRoleAction.php.
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 18 of file class.ilDidacticTemplateBlockRoleAction.php.