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

namespace Kufer\Web\KuferTools\Basis\Uebersicht;

class UebersichtView extends \Kufer\Web\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'basis/uebersicht.sgt';
  }

  
  private $dmAryCache;

  protected function getDefaultDataModulArray()
  {
    if (\is_null($this->dmAryCache)) {
      $this->dmAryCache = new \Datamodul();
      $this->dmAryCache->blaettern = $this->viewModel->blaettern;
      $this->dmAryCache->buttons = $this->viewModel->buttons;
      $this->dmAryCache->ueberschrift = $this->viewModel->ueberschrift;
      $this->dmAryCache->freitext = $this->viewModel->freitext;
      $this->dmAryCache->display_buttons_top = $this->viewModel->display_buttons_top;
      $this->dmAryCache->display_buttons_bottom = $this->viewModel->display_buttons_bottom;
      $this->dmAryCache->tool_id = $this->viewModel->toolId;
      $this->dmAryCache->show_back_button = $this->viewModel->showBackButton;
      $this->dmAryCache->fehlermeldung = $this->viewModel->fehlermeldung;
      $this->dmAryCache->erfolgsmeldung = $this->viewModel->erfolgsmeldung;
      $this->dmAryCache->uebersicht_als_tabelle = $this->viewModel->uebersichtAlsTabelle;
      $this->dmAryCache->maxPanelSpalten = $this->viewModel->maxPanelSpalten;
    }

    return array($this->dmAryCache);
  }

  protected function getBodyDataModulArray()
  {
    return $this->viewModel->panels;
  }
}

class UebersichtViewModel extends \Kufer\Web\KuferTools\Basis\View\BasisViewModel
{
  public $toolSection;
  public $toolSettings;
  public $blaettern;
  public $buttons;
  public $ueberschrift;
  public $freitext;
  public $display_buttons_top;
  public $display_buttons_bottom;
  public $panels;
  public $toolId;
  public $showBackButton;
  public $fehlermeldung;
  public $erfolgsmeldung;
  public $uebersichtAlsTabelle;
  public $maxPanelSpalten;
}