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

namespace Kufer\KuferTools\Basis\Kursdetails\DetailsReiter\Termine\ShowFilterTermine;

class ShowFilterTermineView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'basis/kursdetails/detailsreiter/filtertermine.sgt';
  }

  protected function getDefaultDataModulArray()
  {
    $datamodul = new \Datamodul();
    $datamodul->knr = $this->viewModel->knr;
    $datamodul->belegId = $this->viewModel->belegId;
    $datamodul->show_termine_datum = ($this->viewModel->showTermineDatum ? '1' : '0');
    $datamodul->show_termine_uhrzeit = ($this->viewModel->showTermineUhrzeit ? '1' : '0');
    $datamodul->show_termine_dozent = ($this->viewModel->showTermineDozent ? '1' : '0');
    $datamodul->show_termine_dozRadioButtons = ($this->viewModel->showTermineDozRadioButtons ? '1' : '0');
    $datamodul->show_termine_ort = ($this->viewModel->showTermineOrt ? '1' : '0');
    $datamodul->show_termine_bemerkung = ($this->viewModel->showTermineBemerkung ? '1' : '0');
    $datamodul->show_termine_status = ($this->viewModel->showTermineStatus ? '1' : '0');
    $datamodul->toolId = $this->viewModel->toolId;
    $datamodul->eigene_termine_dozent_checked = $this->viewModel->termineDozentEigeneChecked;
    $datamodul->alle_termine_dozent_checked = $this->viewModel->termineDozentChecked;

    return array($datamodul);
  }
}

class ShowFilterTermineViewModel
{
  public $knr;
  public $showTermineDatum;
  public $showTermineUhrzeit;
  public $showTermineDozent;
  public $showTermineDozRadioButtons;
  public $showTermineOrt;
  public $showTermineBemerkung;
  public $showTermineStatus;
  public $toolId;
}