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

namespace Kufer\Web\KuferTools\Basis\View;


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

  protected function getDefaultDataModulArray()
  {
    return array($this->viewModel->column);
  }

  protected function getDefaultExportAdapter()
  {
    return new \ExpColumn(
      $this->viewModel->toolSection,
      $this->viewModel->toolSettings,
      $this->viewModel->datamodul,
      true,
      $this->viewModel->requestPrefix
    );
  }

  public function show()
  {
    $result = $this->getHeader();
    $result .= $this->getBody();
    $result .= $this->getFooter();

    return $result;
  }
}

class WssFormular1ViewModel
{
  public $datamodul;
  public $column;
  public $requestPrefix;
  public $toolSection;
  public $toolSettings;
}