function fromRow($row, $fileImplementation) { // Identify the delegate. $daoDelegate = $this->_getDaoDelegate($fileImplementation); /* @var $daoDelegate SubmissionFileDAODelegate */ // Let the DAO delegate instantiate the file implementation. return $daoDelegate->fromRow($row); }
/** * @see PKPSubmissionFileDAO::fromRow() */ function fromRow($row) { if (isset($row['artwork_file_id']) && is_numeric($row['artwork_file_id'])) { return parent::fromRow($row, 'ArtworkFile'); } else { return parent::fromRow($row, 'ArticleFile'); } }