40        $this->logger = 
$GLOBALS[
'DIC']->logger()->otpl();
 
   70        $this->action_id = $a_action_id;
 
   80        $this->type = $a_type_id;
 
   89        $this->tpl_id = $a_id;
 
  108        $this->ref_id = $a_ref_id;
 
  133        $this->
setActionId($ilDB->nextId(
'didactic_tpl_a'));
 
  134        $query = 
'INSERT INTO didactic_tpl_a (id, tpl_id, type_id) ' .
 
  138            $ilDB->quote($this->
getType(), 
'integer') .
 
  140        $ilDB->manipulate(
$query);
 
  150    public function delete()
 
  154        $query = 
'DELETE FROM didactic_tpl_a ' .
 
  156        $ilDB->manipulate(
$query);
 
  167        $query = 
'SELECT * FROM didactic_tpl_a ' .
 
  219        include_once 
'./Services/Object/classes/class.ilObjectFactory.php';
 
  232        include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';
 
  235            self::PATTERN_PARENT_TYPE
 
  239        foreach ($rbacreview->getParentRoleIds(
$source->getRefId()) as $role_id => $role) {
 
  240            switch ($this->getFilterType()) {
 
  245                        ($role[
'parent'] == 
$source->getRefId()) &&
 
  246                        ($role[
'assign'] == 
'y')
 
  251                    foreach ($patterns as $pattern) {
 
  254                            $filtered[$role_id] = $role;
 
  261                    foreach ($patterns as $pattern) {
 
  264                            $filtered[$role_id] = $role;
 
An exception for terminatinating execution or to throw for unit testing.
Abstract class for template actions.
setRefId($a_ref_id)
Set ref id of target object.
getActionId()
Get action id.
const FILTER_SOURCE_TITLE
setType($a_type_id)
Set type id.
__construct($action_id=0)
Constructor.
revert()
Implement everthing that is necessary to revert a didactic template.
const FILTER_PARENT_ROLES
toXml(ilXmlWriter $writer)
Write xml for export.
setTemplateId($a_id)
Set template id.
getType()
Get type of template.
const FILTER_SOURCE_OBJ_ID
initSourceObject()
Init the source object.
filterRoles(ilObject $source)
Filter roles.
setActionId($a_action_id)
Set action id.
getRefId()
Get ref id of target object.
const PATTERN_PARENT_TYPE
save()
write action to db overwrite for filling additional db fields
getTemplateId()
Get template id.
static lookupPatternsByParentId($a_parent_id, $a_parent_type)
Get patterns by template id.
static getLogger($a_component_id)
Get component logger.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.
static _lookupTitle($a_id)
lookup object title
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
foreach($_POST as $key=> $value) $res