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




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

abstract class NewDozentController extends \Kufer\KuferTools\Basis\Controller\ToolController
{
  protected function getRequestObj()
  {
    $requestObj = new NewDozentRequest();
    
    $requestObj->knr = \RequestOperations::getVarValue('knr');
    
    $wssHandler = new \Kufer\KuferTools\Utils\WssHandler($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;

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