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

class ExportArtikelPorto extends ExportBasis
{
  
  public function initiate()
  {
    parent::initiate();
    if (!$this->expCalculation instanceof ExportCalculation) {
      $this->expCalculation = new ExportCalculation($this);
    }
  }

  
  public function getVarValue($varname)
  {
    switch ($this->getVarCategory($varname)) {
      default: return parent::getVarValue($varname);
      case 'porto_': return $this->expCalculation->getVarValue4ArtikelPorto(
        $this->getVarName($varname),
        $this->exportresults[$this->actualset]
      );
    }
  }
}