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

namespace Kufer\Web\KuferTools\Basis\DrucklistenAllgemein\Drucklisten\ShowSettingsKurseListen;


abstract class ShowSettingsDruckListenAllgemeinController extends \Kufer\Web\KuferTools\Basis\Controller\AjaxToolController
{
  
  abstract protected function getUseCase(): \Kufer\Web\KuferTools\Basis\UseCase\UseCase;

  protected function getNewRequestObj()
  {
    return new ShowSettingsDruckListenAllgemeinRequest();
  }

  
  protected function getRequestObj()
  {
    
    $requestObj = $this->getNewRequestObj();
    
    
    $requestObj->kursIds = explode(':', \RequestOperations::getVarValue('nr', ''));
    $requestObj->listName = \RequestOperations::getVarValue('liste', ''); 

    return $requestObj;
  }

  
  abstract protected function getPresenter($pUseCaseResponse);
}