protected function processListAction($messageBoxContent = null) { $breadCrumbLinks = array(Zurmo::t('JobsManagerModule', 'JobsManagerModuleSingularLabel', LabelUtil::getTranslationParamsForAllModules())); $view = new JobsManagerTitleBarAndListView($this->getId(), $this->getModule()->getId(), JobsToJobsCollectionViewUtil::getMonitorJobData(), JobsToJobsCollectionViewUtil::getNonMonitorJobsData(), $messageBoxContent); $view = new JobsManagerPageView(ZurmoDefaultAdminViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $view, $breadCrumbLinks, 'SettingsBreadCrumbView')); echo $view->render(); }
public function testGetNonMonitorJobsData() { $jobsData = JobsToJobsCollectionViewUtil::getNonMonitorJobsData(); $this->assertTrue(count($jobsData) > 1); $this->assertTrue(!isset($jobsData['Monitor'])); $this->assertTrue(isset($jobsData['ImportCleanup'])); $this->assertTrue(isset($jobsData['CurrencyRatesUpdate'])); }
protected static function getAwaitingQueueingContentForDrillDown() { $monitorJobData = JobsToJobsCollectionViewUtil::getNonMonitorJobsData(); $content = Zurmo::t('MarketingModule', 'The last completed run date of the {jobName} job was on {dateTime}. The email message has not yet been created.', array('{jobName}' => CampaignQueueMessagesInOutboxJob::getDisplayName(), '{dateTime}' => $monitorJobData[CampaignQueueMessagesInOutboxJob::getType()]['lastCompletedRunEncodedContent'])); return ZurmoHtml::tag('h4', array(), $content); }
protected function processListAction($messageBoxContent = null) { $view = new JobsManagerTitleBarAndListView($this->getId(), $this->getModule()->getId(), JobsToJobsCollectionViewUtil::getMonitorJobData(), JobsToJobsCollectionViewUtil::getNonMonitorJobsData(), $messageBoxContent); $view = new JobsManagerPageView(ZurmoDefaultAdminViewUtil::makeStandardViewForCurrentUser($this, $view)); echo $view->render(); }