本文整理汇总了PHP中ProofreaderAction::layoutEditorProofreadingUnderway方法的典型用法代码示例。如果您正苦于以下问题:PHP ProofreaderAction::layoutEditorProofreadingUnderway方法的具体用法?PHP ProofreaderAction::layoutEditorProofreadingUnderway怎么用?PHP ProofreaderAction::layoutEditorProofreadingUnderway使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProofreaderAction
的用法示例。
在下文中一共展示了ProofreaderAction::layoutEditorProofreadingUnderway方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
list($journal, $submission) = SubmissionLayoutHandler::validate($articleId);
parent::setupTemplate(true, $articleId);
import('submission.proofreader.ProofreaderAction');
ProofreaderAction::layoutEditorProofreadingUnderway($submission);
$layoutAssignment =& $submission->getLayoutAssignment();
if ($layoutAssignment->getDateNotified() != null && $layoutAssignment->getDateUnderway() == null) {
// Set underway date
$layoutAssignment->setDateUnderway(Core::getCurrentDate());
$layoutDao =& DAORegistry::getDAO('LayoutEditorSubmissionDAO');
$layoutDao->updateSubmission($submission);
}
$disableEdit = !SubmissionLayoutHandler::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');
}