mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-10 16:49:30 +00:00
d8cd786079
- application/libraries/* -> CS compliant - FHC_Model isEntitled method now return error() or success() - Updated all code that uses isEntitled method from FHC_Model - Removed Squiz.PHP.DisallowSizeFunctionsInLoops from CS ruleset - Removed depracated method replace from DB_Model - Removed unused method pgArrayPhp from DB_Model - Renamed method arrayMergeIndex to _arrayCombine in DB_Model and set as private - Added method _manageUDFs to DB_Model (a wrapper for UDFLib->manageUDFs)
45 lines
1.0 KiB
PHP
45 lines
1.0 KiB
PHP
<?php
|
|
|
|
class Dokumentstudiengang_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'public.tbl_dokumentstudiengang';
|
|
$this->pk = array('studiengang_kz', 'dokument_kurzbz');
|
|
}
|
|
|
|
/**
|
|
* getDokumentstudiengangByStudiengang_kz
|
|
*/
|
|
public function getDokumentstudiengangByStudiengang_kz($studiengang_kz, $onlinebewerbung = null, $pflicht = null, $nachreichbar = null)
|
|
{
|
|
// Checks if the operation is permitted by the API caller
|
|
if (isError($ent = $this->isEntitled('public.tbl_dokument', 's', FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
|
|
|
$this->addJoin('public.tbl_dokument', 'dokument_kurzbz');
|
|
|
|
$parameterArray = array('studiengang_kz' => $studiengang_kz);
|
|
|
|
if( isset($onlinebewerbung))
|
|
{
|
|
$parameterArray['onlinebewerbung'] = $onlinebewerbung;
|
|
}
|
|
|
|
if( isset($pflicht))
|
|
{
|
|
$parameterArray['pflicht'] = $pflicht;
|
|
}
|
|
|
|
if( isset($nachreichbar))
|
|
{
|
|
$parameterArray['nachreichbar'] = $nachreichbar;
|
|
}
|
|
|
|
return $this->loadWhere($parameterArray);
|
|
}
|
|
}
|