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

namespace Kufer\KuferTools\Basis\TeilnehmerInfo\Detailsreiter\Bankverbindungen;

abstract class BankverbindungenView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  protected function getBodyDataModulArray()
  {
    return $this->viewModel->columns;
  }

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

  protected function getDefaultDataModulArray()
  {
    $this->viewModel->stammBv->show_checkbox = $this->viewModel->showCheckbox;

    return array($this->viewModel->index => $this->viewModel->stammBv);
  }

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

class BankverbindungenViewModel
{
  public $stammBv;
  public $columns;
  public $index;
  public $showCheckbox;
}