/** * Constructor */ function ArticleFileDAODelegate() { parent::SubmissionFileDAODelegate(); }
/** * @see SubmissionFileDAODelegate::fromRow() * @return ArtworkFile */ function fromRow($row) { $artworkFile = parent::fromRow($row); $artworkFile->setCredit($row['credit']); $artworkFile->setCaption($row['caption']); $artworkFile->setChapterId(is_null($row['chapter_id']) ? null : (int) $row['chapter_id']); $artworkFile->setContactAuthor($row['contact_author']); $artworkFile->setCopyrightOwner($row['copyright_owner']); $artworkFile->setPermissionTerms($row['permission_terms']); $artworkFile->setPermissionFileId(is_null($row['permission_file_id']) ? null : (int) $row['permission_file_id']); $artworkFile->setCopyrightOwnerContactDetails($row['copyright_owner_contact']); return $artworkFile; }
/** * @copydoc DAO::getAdditionalFieldNames() */ function getAdditionalFieldNames() { return array_merge(parent::getAdditionalFieldNames(), array('chapterId')); }
/** * Delete the public IDs of all publishing objects in a press. * @param $pressId int * @param $pubIdType string One of the NLM pub-id-type values or * 'other::something' if not part of the official NLM list * (see <http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html>). */ function deleteAllPubIds($pressId, $pubIdType) { $pubObjectDaos = array('MonographDAO', 'PublicationFormatDAO'); foreach ($pubObjectDaos as $daoName) { $dao = DAORegistry::getDAO($daoName); $dao->deleteAllPubIds($pressId, $pubIdType); } import('lib.pkp.classes.submission.SubmissionFileDAODelegate'); $submissionFileDaoDelegate = new SubmissionFileDAODelegate(); $submissionFileDaoDelegate->deleteAllPubIds($pressId, $pubIdType); }
/** * @see SubmissionFileDAODelegate::getLocaleFieldNames() */ function getLocaleFieldNames() { $localeFieldNames = parent::getLocaleFieldNames(); $localeFieldNames[] = 'name'; return $localeFieldNames; }
/** * @copydoc DAO::getAdditionalFieldNames() */ function getAdditionalFieldNames() { return array_merge(parent::getAdditionalFieldNames(), array('dateCreated', 'language')); }
/** * Delete the public IDs of all publishing objects in a journal. * @param $journalId int * @param $pubIdType string One of the NLM pub-id-type values or * 'other::something' if not part of the official NLM list * (see <http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html>). */ function deleteAllPubIds($journalId, $pubIdType) { $pubObjectDaos = array('IssueDAO', 'ArticleDAO', 'ArticleGalleyDAO'); foreach ($pubObjectDaos as $daoName) { $dao = DAORegistry::getDAO($daoName); $dao->deleteAllPubIds($journalId, $pubIdType); } import('lib.pkp.classes.submission.SubmissionFileDAODelegate'); $submissionFileDaoDelegate = new SubmissionFileDAODelegate(); $submissionFileDaoDelegate->deleteAllPubIds($journalId, $pubIdType); }