mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
29 lines
562 B
PHP
29 lines
562 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)
|
|
{
|
|
$this->addOrder('bezeichnung_mehrsprachig');
|
|
$where = array();
|
|
if (!is_null($status_kurzbz))
|
|
$where['status_kurzbz'] = $status_kurzbz;
|
|
if (!is_null($aktiv))
|
|
$where['aktiv'] = $aktiv;
|
|
|
|
$status = $this->loadWhere($where);
|
|
|
|
return success($status->retval);
|
|
}
|
|
}
|