Example #1
0
 function launch()
 {
     global $interface;
     global $interface;
     $interface->setPageTitle('Cron Log');
     $logEntries = array();
     $cronLogEntry = new CronLogEntry();
     $cronLogEntry->orderBy('startTime DESC');
     $cronLogEntry->limit(0, 30);
     $cronLogEntry->find();
     while ($cronLogEntry->fetch()) {
         $logEntries[] = clone $cronLogEntry;
     }
     $interface->assign('logEntries', $logEntries);
     $interface->setTemplate('cronLog.tpl');
     $interface->display('layout.tpl');
 }
Example #2
0
 function launch()
 {
     global $interface;
     $interface->setPageTitle('Cron Log');
     $logEntries = array();
     $cronLogEntry = new CronLogEntry();
     $cronLogEntry->orderBy('startTime DESC');
     $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : 1;
     $interface->assign('page', $page);
     $cronLogEntry->limit(($page - 1) * 30, 30);
     $cronLogEntry->find();
     while ($cronLogEntry->fetch()) {
         $logEntries[] = clone $cronLogEntry;
     }
     $interface->assign('logEntries', $logEntries);
     $interface->assign('sidebar', 'MyAccount/account-sidebar.tpl');
     $interface->setTemplate('cronLog.tpl');
     $interface->display('layout.tpl');
 }