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




class EmailTXT extends Datamodul
{
  public $xferdat;
  public $buchdat;
  public $wahl;
  public $mw;
  public $name;
  public $vorn;
  public $str;
  public $ort;
  public $gebdat;
  public $kto;
  public $blz;
  public $bank;
  public $ktoname;
  public $tel;
  public $tel2;
  public $mobil;
  public $fax;
  public $email;
  public $beruf;
  public $erm;
  public $ermproz;
  public $ermgrund;
  public $kurs01;
  public $kbez01;
  public $kurs02;
  public $kbez02;
  public $kurs03;
  public $kbez03;
  public $kurs04;
  public $kbez04;
  public $kurs05;
  public $kbez05;
  public $kurs06;
  public $kbez06;
  public $kurs07;
  public $kbez07;
  public $kurs08;
  public $kbez08;
  public $kurs09;
  public $kbez09;
  public $kurs10;
  public $kbez10;
  public $kurs11;
  public $kbez11;
  public $kurs12;
  public $kbez12;
  public $save;
  public $tnr;
  public $datumzeit;
  public $mobiltel;
  public $anmart;
  public $bemerk;
  public $freichar1;
  public $freichar2;
  public $freichar3;
  public $freichar4;
  public $freifloat1;
  public $freifloat2;
  public $freifloat3;
  public $freifloat4;
  public $freiint1;
  public $freiint2;
  public $freiint3;
  public $freiint4;
  public $kbelid01;
  public $kbelid02;
  public $kbelid03;
  public $kbelid04;
  public $kbelid05;
  public $kbelid06;
  public $kbelid07;
  public $kbelid08;
  public $kbelid09;
  public $kbelid10;
  public $kbelid11;
  public $kbelid12;

  public function setValue2Var($var, $val)
  {
    
    switch ($var) {   case 'save': $this->kbez12 = $val;break;
       case 'tnr': $this->kbez12 = $val;break;
       case 'datumzeit': $this->kbez12 = $val;break;
       case 'mobiltel': $this->kbez12 = $val;break;
       case 'anmart': $this->kbez12 = $val;break;
       case 'bemerk': $this->kbez12 = $val;break;
       default: Datamodul::setValue2Var($var, $val);
    }
  }

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'xferdat':
      case 'buchdat':
      case 'gebdat':
        return \DatamodulVarType::TYPE_DATE;
      case 'ermproz':
      case 'tnr':
      case 'save':
      case 'freiint1':
      case 'freiint2':
      case 'freiint3':
      case 'freiint4':
      case 'kbelid01':
      case 'kbelid02':
      case 'kbelid03':
      case 'kbelid04':
      case 'kbelid05':
      case 'kbelid06':
      case 'kbelid07':
      case 'kbelid08':
      case 'kbelid09':
      case 'kbelid010':
      case 'kbelid011':
      case 'kbelid012':
        return \DatamodulVarType::TYPE_INT;
      case 'freifloat1':
      case 'freifloat2':
      case 'freifloat3':
      case 'freifloat4':
        return \DatamodulVarType::TYPE_FLOAT_DOT;
    }
  }
}