<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */


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

  
  public $params;

  
  public $webpage_id;

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

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 $webpage_id;

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