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

class HLWerbemittel extends Datamodul
{
  
  public $nr;

  
  public $bezeichnung;

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

  public function getDMZValue($fieldname)
  {
    $dmzValue = parent::getDMZValue($fieldname);
    
    if ($fieldname == 'nr') {
      $dmzValue = $this->nr;
    }

    return $dmzValue;
  }

  
}