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

namespace Kufer\Web\Classes\Export;

class ExportKurseWithSpecifiedDozent extends \ExportKurse
{
  
  private $dozent;

  public function __construct(\Dozent $dozent)
  {
    parent::__construct();
    $this->dozent = $dozent;
  }

  public function getVarValue($varname)
  {
    switch ($this->getVarCategory($varname)) {
      default:
        return parent::getVarValue($varname);
      case 'd_':
        return $this->expCalculation->getVarValue4Dozent($this->getVarName($varname), $this->dozent);
    }
  }
}