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

namespace Kufer\KuferTools\Basis\Anmeldung\HandleTnDataTable;

abstract class HandleTnDataTableController extends \Kufer\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->getTn = \GetOperations::isDefined('getTn');
    $requestObj->tnr = \GetOperations::getVarValue('getTn');

    return $requestObj;
  }

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