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

namespace Kufer\KuferTools\Basis\DozentenInfo\DozentenUebersicht;

abstract class DozentenUebersichtController extends \Kufer\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';
  }
}