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




namespace Kufer\Web\KuferTools\Basis\KursUebersicht\Detailsreiter\Honorar\AddDozent;

abstract class NewDozentController extends \Kufer\Web\KuferTools\Basis\Controller\ToolController
{
  protected function getRequestObj()
  {
    $requestObj = new NewDozentRequest();
    
    $requestObj->knr = \RequestOperations::getVarValue('knr');
    
    $wssHandler = new \Kufer\Web\KuferTools\Utils\WssHandler($this->getToolId(), $this->getToolSectionId(), NewDozentUseCase::getUser());
    $requestObj->columnValues = $wssHandler->getColumnValuesFromPost();
    
    $requestObj->wssHandler = $wssHandler;

    $action = $this->getActionVal(); 
    
    
    return $this->handleXsrf($requestObj, $action, $requestObj->knr);
  }

  abstract protected function getToolSectionId(): int;

  abstract protected function getToolId(): int;

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