public function statspro::get_days_data in Statistics Pro 6
Same name and namespace in other branches
- 6.2 statspro.inc \StatsPro::get_days_data()
Get data out of drupal source tables.
File
- ./
statspro.inc, line 451 - statspro class for statistics pro module.
Class
- statspro
- Manages the data saving and retrieval according to the user defined parameters.
Code
public function get_days_data($last_run = 0) {
// set last run
$this->last_run = $last_run;
// reset days
$this->days = array();
foreach ($this->fields as $field => $desc) {
$this->current_field = $field;
$method = 'get_data_' . $this->current_field;
$this
->{$method}();
}
return $this->days;
}