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


class DataMenuKursUebersichtKalender extends DataMenuKursUebersichtBlaettern
{
  public function getKurse()
  {
    $dbwk = new DBWorkKurse();
    $urlParams = parse_url(GetOperations::getUrlSelf(), PHP_URL_QUERY);
    parse_str($urlParams, $urlParamsAry);
    $knrs = StringOperations::preg_grep_keys('/^k\\d+$/', $urlParamsAry);

    return $dbwk->getKursInfosById($knrs);
  }

  public function getAnzahlProSeite()
  {
    $websettings = ToolSettingsAPI::getToolSettings(4);

    return $websettings->kurseproseite_kalender;
  }

  public function getsight($sightid = 762)
  {
    parent::getsight($sightid);
  }
}