<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */

namespace Kufer\Web\KuferTools\Basis\Anmeldung;


abstract class KursAnmeldeButtonView extends \Kufer\Web\KuferTools\Basis\View\ViewSight
{
  protected function getDataModul()
  {
    $result = $this->viewModel->kurs;
    $result->nichtAnmeldbar = $this->isNichtAnmeldbar();

    return $result;
  }

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

  protected function getDefaultExportAdapter()
  {
    return new \ExpKurse(true);
  }

  protected function isNichtAnmeldbar(): bool
  {
    return false;
  }
}

class KursAnmeldeButtonViewModel extends \Kufer\Web\KuferTools\Basis\View\BasisViewModel
{
  
  public $kurs;
}