You are here

function StatsPro::__construct in Statistics Pro 6.2

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

File

./statspro.inc, line 28
statspro class for Statistics Pro module.

Class

StatsPro
Manages the data saving and retrieval according to the user defined parameters.

Code

function __construct() {
  $this
    ->set_fields();
  if (module_exists('statistics')) {
    $this->absolute_amounts = array(
      'pi',
      'upi',
    );
  }
  else {
    $this->absolute_amounts = array();
  }
  $this->absolute_amounts += array(
    'error',
    'uerror',
    'warning',
    'uwarning',
    'emergency',
    'uemergency',
    'alert',
    'ualert',
    'critical',
    'ucritical',
  );
}