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

namespace Kufer\Web\KuferTools\Basis\Anmeldung\HandleTnDataTable;

abstract class HandleTnDataTableController extends \Kufer\Web\KuferTools\Basis\Controller\AjaxToolController
{
  protected function getRequestObj()
  {
    $requestObj = new HandleTnDataTableRequest();
    $requestObj->mehrfachAnm = \GetOperations::isDefined('mehrfachAnm');
    $requestObj->firmenAnm = \GetOperations::isDefined('firmenAnm');
    $requestObj->firmenAnmRestricted = \GetOperations::isDefined('firmenAnmRestricted');
    $requestObj->kinderAnm = \GetOperations::isDefined('kinderAnm');
    $requestObj->kinderAnmRestricted = \GetOperations::isDefined('kinderAnmRestricted');
    $requestObj->getTn = \GetOperations::isDefined('getTn');
    $requestObj->tnr = \GetOperations::getVarValue('getTn');

    return $requestObj;
  }

  protected function getPresenter($pUseCaseResponse)
  {
    return new HandleTnDataTablePresenter($pUseCaseResponse);
  }
}