<?php

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


class DataMenuKursInfo extends DataMenuOhneStatus
{
  
  public $dbwkurse;

  public function __construct($pUrlParameter)
  {
    parent::__construct($pUrlParameter);
    

    
    $this->settings = ToolSettingsAPI::getToolSettings(4);

    
    
    
    $this->dbwkurse = new DBWorkKurse();

    

    $this->exportadapter = new ExpKurse();
    $this->exportadapter->export->initiate();
  }

  public function getdataarraybody()
  {
    $this->dataarraybody = $this->_getKursInfos($this->urlparameter->knr);
    $this->nrOfMainBodyElements = count($this->dataarraybody);
  }

  
  public function _getKursInfos($pKnrAry)
  {
    
    
    
    return $this->dbwkurse->getKursInfosById($pKnrAry);
  }

  
  public function getsight($pPHP53 = 370)
  {
    $this->sight = SightsAPI::getSight(370);
  }
}