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

namespace Kufer\Web\KuferTools\Basis\Kursdetails\Detailsreiter\Termine\TerminBearbeiten;

abstract class TerminBearbeitenAbsendenController extends \Kufer\Web\KuferTools\Basis\Controller\ToolController
{
  
  protected function getRequestObj()
  {
    $requestObj = new TerminBearbeitenAbsendenRequest();
    $requestObj->knr = \GetOperations::getVarValue('knr');
    $requestObj->ktId = \GetOperations::getVarValue('ktId');

    $wssHandler = $this->getWssHandler();
    $requestObj->columnValues = $wssHandler->getColumnValuesFromPost();
    $requestObj->wssHandler = $wssHandler;

    $action = $this->getActionVal();

    return $this->handleXsrf($requestObj, $action, $requestObj->ktId);
  }

  abstract protected function getWssHandler(): \Kufer\Web\KuferTools\Utils\WssHandler;

  protected function getPresenter($pUseCaseResponse)
  {
    return null;
  }
}