/**
  * Create new action
  */
 public function save()
 {
     global $ilDB;
     parent::save();
     $query = 'INSERT INTO didactic_tpl_alr (action_id,role_template_id) ' . 'VALUES ( ' . $ilDB->quote($this->getActionId(), 'integer') . ', ' . $ilDB->quote($this->getRoleTemplateId(), 'integer') . ' ' . ') ';
     $res = $ilDB->manipulate($query);
     return true;
 }
 /**
  * Save action
  */
 public function save()
 {
     global $ilDB;
     parent::save();
     $query = 'INSERT INTO didactic_tpl_abr (action_id,filter_type) ' . 'VALUES( ' . $ilDB->quote($this->getActionId(), 'integer') . ', ' . $ilDB->quote($this->getFilterType(), 'integer') . ' ' . ')';
     $ilDB->manipulate($query);
     foreach ($this->getFilterPattern() as $pattern) {
         /* @var ilDidacticTemplateFilterPattern $pattern */
         $pattern->setParentId($this->getActionId());
         $pattern->setParentType(self::PATTERN_PARENT_TYPE);
         $pattern->save();
     }
 }