/** * Internal function to return an Monograph object from a row. * @param $row array * @return Monograph */ function _fromRow($row) { $monograph = parent::_fromRow($row); $monograph->setSeriesId($row['series_id']); $monograph->setSeriesPosition($row['series_position']); $monograph->setSeriesAbbrev(isset($row['series_abbrev']) ? $row['series_abbrev'] : null); $monograph->setWorkType($row['edited_volume']); HookRegistry::call('MonographDAO::_fromRow', array(&$monograph, &$row)); return $monograph; }
/** * Internal function to return an Article object from a row. * @param $row array * @return Article */ function _fromRow($row) { $article = parent::_fromRow($row); $article->setSectionId($row['section_id']); $article->setSectionTitle($row['section_title']); $article->setSectionAbbrev($row['section_abbrev']); $article->setCitations($row['citations']); $article->setCurrentRound($row['current_round']); $article->setPages($row['pages']); $article->setFastTracked($row['fast_tracked']); $article->setHideAuthor($row['hide_author']); HookRegistry::call('ArticleDAO::_fromRow', array(&$article, &$row)); return $article; }