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

namespace Kufer\KuferTools\Basis\TeilnehmerInfo\SammelEMail;

abstract class SammelEMailView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  protected function getBodyDataModulArray()
  {
    return $this->viewModel->teilnehmer;
  }

  protected function getBodyExportAdapter()
  {
    return new \ExpTeilnehmer();
  }

  protected function getDefaultDataModulArray()
  {
    $datamodul = new \Datamodul();
    $datamodul->backLink = $this->viewModel->backLink;
    $datamodul->backButtonLabel = $this->viewModel->backButtonLabel;
    $datamodul->errorMessage = $this->viewModel->errorMessage;
    $datamodul->toolId = $this->viewModel->toolId;

    return array($datamodul);
  }
}

class SammelEMailViewModel
{
  public $teilnehmer;
  public $toolId;
  public $errorMessage;

  public $backLink;
  public $backButtonLabel;
}