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

namespace Kufer\KuferTools\Basis\Raumbelegung\Raumdetails\RaumGrafik;

abstract class RaumGrafikView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  protected function getDefaultDataModulArray()
  {
    $datamodul = new \Datamodul();
    $datamodul->daysteps = $this->viewModel->daysteps;
    $datamodul->timesteps = $this->viewModel->timesteps;

    $datamodul->raumbez = $this->viewModel->raumbez;
    $datamodul->vhsname = $this->viewModel->vhsname;
    $datamodul->stand = $this->viewModel->stand;
    $datamodul->raumNr = $this->viewModel->raumNr;

    $datamodul->datVon = $this->viewModel->datVon;
    $datamodul->datBis = $this->viewModel->datBis;
    $datamodul->uhrVon = $this->viewModel->uhrVon;
    $datamodul->uhrBis = $this->viewModel->uhrBis;

    $datamodul->farbeLegends = $this->viewModel->farbeLegends;

    return array($datamodul);
  }

  protected function getFooterDataModulArray()
  {
    $datamodul = new \Datamodul();
    $datamodul->farbeLegends = $this->viewModel->farbeLegends;
    $datamodul->farbeLegendsHeader = $this->viewModel->farbeLegendsHeader;
    $datamodul->raumNr = $this->viewModel->raumNr;
    $datamodul->datVon = $this->viewModel->datVon;
    $datamodul->datBis = $this->viewModel->datBis;
    $datamodul->uhrVon = $this->viewModel->uhrVon;
    $datamodul->uhrBis = $this->viewModel->uhrBis;

    return array($datamodul);
  }
}

class RaumGrafikViewModel
{
  public $daysteps;
  public $timesteps;
  public $farbeLegends;
  public $farbeLegendsHeader;

  public $raumbez;
  public $vhsname;
  public $stand;
  public $raumNr;

  public $datVon;
  public $datBis;
  public $uhrVon;
  public $uhrBis;
  public $table;
  public $showDozent;
  public $showKursNr;
  public $showKursTitel;
  public $kursDetailsAllowed;
}