<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


class StatistikEintrag extends Datamodul
{
  public $u_id;
  public $request_date;
  public $user_agent;
  public $request_action;
  public $params;

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'request_date':
      case 'request_action':
        return \DatamodulVarType::TYPE_INT;
    }
  }
}

class StatistikParameter extends Datamodul
{
  
  public function __construct($pName = '', $pValue = '')
  {
    $this->param_name = $pName;
    $this->param_value = $pValue;
  }

  public $s_id;
  public $param_name;
  public $param_value;

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 's_id':
        return \DatamodulVarType::TYPE_INT;
    }
  }
}


class StatistikAggregation extends Datamodul
{
  public $monat;
  public $jahr;
  public $feature;
  public $anzahl;
  public $subfeature = '';
  public $sonstiges = '';

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'monat':
      case 'jahr':
      case 'feature':
      case 'anzahl':
        return \DatamodulVarType::TYPE_INT;
    }
  }
}