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


class DBWorkHLVerhalten extends DBWork
{
  protected static $_cache_DozTypNotShownResult;

  public function __construct($pDBTyp = 1, $pNewInstance = false)
  {
    parent::__construct($pDBTyp, $pNewInstance);
    $this->select = 'id,text';
  }

  
  public function getNewObject()
  {
    return new HLVerhalten();
  }

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

  
  public function getCurrentRow($pRefreshCache = false)
  {
    $obj = $this->getNewObject();

    $obj->id = $this->getDatamodulValue('id');
    $obj->text = $this->getDatamodulValue('text');

    return $obj;
  }

  public function getAll()
  {
    $this->dboperation->clear();
    $this->dboperation->query('SELECT ' . $this->select . ' FROM hlanw_verhalten_text ORDER BY id ASC');

    return $this->getAllRows();
  }
}