Example #1
0
 public function indexAction()
 {
     $config = Zend_Registry::get('Zend_Config');
     if (isset($config->runjobs->asynchronous) && $config->runjobs->asynchronous) {
         $this->view->asyncjobs = true;
         $this->view->failedJobCount = Opus_Job::getCountPerLabel(Opus_Job::STATE_FAILED);
         $this->view->unprocessedJobCount = Opus_Job::getCountPerLabel(Opus_Job::STATE_UNDEFINED);
     } else {
         $this->view->asyncjobs = false;
     }
 }