<?php

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

namespace Kufer\KuferTools\Basis\KursUebersicht\AlleTermine;

abstract class AlleTermineView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  protected function getDefaultDataModulArray()
  {
    $datamodul = new class() extends \Datamodul {
      public $belnr;
      public $ktnr;
      public $datum_von;
      public $datum_bis;
      public $toolId;
      public $nurterminechecked;
    };

    $datamodul->belnr = implode(':', $this->viewModel->belegIds);
    $datamodul->ktnr = implode(':', $this->viewModel->ktIds);
    $datamodul->datum_von = $this->viewModel->vonDat;
    $datamodul->datum_bis = $this->viewModel->bisDat;
    $datamodul->toolId = $this->viewModel->toolId;
    $datamodul->nurterminechecked = $this->viewModel->nurterminechecked;

    return array($datamodul);
  }
}

class AlleTermineViewModel
{
  public $belegIds;
  public $ktIds;
  public $vonDat;
  public $bisDat;
  public $toolId;
  public $nurterminechecked;
}