當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ProofreaderAction類代碼示例

本文整理匯總了PHP中ProofreaderAction的典型用法代碼示例。如果您正苦於以下問題:PHP ProofreaderAction類的具體用法?PHP ProofreaderAction怎麽用?PHP ProofreaderAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ProofreaderAction類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: instructions

 /**
  * Display submission management instructions.
  * @param $args (type)
  */
 function instructions($args)
 {
     $this->setupTemplate();
     import('classes.submission.proofreader.ProofreaderAction');
     if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('copy', 'proof', 'referenceLinking'))) {
         Request::redirect(null, null, 'index');
     }
 }
開發者ID:elavaud,項目名稱:hrp_ct,代碼行數:12,代碼來源:MinutesHandler.inc.php

示例2: authorProofreadingComplete

 /**
  * Set the author proofreading date completion
  * @param $args array
  * @param $request PKPRequest
  */
 function authorProofreadingComplete($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate(true, $articleId);
     $send = $request->getUserVar('send') ? true : false;
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_AUTHOR_COMPLETE', $request, $send ? '' : $request->url(null, 'copyeditor', 'authorProofreadingComplete', 'send'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:EreminDm,項目名稱:water-cao,代碼行數:16,代碼來源:SubmissionCopyeditHandler.inc.php

示例3: instructions

 /**
  * Display submission management instructions.
  * @param $args (type)
  */
 function instructions($args)
 {
     $this->setupTemplate();
     import('classes.submission.proofreader.ProofreaderAction');
     if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('copy'))) {
         Request::redirect(null, Request::getRequestedPage());
     }
 }
開發者ID:ingmarschuster,項目名稱:MindResearchRepository,代碼行數:12,代碼來源:CopyeditorHandler.inc.php

示例4: instructions

 /**
  * Display submission management instructions.
  * @param $args array
  * @param $requet PKPRequest
  */
 function instructions($args, &$request)
 {
     $this->setupTemplate();
     if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('proof'))) {
         $request->redirect(null, $request->getRequestedPage());
     }
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:12,代碼來源:ProofreaderHandler.inc.php

示例5: deleteComment

 /**
  * Delete comment.
  * @param $args array
  * @param $request PKPRequest
  */
 function deleteComment($args, &$request)
 {
     $articleId = (int) array_shift($args);
     $commentId = (int) array_shift($args);
     $this->addCheck(new HandlerValidatorSubmissionComment($this, $commentId));
     $this->validate($request, $articleId);
     ProofreaderAction::deleteComment($commentId);
     // Determine which page to redirect back to.
     $commentPageMap = array(COMMENT_TYPE_PROOFREAD => 'viewProofreadComments', COMMENT_TYPE_LAYOUT => 'viewLayoutComments');
     // Redirect back to initial comments page
     $request->redirect(null, null, $commentPageMap[$this->comment->getCommentType()], $articleId);
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:17,代碼來源:SubmissionCommentsHandler.inc.php

示例6: instructions

 /**
  * Display submission management instructions.
  * @param $args array
  * @param $request PKPRequest
  */
 function instructions($args, &$request)
 {
     import('classes.submission.proofreader.ProofreaderAction');
     if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('copy', 'proof'))) {
         $request->redirect(null, null, 'index');
     }
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:12,代碼來源:AuthorHandler.inc.php

示例7: deleteComment

 /**
  * Delete comment.
  */
 function deleteComment($args)
 {
     $articleId = $args[0];
     $commentId = $args[1];
     $this->addCheck(new HandlerValidatorSubmissionComment($this, $commentId));
     $this->validate();
     $comment =& $this->comment;
     $submissionProofreadHandler = new SubmissionProofreadHandler();
     $submissionProofreadHandler->validate($articleId);
     $submission =& $submissionProofreadHandler->submission;
     ProofreaderAction::deleteComment($commentId);
     // Determine which page to redirect back to.
     $commentPageMap = array(COMMENT_TYPE_PROOFREAD => 'viewProofreadComments', COMMENT_TYPE_LAYOUT => 'viewLayoutComments');
     // Redirect back to initial comments page
     Request::redirect(null, null, $commentPageMap[$comment->getCommentType()], $articleId);
 }
開發者ID:ingmarschuster,項目名稱:MindResearchRepository,代碼行數:19,代碼來源:SubmissionCommentsHandler.inc.php

示例8: authorProofreadingComplete

 /**
  * Set the author proofreading date completion
  */
 function authorProofreadingComplete($args)
 {
     $articleId = Request::getUserVar('articleId');
     $this->validate($articleId);
     $this->setupTemplate(true);
     $send = isset($args[0]) && $args[0] == 'send' ? true : false;
     import('classes.submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_AUTHOR_COMPLETE', $send ? '' : Request::url(null, 'author', 'authorProofreadingComplete', 'send'))) {
         Request::redirect(null, null, 'submissionEditing', $articleId);
     }
 }
開發者ID:master3395,項目名稱:CBPPlatform,代碼行數:14,代碼來源:TrackSubmissionHandler.inc.php

