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


class DBWorkKurseSmall extends DBWorkKurse
{
  
  public function __construct($pDBTyp = 1, $pNewInstance = false)
  {
    parent::__construct($pDBTyp, $pNewInstance);
    $this->select = 'k.nr';
  }

  
  public function getCurrentRow($pRefreshCache = false)
  {
    $tmp = $this->getNewObject();
    $tmp->id = $this->getDatamodulValue('nr');

    return $tmp;
  }

  protected function postGetAllRowsHook($pDatamodules, $pRefreshCache = false)
  {
    return DBWork::postGetAllRowsHook($pDatamodules, $pRefreshCache);
  }
}