/** * creates and returns a published paper object from a row * @param $row array * @return PublishedPaper object */ function &_returnPublishedPaperFromRow($row) { $publishedPaper = new PublishedPaper(); $publishedPaper->setPubId($row['pub_id']); $publishedPaper->setSchedConfId($row['sched_conf_id']); $publishedPaper->setDatePublished($this->datetimeFromDB($row['date_published'])); $publishedPaper->setSeq($row['seq']); $publishedPaper->setViews($row['views']); $publishedPaper->setPublicPaperId($row['public_paper_id']); $publishedPaper->setRoomId($row['room_id']); // Paper attributes $this->paperDao->_paperFromRow($publishedPaper, $row); $publishedPaper->setGalleys($this->galleyDao->getGalleysByPaper($row['paper_id'])); $publishedPaper->setSuppFiles($this->suppFileDao->getSuppFilesByPaper($row['paper_id'])); HookRegistry::call('PublishedPaperDAO::_returnPublishedPaperFromRow', array(&$publishedPaper, &$row)); return $publishedPaper; }