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

namespace Kufer\Web\KuferTools\Basis\DozentenInfo\DozentenUebersicht;

abstract class DozentenUebersichtController extends \Kufer\Web\KuferTools\Basis\Uebersicht\UebersichtController
{
  protected function getRequestObj()
  {
    $request = parent::getRequestObj();
    $request->newDozStatusCode = \SessionOperations::getVarValueWTIntern('newDozStatusCode');
    $request->newDozWrongFields = \SessionOperations::getVarValueWTIntern('newDozWrongFields');

    return $request;
  }

  protected function getDefaultRequestObj()
  {
    return new DozentenUebersichtRequest();
  }

  protected function getSuchAPI()
  {
    return new \Kufer\Web\KuferTools\Utils\FilterSearch\DozentenSearchFilter();
  }

  protected function getRequestSearchName()
  {
    return 'searchdozent';
  }
}