4include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateAction.php';
 
   48        $this->pattern = $patterns;
 
   89        $query = 
'INSERT INTO didactic_tpl_abr (action_id,filter_type) ' .
 
   99            $pattern->setParentType(self::PATTERN_PARENT_TYPE);
 
  109    public function delete()
 
  117        $query = 
'DELETE FROM didactic_tpl_abr ' .
 
  139        foreach ($roles as $role_id => $role) {
 
  154        $rbacadmin = 
$DIC[
'rbacadmin'];
 
  155        $rbacreview = 
$DIC[
'rbacreview'];
 
  158        $assign = $rbacreview->isAssignable($a_role_id, 
$source->getRefId()) ? 
'y' : 
'n';
 
  161        $rbacadmin->revokeSubtreePermissions(
$source->getRefId(), $a_role_id);
 
  164        $rbacadmin->deleteSubtreeTemplates(
$source->getRefId(), $a_role_id);
 
  166        $rbacadmin->assignRoleToFolder(
 
  183        foreach ($roles as $role_id => $role) {
 
  199        $rbacreview = 
$DIC[
'rbacreview'];
 
  200        $rbacadmin = 
$DIC[
'rbacadmin'];
 
  205        if ($rbacreview->getRoleFolderOfRole($a_role_id) == 
$source->getRefId()) {
 
  210        $rbacadmin->deleteLocalRole($a_role_id, 
$source->getRefId());
 
  213        include_once 
'./Services/AccessControl/classes/class.ilObjRole.php';
 
  215        $role->changeExistingObjects(
 
  245                $writer->
xmlStartTag(
'roleFilter', [
'source' => 
'objId']);
 
  249                $writer->
xmlStartTag(
'roleFilter', [
'source' => 
'title']);
 
  253                $writer->
xmlStartTag(
'roleFilter', [
'source' => 
'parentRoles']);
 
  257                $writer->
xmlStartTag(
'roleFilter', [
'source' => 
'title']);
 
  296        if (!parent::read()) {
 
  300        $query = 
'SELECT * FROM didactic_tpl_abr ' .
 
  308        include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';
 
An exception for terminatinating execution or to throw for unit testing.
Abstract class for template actions.
getActionId()
Get action id.
initSourceObject()
Init the source object.
filterRoles(ilObject $source)
Filter roles.
Description of ilDidacticTemplateBlockRoleAction.
__construct($action_id=0)
Constructor.
getFilterPattern()
Get filter pattern.
read()
read action data @global ilDB $ilDB
toXml(ilXmlWriter $writer)
Export to xml.
getType()
Get action type.
const FILTER_SOURCE_TITLE
setFilterType($a_type)
Set filter type.
deleteLocalPolicy($a_role_id, $source)
Delete local policy.
addFilterPattern(ilDidacticTemplateFilterPattern $pattern)
Add filter.
setFilterPatterns(array $patterns)
Set filter patterns.
const FILTER_PARENT_ROLES
getFilterType()
Get filter type.
const PATTERN_PARENT_TYPE
const FILTER_SOURCE_OBJ_ID
blockRole($a_role_id, $source)
Blo k role.
static lookupPatternsByParentId($a_parent_id, $a_parent_type)
Get patterns by template id.
Represents a filter pattern for didactic template actions.
static getLogger($a_component_id)
Get component logger.
const MODE_UNPROTECTED_DELETE_LOCAL_POLICIES
static _lookupTitle($a_id)
lookup object title
xmlEndTag($tag)
Writes an endtag.
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res