mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 17:02:19 +00:00
Added new parameter nachreichbar to controller Dokumentstudiengang and
to model Dokumentstudiengang_model
This commit is contained in:
@@ -8,28 +8,33 @@ class Dokumentstudiengang_model extends DB_Model
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = "public.tbl_dokumentstudiengang";
|
||||
$this->pk = array("studiengang_kz", "dokument_kurzbz");
|
||||
$this->dbTable = 'public.tbl_dokumentstudiengang';
|
||||
$this->pk = array('studiengang_kz', 'dokument_kurzbz');
|
||||
}
|
||||
|
||||
public function getDokumentstudiengangByStudiengang_kz($studiengang_kz, $onlinebewerbung, $pflicht)
|
||||
public function getDokumentstudiengangByStudiengang_kz($studiengang_kz, $onlinebewerbung = null, $pflicht = null, $nachreichbar = null)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (($isEntitled = $this->isEntitled("public.tbl_dokument", "s", FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_dokument', 's', FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
$this->addJoin("public.tbl_dokument", "dokument_kurzbz");
|
||||
$this->addJoin('public.tbl_dokument', 'dokument_kurzbz');
|
||||
|
||||
$parameterArray = array("studiengang_kz" => $studiengang_kz);
|
||||
$parameterArray = array('studiengang_kz' => $studiengang_kz);
|
||||
|
||||
if( isset($onlinebewerbung))
|
||||
{
|
||||
$parameterArray["onlinebewerbung"] = $onlinebewerbung;
|
||||
$parameterArray['onlinebewerbung'] = $onlinebewerbung;
|
||||
}
|
||||
|
||||
if( isset($pflicht))
|
||||
{
|
||||
$parameterArray["pflicht"] = $pflicht;
|
||||
$parameterArray['pflicht'] = $pflicht;
|
||||
}
|
||||
|
||||
if( isset($nachreichbar))
|
||||
{
|
||||
$parameterArray['nachreichbar'] = $nachreichbar;
|
||||
}
|
||||
|
||||
return $this->loadWhere($parameterArray);
|
||||
|
||||
Reference in New Issue
Block a user