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

namespace Kufer\Web\Classes\Datamodul;

class Raumreservierung extends \Datamodul
{
  
  public $termine = array();

  
  public $typ;

  
  public $antragsteller;

  
  public $abteilung;

  
  public $verantwortl;

  
  public $telefon;

  
  public $email;

  
  public $antragsdatum;

  
  public $titel;

  
  public $datBeginn;

  
  public $datEnde;

  
  public $uhrVon;

  
  public $uhrBis;

  
  public $persVon;

  
  public $persBis;

  
  public $raumart;

  
  public $raum;

  
  public $qmVon;

  
  public $qmBis;

  
  public $terminAnzahl;

  
  public $kue_kaffee;

  
  public $kue_tee;

  
  public $kue_wasser;

  
  public $kue_saft;

  
  public $kue_speisen;

  
  public $kt;

  
  public $kt_text;

  
  public $vBearb;

  
  public $vDatum;

  
  public $bearbeiter;

  
  public $bearbDatum;

  
  public $erfasstVon;

  
  public $erfasstAm;

  
  public $knr;

  
  public $befristetBis;

  
  public $tnr;

  
  public $ue;

  
  public $ustdMin;

  
  public $indwunsch;

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default: return parent::getTyp($pFieldName);
      case 'id':
      case 'persVon':
      case 'persBis':
      case 'qmVon':
      case 'qmBis':
      case 'terminAnzahl':
      case 'kt':
      case 'tnr':
      case 'ustdMin':
        return \DatamodulVarType::TYPE_INT;
      case 'ue':
        return \DatamodulVarType::TYPE_FLOAT;
      case 'antragsdatum':
      case 'datBeginn':
      case 'datEnde':
      case 'befristetBis':
        return \DatamodulVarType::TYPE_DATE;
      case 'vDatum':
      case 'bearbDatum':
      case 'erfasstAm':
        return \DatamodulVarType::TYPE_DATETIME;
      case 'uhrVon':
      case 'uhrBis':
        return \DatamodulVarType::TYPE_TIME;
      case 'kue_kaffee':
      case 'kue_tee':
      case 'kue_wasser':
      case 'kue_saft':
      case 'kue_speisen':
        return \DatamodulVarType::TYPE_BOOL_WF;
    }
  }
}