/**
  * read action data
  * @global ilDB $ilDB
  * @return bool
  */
 public function read()
 {
     global $ilDB;
     if (!parent::read()) {
         return false;
     }
     $query = 'SELECT * FROM didactic_tpl_abr ' . 'WHERE action_id = ' . $ilDB->quote($this->getActionId());
     $res = $ilDB->query($query);
     while ($row = $res->fetchRow(DB_FETCHMODE_OBJECT)) {
         $this->setFilterType($row->filter_type);
     }
     // Read filter
     include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';
     foreach (ilDidacticTemplateFilterPatternFactory::lookupPatternsByParentId($this->getActionId(), self::PATTERN_PARENT_TYPE) as $pattern) {
         $this->addFilterPattern($pattern);
     }
 }
 /**
  * Read db entry
  * @global ilDB $ilDB
  * @return bool
  */
 public function read()
 {
     global $ilDB;
     parent::read();
     $query = 'SELECT * FROM didactic_tpl_alr ' . 'WHERE action_id = ' . $ilDB->quote($this->getActionId(), 'integer');
     $res = $ilDB->query($query);
     while ($row = $res->fetchRow(DB_FETCHMODE_OBJECT)) {
         $this->setRoleTemplateId($row->role_template_id);
     }
     return true;
 }