You are here

public function StatsPro::get_days_data in Statistics Pro 6.2

Same name and namespace in other branches
  1. 6 statspro.inc \statspro::get_days_data()

Get data out of drupal source tables.

File

./statspro.inc, line 603
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;
}