mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
- 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
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Ort_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = 'public.tbl_ort';
|
||||
$this->pk = 'ort_kurzbz';
|
||||
$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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user