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

namespace Kufer\KuferTools\Dozent\KursUebersicht\Detailsreiter\Honorar;

class JournalRowView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'dozent/kursuebersicht/detailsreiter/journalzeile.sgt';
  }

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

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

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

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

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

  protected function getNoColumnExportAdapter()
  {
    return $this->getBodyExportAdapter();
  }
}

class JournalRowViewModel
{
  public $columns;
  public $zahlung;
  public $index;
}