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

namespace Kufer\KuferTools\Dozent\Kursplanung\TerminUebersicht;

class TerminUebersichtView extends \Kufer\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->showSammelaenderungBearbeiten = $this->viewModel->showSammelaenderungBearbeiten;
    $result->showFilterButton = $this->viewModel->showFilterButton;
    $result->blaettern = $this->viewModel->blaettern;
    $result->kursAnpassenDialog = $this->viewModel->kursAnpassenDialog;
    $result->uebersicht_als_tabelle = $this->viewModel->uebersichtAlsTabelle;

    return array($result);
  }

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

class TerminUebersichtViewModel
{
  public $kurs;
  public $messageSuccess;
  public $messageError;
  public $showSammelaenderungBearbeiten;
  public $showFilterButton;
  public $blaettern;
  public $kursAnpassenDialog;
  public $uebersichtAlsTabelle;
}