mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 20:59:28 +00:00
31 lines
682 B
PHP
31 lines
682 B
PHP
<?php
|
|
|
|
class Statusgrund_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = "public.tbl_status_grund";
|
|
$this->pk = "statusgrund_id";
|
|
}
|
|
|
|
public function getStatus($status_kurzbz = null, $aktiv = null, $statusgrund_kurzbz = null)
|
|
{
|
|
$this->addOrder('bezeichnung_mehrsprachig');
|
|
$where = array();
|
|
if (!is_null($status_kurzbz))
|
|
$where['status_kurzbz'] = $status_kurzbz;
|
|
if (!is_null($aktiv))
|
|
$where['aktiv'] = $aktiv;
|
|
if (!is_null($statusgrund_kurzbz))
|
|
$where['statusgrund_kurzbz'] = $statusgrund_kurzbz;
|
|
|
|
$status = $this->loadWhere($where);
|
|
|
|
return success($status->retval);
|
|
}
|
|
}
|