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 $assign = $rbacreview->isAssignable($a_role_id, $source->getRefId()) ?
'y' :
'n';
156 $rbacadmin->revokeSubtreePermissions($source->getRefId(), $a_role_id);
159 $rbacadmin->deleteSubtreeTemplates($source->getRefId(), $a_role_id);
161 $rbacadmin->assignRoleToFolder(
178 foreach($roles as $role_id => $role)
193 global $rbacreview, $rbacadmin;
198 if($rbacreview->getRoleFolderOfRole($a_role_id) == $source->getRefId())
204 $rbacadmin->deleteLocalRole($a_role_id, $source->getRefId());
207 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
209 $role->changeExistingObjects(
239 case self::FILTER_SOURCE_OBJ_ID:
240 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'objId'));
244 case self::FILTER_SOURCE_TITLE:
245 $writer->
xmlStartTag(
'roleFilter',array(
'source' =>
'title'));
251 $pattern->toXml($writer);
288 $query =
'SELECT * FROM didactic_tpl_abr '.
289 'WHERE action_id = '.$ilDB->quote($this->
getActionId());
297 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';