mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- Renamed every controller that has conflicts with class name
- Added routes to renamed controllers - Fixed controllers parameters in get method
This commit is contained in:
@@ -33,11 +33,12 @@ class Bisfunktion extends APIv1_Controller
|
||||
*/
|
||||
public function getBisfunktion()
|
||||
{
|
||||
$bisfunktionID = $this->get('bisfunktion_id');
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$bisverwendung_id = $this->get('bisverwendung_id');
|
||||
|
||||
if(isset($bisfunktionID))
|
||||
if(isset($studiengang_kz) && isset($bisverwendung_id))
|
||||
{
|
||||
$result = $this->BisfunktionModel->load($bisfunktionID);
|
||||
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
@@ -33,11 +33,12 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
*/
|
||||
public function getEntwicklungsteam()
|
||||
{
|
||||
$entwicklungsteamID = $this->get('entwicklungsteam_id');
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
|
||||
if(isset($entwicklungsteamID))
|
||||
if(isset($studiengang_kz) && isset($mitarbeiter_uid))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->load($entwicklungsteamID);
|
||||
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ class Zgvgruppe extends APIv1_Controller
|
||||
*/
|
||||
public function getZgvgruppe()
|
||||
{
|
||||
$zgvgruppeID = $this->get('zgvgruppe_id');
|
||||
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
|
||||
|
||||
if(isset($zgvgruppeID))
|
||||
if(isset($gruppe_kurzbz))
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->load($zgvgruppeID);
|
||||
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user