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

class DBWorkKurseTageWBSmall extends DBWorkKurseTageWB
{
  public function __construct($pDBTyp = 1, $newInstance = false)
  {
    parent::__construct($pDBTyp, $newInstance);
    $this->select = "kt.id,kt.datum,kt.zeit_beg,kt.zeit_ende\n";
    $this->orderby = 'datum, zeit_beg';
  }

  public function getCurrentRow($pRefreshCache = false)
  {
    $tmp = $this->getNewObject();
    $tmp->id = $this->getDatamodulValue('id');
    $tmp->datum = $this->getDatamodulValue('datum');
    $tmp->datum_kurz = $this->datetimeop->getShortForm4DateStr(
      $this->getDatamodulValue('datum')
    );
    $tmp->wotagkurz = $this->datetimeop->getWeekDayShort($tmp->datum);
    $tmp->wotaglang = $this->datetimeop->getWeekDay($tmp->datum);
    $tmp->zeit_beg = $this->getDatamodulValue('zeit_beg');
    $tmp->zeit_ende = $this->getDatamodulValue('zeit_ende');

    return $tmp;
  }
}