<?php

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

namespace Kufer\KuferTools\Basis\KursUebersicht\AlleTermine;

abstract class AlleTermineController extends \Kufer\KuferTools\Basis\Controller\AjaxToolController
{
  protected function getRequestObj()
  {
    $requestObj = new AlleTermineRequest();
    $knrString = \GetOperations::getVarValue('nr');
    $requestObj->belegIds = explode(':', $knrString);
    $ktnrString = \GetOperations::getVarValue('ktnr');
    $requestObj->ktIds = explode(':', $ktnrString);
    $requestObj->zeitbereich = \GetOperations::getVarValue('zeitbereich');
    $requestObj->beruecksichtigeFilter = \GetOperations::isDefined('beruecksichtigeFilter');

    return $requestObj;
  }
}