/** * Internal function to return an Series object from a row. * @param $row array * @return Series */ function _fromRow($row) { $series = parent::_fromRow($row); $series->setId($row['series_id']); $series->setPressId($row['press_id']); $series->setFeatured($row['featured']); $series->setImage(unserialize($row['image'])); $series->setPath($row['path']); $this->getDataObjectSettings('series_settings', 'series_id', $row['series_id'], $series); HookRegistry::call('SeriesDAO::_fromRow', array(&$series, &$row)); return $series; }
/** * Internal function to return a Section object from a row. * @param $row array * @return Section */ function _fromRow($row) { $section = parent::_fromRow($row); $section->setId($row['section_id']); $section->setJournalId($row['journal_id']); $section->setMetaIndexed($row['meta_indexed']); $section->setMetaReviewed($row['meta_reviewed']); $section->setAbstractsNotRequired($row['abstracts_not_required']); $section->setHideTitle($row['hide_title']); $section->setHideAuthor($row['hide_author']); $section->setHideAbout($row['hide_about']); $section->setAbstractWordCount($row['abstract_word_count']); $this->getDataObjectSettings('section_settings', 'section_id', $row['section_id'], $section); HookRegistry::call('SectionDAO::_fromRow', array(&$section, &$row)); return $section; }