本文整理汇总了PHP中ProofreaderAction::proofreadEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP ProofreaderAction::proofreadEmail方法的具体用法?PHP ProofreaderAction::proofreadEmail怎么用?PHP ProofreaderAction::proofreadEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProofreaderAction
的用法示例。
在下文中一共展示了ProofreaderAction::proofreadEmail方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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(true);
if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', $request, $request->getUserVar('send') ? '' : $request->url(null, 'proofreader', 'completeProofreader'))) {
$request->redirect(null, null, 'submission', $articleId);
}
}
示例2: completeProofreader
/**
* Sets proofreader completion date
*/
function completeProofreader($args)
{
$articleId = Request::getUserVar('articleId');
SubmissionProofreadHandler::validate($articleId);
parent::setupTemplate(true);
if (ProofreaderAction::proofreadEmail($articleId, 'PROOFREAD_COMPLETE', Request::getUserVar('send') ? '' : Request::url(null, 'proofreader', 'completeProofreader'))) {
Request::redirect(null, null, 'submission', $articleId);
}
}
示例3: 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);
}
}
示例4: 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);
}
}
示例5: 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);
}
}
示例6: 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);
}
}
示例7: 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);
}
}
示例8: 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);
}
}
示例9: 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);
}
}