function processes()
 {
     if (is_null($this->_processes)) {
         $this->_processes = array();
         $reindexProcess = new ReindexProcessLogEntry();
         $reindexProcess->reindex_id = $this->id;
         $reindexProcess->orderBy('processName');
         $reindexProcess->find();
         while ($reindexProcess->fetch()) {
             $this->_processes[] = clone $reindexProcess;
         }
     }
     return $this->_processes;
 }
Example #2
0
 function getReindexProcessNotes()
 {
     $id = $_REQUEST['id'];
     $reindexProcess = new ReindexProcessLogEntry();
     $reindexProcess->id = $id;
     $results = array('title' => '', 'modalBody' => '', 'modalButtons' => "");
     if ($reindexProcess->find(true)) {
         $results['title'] = "{$reindexProcess->processName} Notes";
         if (strlen(trim($reindexProcess->notes)) == 0) {
             $results['modalBody'] = "No notes have been entered for this process";
         } else {
             $results['modalBody'] = "<div class='helpText'>{$reindexProcess->notes}</div>";
         }
     } else {
         $results['title'] = "Error";
         $results['modalBody'] = "We could not find a process with that id.  No notes available.";
     }
     return json_encode($results);
 }
Example #3
0
 function getReindexProcessNotes()
 {
     global $interface;
     $id = $_REQUEST['id'];
     $reindexProcess = new ReindexProcessLogEntry();
     $reindexProcess->id = $id;
     if ($reindexProcess->find(true)) {
         $interface->assign('popupTitle', "{$reindexProcess->processName} Notes");
         if (strlen(trim($reindexProcess->notes)) == 0) {
             $interface->assign('popupContent', "No notes have been entered for this process");
         } else {
             $interface->assign('popupContent', "<div class='helpText'>{$reindexProcess->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');
 }