/** * Generate the report * * @param array $channel_stats contains statistics for each channel * @param array $search_roles roles searched for * @param array $grand_total entire total of disk space consumed by channel * @param array $display_params parameters relevant to display of report. * * @return void */ public function generateReport($channel_stats, $search_roles, $grand_total, $display_params) { if ($display_params["verbose"]) { $this->cols = 3; } else { $this->cols = 2; } parent::generateReport($channel_stats, $search_roles, $grand_total, $display_params); }
/** * Generate the report * * @return void */ public function generateReport() { $display_params = array("verbose" => $this->_verbose, "all_values" => $this->_all_values, "readable" => $this->_readable, "sort_size" => $this->_sort_size, "summarise" => $this->_summarise, "round" => $this->_round); if (is_null($this->_driver)) { throw new PEAR_Size_Exception("Output driver not set."); } if (is_null($this->_channel_stats)) { throw new PEAR_Size_Exception("Channel Data not defined."); } if ($this->_grand_total != 0) { $this->_driver->generateReport($this->_channel_stats, $this->search_roles, $this->_grand_total, $display_params); } }