mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
35 lines
602 B
PHP
35 lines
602 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));
|
|
}
|
|
|
|
public function getContentID($ort_kurzbz)
|
|
{
|
|
|
|
return $this->execReadOnlyQuery("
|
|
SELECT content_id
|
|
FROM public.tbl_ort
|
|
WHERE ort_kurzbz = ?;
|
|
",[$ort_kurzbz]);
|
|
|
|
}
|
|
|
|
} |