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

namespace Kufer\KuferTools\Veranstalter\DozentenInfo\Detailsreiter\Kurse\KurseFilter;

class KurseFilterPresenter extends \Kufer\KuferTools\Basis\Presenter\Presenter
{
  protected function getView()
  {
    return new KurseFilterView($this->getViewModel());
  }

  protected function getViewModel()
  {
    $viewModel = new KurseFilterViewModel();
    $viewModel->dnr = $this->useCaseResponse->dnr;
    $viewModel->belegId = isset($this->useCaseResponse->belegId) ? '&belid=' . $this->useCaseResponse->belegId : '';
    $viewModel->showTermineDatum = $this->useCaseResponse->showTermineDatum;
    $viewModel->showTermineUhrzeit = $this->useCaseResponse->showTermineUhrzeit;
    $viewModel->showTermineDozent = $this->useCaseResponse->showTermineDozent;
    $viewModel->showTermineDozRadioButtons = $this->useCaseResponse->showTermineDozRadioButtons;
    $viewModel->showTermineOrt = $this->useCaseResponse->showTermineOrt;
    $viewModel->showTermineBemerkung = $this->useCaseResponse->showTermineBemerkung;
    $viewModel->showTermineStatus = $this->useCaseResponse->showTermineStatus;
    $viewModel->toolId = $this->useCaseResponse->toolId;

    return $viewModel;
  }
}