示例9: instructions

 /**
  * Display submission management instructions.
  * @param $args (type)
  */
 function instructions($args)
 {
     if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('proof'))) {
         Request::redirect(null, Request::getRequestedPage());
     }
 }
開發者ID:alenoosh,項目名稱:ojs,代碼行數:10,代碼來源:ProofreaderHandler.inc.php

示例10: viewFile

 /**
  * View a file (inlines file).
  * @param $args array ($articleId, $fileId, [$revision])
  */
 function viewFile($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $fileId = isset($args[1]) ? $args[1] : 0;
     $revision = isset($args[2]) ? $args[2] : null;
     list($journal, $submission) = SubmissionProofreadHandler::validate($articleId);
     if (!ProofreaderAction::viewFile($articleId, $fileId, $revision)) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:Jouper,項目名稱:jouper,代碼行數:14,代碼來源:SubmissionProofreadHandler.inc.php

示例11: deleteComment

 /**
  * Delete comment.
  */
 function deleteComment($args)
 {
     ProofreaderHandler::validate();
     ProofreaderHandler::setupTemplate(true);
     $articleId = $args[0];
     $commentId = $args[1];
     $articleCommentDao =& DAORegistry::getDAO('ArticleCommentDAO');
     $comment =& $articleCommentDao->getArticleCommentById($commentId);
     list($journal, $submission) = SubmissionProofreadHandler::validate($articleId);
     list($comment) = SubmissionCommentsHandler::validate($commentId);
     ProofreaderAction::deleteComment($commentId);
     // Determine which page to redirect back to.
     $commentPageMap = array(COMMENT_TYPE_PROOFREAD => 'viewProofreadComments', COMMENT_TYPE_LAYOUT => 'viewLayoutComments');
     // Redirect back to initial comments page
     Request::redirect(null, null, $commentPageMap[$comment->getCommentType()], $articleId);
 }
開發者ID:Jouper,項目名稱:jouper,代碼行數:19,代碼來源:SubmissionCommentsHandler.inc.php

示例12: viewFile

 /**
  * View a file (inlines file).
  * @param $args array ($articleId, $fileId, [$revision])
  */
 function viewFile($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $fileId = isset($args[1]) ? $args[1] : 0;
     $revision = isset($args[2]) ? $args[2] : null;
     $this->validate($articleId);
     if (!ProofreaderAction::viewFile($articleId, $fileId, $revision)) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:reconciler,項目名稱:ojs,代碼行數:14,代碼來源:SubmissionProofreadHandler.inc.php

示例13: completeProofreader

 /**
  * Sets proofreader completion date
  * @param $args array
  * @param $request PKPRequest
  */
 function completeProofreader($args, &$request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $articleId);
     $this->setupTemplate($request, true);
     // set the date notified for this signoff so proofreading can no longer be initiated.
     $signoffDao =& DAORegistry::getDAO('SignoffDAO');
     $signoff = $signoffDao->build('SIGNOFF_PROOFREADING_PROOFREADER', ASSOC_TYPE_ARTICLE, $articleId);
     $signoff->setDateNotified(Core::getCurrentDate());
     $signoffDao->updateObject($signoff);
     $signoff = $signoffDao->build('SIGNOFF_PROOFREADING_LAYOUT', ASSOC_TYPE_ARTICLE, $articleId);
     $signoff->setDateCompleted(Core::getCurrentDate());
     $signoffDao->updateObject($signoff);
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', $request, $request->getUserVar('send') ? '' : $request->url(null, 'layoutEditor', 'completeProofreader'))) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:22,代碼來源:LayoutEditorHandler.inc.php

示例14: layoutEditorProofreadingComplete

 /**
  * Sets the date of layout editor proofreading completion
  */
 function layoutEditorProofreadingComplete($args)
 {
     $articleId = Request::getUserVar('articleId');
     list($journal, $submission) = SubmissionLayoutHandler::validate($articleId);
     parent::setupTemplate(true, $articleId);
     $send = false;
     if (isset($args[0])) {
         $send = Request::getUserVar('send') ? true : false;
     }
     import('submission.proofreader.ProofreaderAction');
     if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_COMPLETE', $send ? '' : Request::url(null, 'layoutEditor', 'layoutEditorProofreadingComplete', 'send'))) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:LiteratimBi,項目名稱:jupitertfn,代碼行數:17,代碼來源:SubmissionLayoutHandler.inc.php

示例15: viewFile

 /**
  * View a file (inlines file).
  * @param $args array ($articleId, $fileId, [$revision])
  * @param $request PKPRequest
  */
 function viewFile($args, &$request)
 {
     $articleId = (int) array_shift($args);
     $fileId = (int) array_shift($args);
     $revision = array_shift($args);
     // Can be null
     $this->validate($request, $articleId);
     if (!ProofreaderAction::viewFile($articleId, $fileId, $revision)) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:16,代碼來源:SubmissionProofreadHandler.inc.php


注:本文中的ProofreaderAction類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。