本文整理汇总了PHP中ProofreaderAction类的典型用法代码示例。如果您正苦于以下问题:PHP ProofreaderAction类的具体用法?PHP ProofreaderAction怎么用?PHP ProofreaderAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ProofreaderAction类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: instructions
/**
* Display submission management instructions.
* @param $args (type)
*/
function instructions($args)
{
import('submission.proofreader.ProofreaderAction');
if (!isset($args[0]) || !ProofreaderAction::instructions($args[0], array('copy', 'proof'))) {
Request::redirect(null, null, 'index');
}
}
开发者ID:LiteratimBi,项目名称:jupitertfn,代码行数:11,代码来源:AuthorHandler.inc.php
示例17: thankLayoutEditorProofreader
/**
* Thank layout editor for proofreading
* @param $args array
* @param $request PKPRequest
*/
function thankLayoutEditorProofreader($args, $request)
{
$articleId = (int) $request->getUserVar('articleId');
$send = $request->getUserVar('send');
$this->validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
$this->setupTemplate(true, $articleId, 'editing');
import('classes.submission.proofreader.ProofreaderAction');
if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_ACK', $request, $send ? '' : $request->url(null, null, 'thankLayoutEditorProofreader'))) {
$request->redirect(null, null, 'submissionEditing', $articleId);
}
}
开发者ID:EreminDm,项目名称:water-cao,代码行数:16,代码来源:SubmissionEditHandler.inc.php
示例18: thankLayoutEditorProofreader
/**
* Thank layout editor for proofreading
*/
function thankLayoutEditorProofreader($args)
{
$articleId = Request::getUserVar('articleId');
$send = Request::getUserVar('send') ? 1 : 0;
list($journal, $submission) = SubmissionEditHandler::validate($articleId, SECTION_EDITOR_ACCESS_EDIT);
parent::setupTemplate(true, $articleId, 'editing');
import('submission.proofreader.ProofreaderAction');
if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_ACK', $send ? '' : Request::url(null, null, 'thankLayoutEditorProofreader'))) {
Request::redirect(null, null, 'submissionEditing', $articleId);
}
}
开发者ID:LiteratimBi,项目名称:jupitertfn,代码行数:14,代码来源:SubmissionEditHandler.inc.php
示例19: layoutEditorProofreadingComplete
/**
* Sets the date of layout editor proofreading completion
* @param $args array
* @param $request Request
*/
function layoutEditorProofreadingComplete($args, $request)
{
$articleId = (int) $request->getUserVar('articleId');
list($journal, $submission) = $this->validate($request, $articleId);
$this->setupTemplate(true, $articleId);
$send = false;
if (isset($args[0])) {
$send = $request->getUserVar('send') ? true : false;
}
import('classes.submission.proofreader.ProofreaderAction');
if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_LAYOUT_COMPLETE', $request, $send ? '' : $request->url(null, 'layoutEditor', 'layoutEditorProofreadingComplete', 'send'))) {
$request->redirect(null, null, 'submission', $articleId);
}
}
开发者ID:yuricampos,项目名称:ojs,代码行数:19,代码来源:SubmissionLayoutHandler.inc.php
注:本文中的ProofreaderAction类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论