function processes()
 {
     if (is_null($this->_processes)) {
         $this->_processes = array();
         $reindexProcess = new CronProcessLogEntry();
         $reindexProcess->cronId = $this->id;
         $reindexProcess->orderBy('processName');
         $reindexProcess->find();
         while ($reindexProcess->fetch()) {
             $this->_processes[] = clone $reindexProcess;
         }
     }
     return $this->_processes;
 }
Beispiel #2
0
 function getCronProcessNotes()
 {
     global $interface;
     $id = $_REQUEST['id'];
     $cronProcess = new CronProcessLogEntry();
     $cronProcess->id = $id;
     if ($cronProcess->find(true)) {
         $interface->assign('popupTitle', "{$cronProcess->processName} Notes");
         if (strlen($cronProcess->notes) == 0) {
             $interface->assign('popupContent', "No notes have been entered for this process");
         } else {
             $interface->assign('popupContent', "<div class='helpText'>{$cronProcess->notes}</div>");
         }
     } else {
         $interface->assign('popupTitle', "Error");
         $interface->assign('popupContent', "We could not find a process with that id.  No notes available.");
     }
     return $interface->fetch('popup-wrapper.tpl');
 }
Beispiel #3
0
 function getCronProcessNotes()
 {
     $id = $_REQUEST['id'];
     $cronProcess = new CronProcessLogEntry();
     $cronProcess->id = $id;
     $results = array('title' => '', 'modalBody' => '', 'modalButtons' => "");
     if ($cronProcess->find(true)) {
         $results['title'] = "{$cronProcess->processName} Notes";
         if (strlen($cronProcess->notes) == 0) {
             $results['modalBody'] = "No notes have been entered for this process";
         } else {
             $results['modalBody'] = "<div class='helpText'>{$cronProcess->notes}</div>";
         }
     } else {
         $results['title'] = "Error";
         $results['modalBody'] = "We could not find a process with that id.  No notes available.";
     }
     return json_encode($results);
 }