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


class ExportCalculationColumnDifference extends ExportCalculationColumn
{
  
  public function getVarValue4ColumnDiff($pVarname, $pDatamodulColumn, $pDataModulWert, $pOldDataModulWert, $pIsFormular = false, string $requestPrefix = '')
  {
    
    
    $varparam = '';
    $varname = $pVarname;
    if (StringOperations::strpos($varname, ':')) {
      $parts = explode(':', $varname);
      $varname = $parts[0];
      $varparam = $parts[1];
    }

    $lcvarname = \StringOperations::strtolower($varname);
    switch ($lcvarname) {
    default:
      return $this->getVarValue4Column($pVarname, $pDatamodulColumn, $pDataModulWert, $pIsFormular, $requestPrefix);
    case 'old_wert':
      return $this->getWssWert($pOldDataModulWert, $pDatamodulColumn, $pIsFormular);
    case 'old_feld':
      return $this->getInputField($pOldDataModulWert, $pDatamodulColumn, $pIsFormular, $requestPrefix);
    case 'old_isempty':
      return $this->isEmpty($pOldDataModulWert, $pDatamodulColumn, $pIsFormular);
    }
  }
}