Files
FHC-Core/application/models/ressource/Ort_model.php
T
bison 939ca288fc - Cleaned the controllers by moving the database related code and more complex logic
in the models or libraries
- DmsLib bug fix
- Person_model bug fix
2016-08-31 14:15:39 +02:00

23 lines
422 B
PHP

<?php
class Ort_model extends DB_Model
{
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->dbTable = "public.tbl_ort";
$this->pk = "ort_kurzbz";
}
public function getAll($raumtyp_kurzbz)
{
$this->addOrder("ort_kurzbz");
$this->addJoin("public.tbl_ortraumtyp", "ort_kurzbz");
return $this->OrtModel->loadWhere(array("raumtyp_kurzbz" => $raumtyp_kurzbz));
}
}