Ejemplo n.º 1
0
 function launch()
 {
     global $interface;
     global $interface;
     $interface->setPageTitle('Reindex Log');
     $logEntries = array();
     $logEntry = new ReindexLogEntry();
     $logEntry->orderBy('startTime DESC');
     $logEntry->limit(0, 30);
     $logEntry->find();
     while ($logEntry->fetch()) {
         $logEntries[] = clone $logEntry;
     }
     $interface->assign('logEntries', $logEntries);
     $interface->setTemplate('reindexLog.tpl');
     $interface->display('layout.tpl');
 }
Ejemplo n.º 2
0
 function getReindexNotes()
 {
     global $interface;
     $id = $_REQUEST['id'];
     $reindexProcess = new ReindexLogEntry();
     $reindexProcess->id = $id;
     if ($reindexProcess->find(true)) {
         $interface->assign('popupTitle', "Reindex Notes");
         if (strlen(trim($reindexProcess->notes)) == 0) {
             $interface->assign('popupContent', "No notes have been entered yet");
         } else {
             $interface->assign('popupContent', "<div class='helpText'>{$reindexProcess->notes}</div>");
         }
     } else {
         $interface->assign('popupTitle', "Error");
         $interface->assign('popupContent', "We could not find a reindex entry with that id.  No notes available.");
     }
     return $interface->fetch('popup-wrapper.tpl');
 }
Ejemplo n.º 3
0
 function getReindexNotes()
 {
     $id = $_REQUEST['id'];
     $reindexProcess = new ReindexLogEntry();
     $reindexProcess->id = $id;
     $results = array('title' => '', 'modalBody' => '', 'modalButtons' => '');
     if ($reindexProcess->find(true)) {
         $results['title'] = "Reindex Notes";
         if (strlen(trim($reindexProcess->notes)) == 0) {
             $results['modalBody'] = "No notes have been entered yet";
         } else {
             $results['modalBody'] = "<div class='helpText'>{$reindexProcess->notes}</div>";
         }
     } else {
         $results['title'] = "Error";
         $results['modalBody'] = "We could not find a reindex entry with that id.  No notes available.";
     }
     return json_encode($results);
 }
Ejemplo n.º 4
0
 function launch()
 {
     global $interface;
     $interface->setPageTitle('Reindex Log');
     $logEntries = array();
     $logEntry = new ReindexLogEntry();
     $logEntry->orderBy('startTime DESC');
     $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : 1;
     $interface->assign('page', $page);
     $logEntry->limit(($page - 1) * 30, 30);
     $logEntry->find();
     while ($logEntry->fetch()) {
         $logEntries[] = clone $logEntry;
     }
     $interface->assign('logEntries', $logEntries);
     $interface->assign('sidebar', 'MyAccount/account-sidebar.tpl');
     $interface->setTemplate('reindexLog.tpl');
     $interface->display('layout.tpl');
 }