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

namespace Kufer\KuferTools\Basis\Kursdetails\DetailsReiter\EMails;


class EMailsView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'basis/kursdetails/detailsreiter/email.sgt';
  }

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

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

  protected function getDefaultDataModulArray()
  {
    $this->viewModel->datDoc->show_checkbox = $this->viewModel->showCheckbox;
    
    
    
    return array($this->viewModel->index => $this->viewModel->datDoc);
  }

  protected function getDefaultExportAdaper()
  {
    return new \ExpKursEMails(true);
  }
}

class EMailsViewModel
{
  public $emails;
  public $columns;
  public $index;
  public $showCheckbox;
}