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

namespace Kufer\KuferTools\Teilnehmer\BayerischerApothekertagStudenten\AnmeldeFormular;

class AnmeldeFormularView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'teilnehmer/bayerischer_apothekertag_studenten/anmelde_formular.sgt';
  }

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

  protected function getBodyExportAdapter()
  {
    
    return new \ExpColumn($this->viewModel->person, $this->viewModel->bearbeitbar);
  }

  protected function getDefaultDataModulArray()
  {
    $this->viewModel->person->status_erfolg = $this->viewModel->messageErfolg;
    $this->viewModel->person->status_info = $this->viewModel->messageInfo;
    $this->viewModel->person->status_fehler = $this->viewModel->messageFehler;
    $this->viewModel->person->freeField = $this->viewModel->freeField;
    $this->viewModel->person->bearbeitbar = $this->viewModel->bearbeitbar;

    return array($this->viewModel->person);
  }

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

class AnmeldeFormularViewModel
{
  public $person;
  public $columns;
  public $messageErfolg;
  public $messageInfo;
  public $messageFehler;
  public $freeField;
  public $bearbeitbar;
}