mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
42 lines
887 B
PHP
42 lines
887 B
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)
|
|
{
|
|
$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);
|
|
}
|
|
}
|