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

class WareDozent extends Ware
{
  public $dozent;

  public function getVarValue($name)
  {
    if ($this->VarExist($name)) {
      return Datamodul::getVarValue($name);
    } elseif ($this->dozent->VarExist($name)) {
      return $this->dozent->getVarValue($name);
    } else {
      return '';
    }
  }
}