4 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateAction.php';
47 $this->pattern = $patterns;
65 $this->filter_type = $a_type;
86 $query =
'INSERT INTO didactic_tpl_abr (action_id,filter_type) '.
97 $pattern->setParentType(self::PATTERN_PARENT_TYPE);
107 public function delete()
113 $query =
'DELETE FROM didactic_tpl_abr '.
114 'WHERE action_id = '.$ilDB->quote($this->
getActionId(),
'integer');
115 $ilDB->manipulate(
$query);
136 foreach($roles as $role_id => $role)
150 global $rbacadmin, $rbacreview;
153 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
156 $rolf_obj = $source->createRoleFolder();
157 $rolf = $rolf_obj->getRefId();
161 $assign = $rbacreview->isAssignable($a_role_id, $rolf) ?
'y' :
'n';
164 $rbacadmin->revokeSubtreePermissions($source->getRefId(), $a_role_id);
167 $rbacadmin->deleteSubtreeTemplates($source->getRefId(), $a_role_id);
169 $rbacadmin->assignRoleToFolder(
186 foreach($roles as $role_id => $role)
201 global $rbacreview, $rbacadmin;
204 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
210 if($rbacreview->getRoleFolderOfRole($a_role_id) == $rolf)
216 $rbacadmin->deleteLocalRole($a_role_id, $rolf);
219 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
221 $role->changeExistingObjects(
251 case self::FILTER_SOURCE_OBJ_ID:
252 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'objId'));
256 case self::FILTER_SOURCE_TITLE:
257 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'title'));
263 $pattern->toXml($writer);
300 $query =
'SELECT * FROM didactic_tpl_abr '.
301 'WHERE action_id = '.$ilDB->quote($this->
getActionId());
309 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';