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

class NewsletterFb extends Datamodul
{
  public $id;
  public $nr;
  public $typ;
  public $kennz;
  public $bearbeiter;
  public $bearbdatum;

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

  public function getDMZValue($pFieldName)
  {
    if ($pFieldName == 'nr') {
      return $this->nr;
    } else {
      return parent::getDMZValue($pFieldName);
    }
  }
}