/**
  * Overload method to initialize report groupings
  * used here to also init report data!
  *
  * @return parent::initialize_groupings();
  */
 function initialize_groupings()
 {
     $this->get_filter_values();
     // populate require class properties
     $this->grouptotal = 0;
     return parent::initialize_groupings();
 }
 /**
  * Overload method to initialize report groupings
  * used here to also init report data!
  *
  * @return parent::initialize_groupings();
  */
 function initialize_groupings()
 {
     $show_array = php_report_filtering_get_active_filter_values($this->get_report_shortname(), 'sccts', $this->filter);
     if (isset($show_array[0]['value'])) {
         $this->show_time_spent = $show_array[0]['value'] == 1 ? true : false;
     }
     $show_array = php_report_filtering_get_active_filter_values($this->get_report_shortname(), 'sccg', $this->filter);
     if (isset($show_array[0]['value'])) {
         $this->show_total_grade = $show_array[0]['value'] == 1 ? true : false;
     }
     return parent::initialize_groupings();
 }
 /**
  * Constructs an appropriate order by clause for the main query
  *
  * @return  string  The appropriate order by clause
  */
 function get_order_by_clause()
 {
     $result = parent::get_order_by_clause();
     //make sure the result is actually valid
     if ($result != '') {
         //always sort by course in addition to everything else
         $result .= ', coursename, courseid';
     }
     return $result;
 }
Example #4
0
 /**
  * Adds this column to an existing report
  *
  * @param  table_report  $report  The report to add this column to
  */
 function add_to_report(&$report) {
     $report->add_horizontal_bar_column($this->id, $this->name, $this->css_identifier, $this->total_column, $this->align, $this->display_string, $this->display_percent_sign, $this->width, $this->height);
 }
 function get_config_header() {
     $this->set_gas_gauge_page($this->gas_gauge_page);
     return parent::get_config_header();
 }