<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */

namespace Kufer\Web\KuferTools\Dozent\Kursplanung\TerminUebersicht;

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

  protected function getDefaultDataModulArray()
  {
    $result = $this->viewModel->kurs;
    
    $result->status_success = $this->viewModel->messageSuccess;
    $result->status_error = $this->viewModel->messageError;
    $result->status_info = $this->viewModel->messageInfo;
    $result->showSammelaenderungBearbeiten = $this->viewModel->showSammelaenderungBearbeiten;
    $result->showHinzufuegenButton = $this->viewModel->showHinzufuegenButton;
    $result->showLoeschenButton = $this->viewModel->showLoeschenButton;
    $result->showKopierenButton = $this->viewModel->showKopierenButton;
    $result->showFilterButton = $this->viewModel->showFilterButton;
    $result->showRaumplanungButton = $this->viewModel->showRaumplanungButton;
    $result->blaettern = $this->viewModel->blaettern;
    $result->kursAnpassenDialog = $this->viewModel->kursAnpassenDialog;
    $result->uebersicht_als_tabelle = $this->viewModel->uebersichtAlsTabelle;

    return array($result);
  }

  protected function getDefaultExportAdapter()
  {
    return new \ExpKurse();
  }
}

class TerminUebersichtViewModel
{
  public $kurs;
  public $messageSuccess;
  public $messageError;
  public $messageInfo;
  public $messageWarning;
  public $showSammelaenderungBearbeiten;
  public $showHinzufuegenButton;
  public $showLoeschenButton;
  public $showKopierenButton;
  public $showFilterButton;
  public $showRaumplanungButton;
  public $blaettern;
  public $kursAnpassenDialog;
  public $uebersichtAlsTabelle;
}