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

namespace Kufer\KuferTools\Basis\Kursdetails\DetailsReiter\EMails\Anzeigen;


abstract class EMailAnzeigenController extends \Kufer\KuferTools\Basis\Controller\Controller
{
  protected function getRequestObj()
  {
    $requestObj = new EMailAnzeigenRequest();
    $requestObj->lfdnr = \GetOperations::getVarValue('lfdnr');
    $requestObj->knr = \GetOperations::getVarValue('knr');

    return $requestObj;
  }

  protected function getPresenter($pUseCaseResponse)
  {
    if (!\System::isKuferSql5()) { 
      
      return new EmailAnzeigen4Presenter($pUseCaseResponse);
    }

    return new EmailAnzeigen5Presenter($pUseCaseResponse);
  }
}