当前位置: 首页>>代码示例>>PHP>>正文


PHP ProofreaderAction::proofreadingUnderway方法代码示例

本文整理汇总了PHP中ProofreaderAction::proofreadingUnderway方法的典型用法代码示例。如果您正苦于以下问题:PHP ProofreaderAction::proofreadingUnderway方法的具体用法?PHP ProofreaderAction::proofreadingUnderway怎么用?PHP ProofreaderAction::proofreadingUnderway使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ProofreaderAction的用法示例。


在下文中一共展示了ProofreaderAction::proofreadingUnderway方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: submission

 /**
  * View an assigned submission's layout editing page.
  * @param $args array ($articleId)
  */
 function submission($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $journal =& Request::getJournal();
     $submissionLayoutHandler = new SubmissionLayoutHandler();
     $submissionLayoutHandler->validate($articleId);
     $submission =& $submissionLayoutHandler->submission;
     $this->setupTemplate(true, $articleId);
     $signoffDao =& DAORegistry::getDAO('SignoffDAO');
     import('classes.submission.proofreader.ProofreaderAction');
     ProofreaderAction::proofreadingUnderway($submission, 'SIGNOFF_PROOFREADING_LAYOUT');
     $layoutSignoff = $signoffDao->build('SIGNOFF_LAYOUT', ASSOC_TYPE_ARTICLE, $articleId);
     if ($layoutSignoff->getDateNotified() != null && $layoutSignoff->getDateUnderway() == null) {
         // Set underway date
         $layoutSignoff->setDateUnderway(Core::getCurrentDate());
         $signoffDao->updateObject($layoutSignoff);
     }
     $disableEdit = !$this->layoutEditingEnabled($submission);
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign_by_ref('submission', $submission);
     $templateMgr->assign('disableEdit', $disableEdit);
     $templateMgr->assign('useProofreaders', $journal->getSetting('useProofreaders'));
     $templateMgr->assign('templates', $journal->getSetting('templates'));
     $templateMgr->assign('helpTopicId', 'editorial.layoutEditorsRole.layout');
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($submission->getArticleId());
     if ($publishedArticle) {
         $issueDao =& DAORegistry::getDAO('IssueDAO');
         $issue =& $issueDao->getIssueById($publishedArticle->getIssueId());
         $templateMgr->assign_by_ref('publishedArticle', $publishedArticle);
         $templateMgr->assign_by_ref('issue', $issue);
     }
     $templateMgr->display('layoutEditor/submission.tpl');
 }
开发者ID:master3395,项目名称:CBPPlatform,代码行数:38,代码来源:SubmissionLayoutHandler.inc.php

示例2: submission

 /**
  * Submission - Proofreading view
  * @param $args array
  * @param $request PKPRequest
  */
 function submission($args, &$request)
 {
     $articleId = (int) array_shift($args);
     $journal =& $request->getJournal();
     $this->validate($request, $articleId);
     $this->setupTemplate(true, $articleId);
     $useProofreaders = $journal->getSetting('useProofreaders');
     $authorDao =& DAORegistry::getDAO('AuthorDAO');
     $authors = $authorDao->getAuthorsBySubmissionId($articleId);
     ProofreaderAction::proofreadingUnderway($this->submission, 'SIGNOFF_PROOFREADING_PROOFREADER');
     $useLayoutEditors = $journal->getSetting('useLayoutEditors');
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('useProofreaders', $useProofreaders);
     $templateMgr->assign_by_ref('authors', $authors);
     $templateMgr->assign_by_ref('submission', $this->submission);
     $templateMgr->assign('useLayoutEditors', $useLayoutEditors);
     $templateMgr->assign('helpTopicId', 'editorial.proofreadersRole.proofreading');
     $publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
     $publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($this->submission->getId());
     if ($publishedArticle) {
         $issueDao =& DAORegistry::getDAO('IssueDAO');
         $issue =& $issueDao->getIssueById($publishedArticle->getIssueId());
         $templateMgr->assign_by_ref('publishedArticle', $publishedArticle);
         $templateMgr->assign_by_ref('issue', $issue);
     }
     $templateMgr->display('proofreader/submission.tpl');
 }
开发者ID:yuricampos,项目名称:ojs,代码行数:32,代码来源:SubmissionProofreadHandler.inc.php

示例3: submissionEditing

 /**
  * Display the status and other details of an author's submission.
  */
 function submissionEditing($args)
 {
     $journal =& Request::getJournal();
     $user =& Request::getUser();
     $articleId = isset($args[0]) ? (int) $args[0] : 0;
     $this->validate($articleId);
     $submission =& $this->submission;
     $this->setupTemplate(true, $articleId);
     AuthorAction::copyeditUnderway($submission);
     import('classes.submission.proofreader.ProofreaderAction');
     ProofreaderAction::proofreadingUnderway($submission, 'SIGNOFF_PROOFREADING_AUTHOR');
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign_by_ref('submission', $submission);
     $templateMgr->assign_by_ref('copyeditor', $submission->getUserBySignoffType('SIGNOFF_COPYEDITING_INITIAL'));
     $templateMgr->assign_by_ref('submissionFile', $submission->getSubmissionFile());
     $templateMgr->assign_by_ref('initialCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_INITIAL'));
     $templateMgr->assign_by_ref('editorAuthorCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_AUTHOR'));
     $templateMgr->assign_by_ref('finalCopyeditFile', $submission->getFileBySignoffType('SIGNOFF_COPYEDITING_FINAL'));
     $templateMgr->assign_by_ref('suppFiles', $submission->getSuppFiles());
     $templateMgr->assign('useCopyeditors', $journal->getSetting('useCopyeditors'));
     $templateMgr->assign('useLayoutEditors', $journal->getSetting('useLayoutEditors'));
     $templateMgr->assign('useProofreaders', $journal->getSetting('useProofreaders'));
     $templateMgr->assign('helpTopicId', 'editorial.authorsRole.editing');
     $templateMgr->display('author/submissionEditing.tpl');
 }
开发者ID:master3395,项目名称:CBPPlatform,代码行数:28,代码来源:TrackSubmissionHandler.inc.php


注:本文中的ProofreaderAction::proofreadingUnderway方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。