/** * View submission event log. */ function submissionEventLog($args, $request) { $paperId = (int) array_shift($args); $logId = (int) array_shift($args); $this->validate($request, $paperId); $submission =& $this->submission; $this->setupTemplate($request, true, $paperId, 'history'); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('isDirector', Validation::isDirector()); $templateMgr->assign_by_ref('submission', $submission); if ($logId) { $logDao =& DAORegistry::getDAO('PaperEventLogDAO'); $logEntry =& $logDao->getLogEntry($logId, $paperId); } if (isset($logEntry)) { $templateMgr->assign('logEntry', $logEntry); $templateMgr->display('trackDirector/submissionEventLogEntry.tpl'); } else { $rangeInfo =& Handler::getRangeInfo('eventLogEntries', array($paperId)); import('classes.paper.log.PaperLog'); while (true) { $eventLogEntries =& PaperLog::getEventLogEntries($paperId, $rangeInfo); if ($eventLogEntries->isInBounds()) { break; } unset($rangeInfo); $rangeInfo =& $eventLogEntries->getLastPageRangeInfo(); unset($eventLogEntries); } $templateMgr->assign('eventLogEntries', $eventLogEntries); $templateMgr->display('trackDirector/submissionEventLog.tpl'); } }