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

namespace Kufer\Web\KuferTools\Basis\Kursdetails\Detailsreiter\FeedbackBogen;

class RadioAnzeigeView extends \Kufer\Web\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'basis/feedbackbogen/radio_anzeige.sgt';
  }

  protected function getDefaultDataModulArray()
  {
    $datamodul = new \Datamodul();
    $datamodul->itemsInline = $this->viewModel->itemsInline;

    return array($datamodul);
  }

  protected function getBodyDataModulArray()
  {
    $datamodule = $this->viewModel->anzeigeTexteAry;
    foreach ($datamodule as $key => $value) {
      $value->itemsInline = $this->viewModel->itemsInline;
      $value->radio_key = $key;
    }

    return $datamodule;
  }
}