Esempio n. 1
0
 public function _display_custom_report_filter()
 {
     //get report
     $reportModel = new ReportModel();
     $this->report = $reportModel->getCustomReports($app->input->get('id'));
     $this->report_data = $reportModel->getCustomReportData($app->input->get('id'));
     $this->state = $reportModel->getState();
 }
Esempio n. 2
0
 public function _display_custom_reports()
 {
     //load javascripts
     $this->document->addScript(JURI::base() . 'src/Cobalt/media/js/custom_reports.js');
     //get info from model
     $reportModel = new ReportModel();
     $reports = $reportModel->getCustomReports();
     $state = $reportModel->getState();
     //list view
     $custom_reports_list = ViewHelper::getView('reports', 'custom_reports_filter', 'phtml', array('reports' => $reports));
     //assign references
     $this->custom_reports_list = $custom_reports_list;
     $this->reports = $reports;
     $this->state = $state;
 }