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

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


abstract class ShowSettingsDruckListenAllgemeinController extends \Kufer\KuferTools\Basis\Controller\AjaxToolController
{
  
  abstract protected function getUseCase(): \Kufer\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);
}