You are here

private function statspro::set_fields in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro.inc \StatsPro::set_fields()

Set all available data field to member variable.

1 call to statspro::set_fields()
statspro::__construct in ./statspro.inc

File

./statspro.inc, line 38
statspro class for statistics pro module.

Class

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

Code

private function set_fields() {
  $this->fields = array(
    'nuser' => user_access('administer users') ? l(t('User registrations'), 'admin/user/user') : t('User registrations'),
    'auser' => t('User online'),
    'nnode' => user_access('administer nodes') ? l(t('New nodes'), 'admin/content/node') : t('New nodes'),
    'cnode' => user_access('administer nodes') ? l(t('Changed nodes'), 'admin/content/node') : t('Changed nodes'),
    'comment' => user_access('administer comments') ? l(t('Comments'), 'admin/content/comment') : t('Comments'),
    'pi' => l(t('Page impressions'), 'admin/reports/hits'),
    'upi' => l(t('Page impressions for authenticated users'), 'admin/reports/hits'),
    'error' => user_access('access site reports') ? l(t('Errors'), 'admin/reports/dblog') : t('Errors'),
    'uerror' => user_access('access site reports') ? l(t('Errors for authenticated users'), 'admin/reports/dblog') : t('Errors for authenticated users'),
    'warning' => user_access('access site reports') ? l(t('Warnings'), 'admin/reports/dblog') : t('Warnings'),
    'uwarning' => user_access('access site reports') ? l(t('Warnings for authenticated users'), 'admin/reports/dblog') : t('Warnings for authenticated users'),
  );
}