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

namespace Kufer\Web\KuferTools\Basis\KursUebersicht\Terminplan;

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

    return $requestObj;
  }
}