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

namespace Kufer\KuferTools\Hausmeister\Raumbelegung\KursDetails\Detailsreiter\Dozenten;

class DozentenView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'hausmeister/kursdetails/detailsreiter/dozent.sgt';
  }

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

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

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

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

class DozentenViewModel
{
  public $dozent;
  public $columns;
  public $index;
}