Beispiel #1
0
 /**
  * creates and returns a published article object from a row
  * @param $row array
  * @param $callHooks boolean Whether or not to call hooks
  * @return PublishedArticle object
  */
 function _fromRow($row, $callHooks = true)
 {
     $publishedArticle = parent::_fromRow($row);
     $publishedArticle->setPublishedArticleId($row['published_submission_id']);
     $publishedArticle->setIssueId($row['issue_id']);
     $publishedArticle->setSequence($row['seq']);
     $publishedArticle->setAccessStatus($row['access_status']);
     $publishedArticle->setGalleys($this->galleyDao->getBySubmissionId($row['submission_id'])->toArray());
     if ($callHooks) {
         HookRegistry::call('PublishedArticleDAO::_returnPublishedArticleFromRow', array(&$publishedArticle, &$row));
     }
     return $publishedArticle;
 }
 /**
  * Constructor
  */
 function ArticleXMLGalleyDAO($parentPluginName)
 {
     $this->parentPluginName = $parentPluginName;
     parent::ArticleGalleyDAO();
 }