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

namespace Kufer\KuferTools\Basis\Uebersicht;

class UebersichtView extends \Kufer\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;
    }

    return array($this->dmAryCache);
  }

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

class UebersichtViewModel extends \Kufer\KuferTools\Basis\View\BasisViewModel
{
  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;
}