53 $this->action_id = $a_action_id;
63 $this->type = $a_type_id;
72 $this->tpl_id = $a_id;
91 $this->ref_id = $a_ref_id;
117 $this->
setActionId($ilDB->nextId(
'didactic_tpl_a'));
118 $query =
'INSERT INTO didactic_tpl_a (id, tpl_id, type_id) '.
122 $ilDB->quote($this->
getType(),
'integer').
124 $ilDB->manipulate($query);
134 public function delete()
138 $query =
'DELETE FROM didactic_tpl_a '.
139 'WHERE id = '.$ilDB->quote($this->
getActionId(),
'integer');
140 $ilDB->manipulate(
$query);
151 $query =
'SELECT * FROM didactic_tpl_a '.
152 'WHERE id = '.$ilDB->quote($this->
getActionId(),
'integer');
165 abstract public function getType();
172 abstract public function apply();
179 abstract public function revert();
204 include_once
'./classes/class.ilObjectFactory.php';
217 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';
220 self::PATTERN_PARENT_TYPE
224 foreach($rbacreview->getParentRoleIds($source->
getRefId(),
false,
true) as $role_id => $role)
227 if($role_id == SYSTEM_ROLE_ID)
229 #$GLOBALS['ilLog']->write(__METHOD__.' no action for system role '.print_r($role,true));
233 foreach($patterns as $pattern)
238 $filtered[$role_id] = $role;