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


class Ferien extends Datamodul
{
  public $id;
  public $kal_nr;
  public $beginn;
  public $ende;
  public $text;
  public $bearbeiter;
  public $bearbdatum;
  public $erfasstam;
  public $erfasstvon;

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'beginn':
      case 'ende':
      case 'bearbdatum':
      case 'erfasstam':
        return \DatamodulVarType::TYPE_DATE;
      case 'id':
      case 'kal_nr':
        return \DatamodulVarType::TYPE_INT;
    }
  }
}