示例#1
0
 /**
  * Internal function to return a BookForReview object from a row.
  * @param $row array
  * @return BookForReview
  */
 function &_returnBookForReviewFromRow($row)
 {
     $bfrPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);
     $bfrPlugin->import('classes.BookForReview');
     $book = new BookForReview();
     $book->setId($row['book_id']);
     $book->setJournalId($row['journal_id']);
     $book->setStatus($row['status']);
     $book->setUserId($row['user_id']);
     $book->setEditorId($row['editor_id']);
     $book->setAuthorType($row['author_type']);
     $book->setPublisher($row['publisher']);
     $book->setUrl($row['url']);
     $book->setYear($row['year']);
     $book->setLanguage($row['language']);
     $book->setCopy($row['copy']);
     $book->setEdition($row['edition']);
     $book->setPages($row['pages']);
     $book->setISBN($row['isbn']);
     $book->setArticleId($row['submission_id']);
     $book->setNotes($row['notes']);
     $book->setDateCreated($row['date_created']);
     $book->setDateRequested($row['date_requested']);
     $book->setDateAssigned($row['date_assigned']);
     $book->setDateMailed($row['date_mailed']);
     $book->setDateDue($row['date_due']);
     $book->setDateSubmitted($row['date_submitted']);
     $book->setAuthors($this->bookForReviewAuthorDao->getAuthorsByBookForReview($row['book_id']));
     $this->getDataObjectSettings('books_for_review_settings', 'book_id', $row['book_id'], $book);
     HookRegistry::call('BookForReviewDAO::_returnBookForReviewFromRow', array(&$book, &$row));
     return $book;
 }