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

namespace Kufer\KuferTools\Dozent\Kursplanung\TerminSammelaenderung;

class TerminSammelaenderungFormularView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'dozent/kursplanung/terminsammelaenderung.sgt';
  }

  protected function getDefaultDataModulArray()
  {
    $this->viewModel->kurstag->ktIds = implode(':', $this->viewModel->ktIds);
    $this->viewModel->kurstag->id = $this->viewModel->knr; 
    $this->viewModel->kurstag->kursort_hinterlegung = $this->viewModel->kursort_hinterlegung;
    $this->viewModel->kurstag->showDatum = $this->viewModel->showDatum;
    $this->viewModel->kurstag->showUhrzeitBeginn = $this->viewModel->showUhrzeitBeginn;
    $this->viewModel->kurstag->showUhrzeitEnde = $this->viewModel->showUhrzeitEnde;
    $this->viewModel->kurstag->showUE = $this->viewModel->showUE;
    $this->viewModel->kurstag->showMinuten = $this->viewModel->showMinuten;
    $this->viewModel->kurstag->showPause = $this->viewModel->showPause;
    $this->viewModel->kurstag->showAusfall = $this->viewModel->showAusfall;
    $this->viewModel->kurstag->showKursort = $this->viewModel->showKursort;
    $this->viewModel->kurstag->showBemerkung = $this->viewModel->showBemerkung;

    return array($this->viewModel->kurstag);
  }

  protected function getDefaultExportAdaper()
  {
    return new \ExpKurstage();
  }

  protected function getBodyExportAdapter()
  {
    return new \ExpColumn($this->viewModel->kurstag, true);
  }
}

class TerminSammelaenderungFormularViewModel
{
  public $ktIds;
  public $knr;
  public $kursort_hinterlegung;
  public $kurstag;

  public $showDatum;
  public $showUhrzeitBeginn;
  public $showUhrzeitEnde;
  public $showUE;
  public $showMinuten;
  public $showPause;
  public $showAusfall;
  public $showKursort;
  public $showBemerkung;
}