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);
137 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
140 foreach($roles as $role_id => $role)
143 if($role[
'protected'])
148 if($role[
'parent'] == $rolf)
164 global $rbacadmin, $rbacreview;
167 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
170 $rolf_obj = $source->createRoleFolder();
171 $rolf = $rolf_obj->getRefId();
175 $assign = $rbacreview->isAssignable($a_role_id, $rolf) ?
'y' :
'n';
178 $rbacadmin->revokeSubtreePermissions($source->getRefId(), $a_role_id);
181 $rbacadmin->deleteSubtreeTemplates($source->getRefId(), $a_role_id);
183 $rbacadmin->assignRoleToFolder(
201 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
204 foreach($roles as $role_id => $role)
207 if($rbacreview->isLocalRole($role[
'obj_id'],$role[
'parent']))
225 global $rbacreview, $rbacadmin;
228 $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
234 $rbacadmin->deleteLocalRole($a_role[
'rol_id'], $rolf);
237 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
238 $role_obj =
new ilObjRole($a_role[
'obj_id']);
239 $role_obj->changeExistingObjects(
268 case self::FILTER_SOURCE_OBJ_ID:
269 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'objId'));
273 case self::FILTER_SOURCE_TITLE:
274 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'title'));
280 $pattern->toXml($writer);
317 $query =
'SELECT * FROM didactic_tpl_abr '.
318 'WHERE action_id = '.$ilDB->quote($this->
getActionId());
326 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';