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

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

class KurseFilterView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'veranstalter/dozenteninfo/dozentdetails/detailsreiter/filter_kurstage.sgt';
  }

  protected function getDefaultDataModulArray()
  {
    $datamodul = new class() extends \Datamodul {
      public $dnr;
      public $belegId;
      public $show_termine_datum;
      public $show_termine_uhrzeit;
      public $show_termine_dozent;
      public $show_termine_dozRadioButtons;
      public $show_termine_ort;
      public $show_termine_bemerkung;
      public $show_termine_status;
      public $toolId;
    };

    $datamodul->dnr = $this->viewModel->dnr;
    $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;

    return array($datamodul);
  }
}

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