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

class DBWorkHLUrlaubGrund extends \DBWorkGenerated
{
  public function __construct($pDBnr = 1, $pNewInstance = false)
  {
    parent::__construct($pDBnr, $pNewInstance);

    $this->_dataModulFields = array('id', 'schluessel', 'text', 'urlaub');
    $this->select = implode(', ', $this->_dataModulFields);
  }

  public function getAllQuery(): \SelectQueryBuilder
  {
    return $this->getSelectQueryBuilder()
      ->select($this->select)
      ->from($this->getTableName())
      ->paramRaw('table', $this->getTableName());
  }

  public function getTableName(): string
  {
    return 'hlurlaub_gr';
  }

  public function getNewObject()
  {
    return new \Kufer\Web\Classes\Datamodul\HLUrlaubGrund();
  }
}