function setPublishedArticleId($publishedArticleId) { return $this->setData('publishedArticleId', $publishedArticleId); }
/** * creates and returns a published article object from a row, including all supp files etc. * @param $row array * @param $callHooks boolean Whether or not to call hooks * @return PublishedArticle object */ function &_returnPublishedArticleFromRow($row, $callHooks = true) { $publishedArticle = new PublishedArticle(); $publishedArticle->setPublishedArticleId($row['published_article_id']); $publishedArticle->setIssueId($row['issue_id']); $publishedArticle->setDatePublished($this->datetimeFromDB($row['date_published'])); $publishedArticle->setSeq($row['seq']); $publishedArticle->setAccessStatus($row['access_status']); $publishedArticle->setGalleys($this->galleyDao->getGalleysByArticle($row['article_id'])); // Article attributes $this->articleDao->_articleFromRow($publishedArticle, $row); $publishedArticle->setSuppFiles($this->suppFileDao->getSuppFilesByArticle($row['article_id'])); if ($callHooks) { HookRegistry::call('PublishedArticleDAO::_returnPublishedArticleFromRow', array(&$publishedArticle, &$row)); } return $publishedArticle; }