_fromRow() 공개 메소드

Internal function to return a Submission object from a row.
public _fromRow ( $row ) : Submission
$row array
리턴 Submission
예제 #1
0
 /**
  * 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;
 }
예제 #2
0
파일: ArticleDAO.inc.php 프로젝트: pkp/ojs
 /**
  * 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;
 }