mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
Fixed controllers parameters names and number
This commit is contained in:
@@ -33,11 +33,11 @@ class Aktivitaet extends APIv1_Controller
|
||||
*/
|
||||
public function getAktivitaet()
|
||||
{
|
||||
$aktivitaetID = $this->get('aktivitaet_id');
|
||||
$aktivitaet_kurzbz = $this->get('aktivitaet_kurzbz');
|
||||
|
||||
if(isset($aktivitaetID))
|
||||
if(isset($aktivitaet_kurzbz))
|
||||
{
|
||||
$result = $this->AktivitaetModel->load($aktivitaetID);
|
||||
$result = $this->AktivitaetModel->load($aktivitaet_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Aktivitaet extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aktivitaet_id']))
|
||||
if(isset($this->post()['aktivitaet_kurzbz']))
|
||||
{
|
||||
$result = $this->AktivitaetModel->update($this->post()['aktivitaet_id'], $this->post());
|
||||
$result = $this->AktivitaetModel->update($this->post()['aktivitaet_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Aufwandstyp extends APIv1_Controller
|
||||
*/
|
||||
public function getAufwandstyp()
|
||||
{
|
||||
$aufwandstypID = $this->get('aufwandstyp_id');
|
||||
$aufwandstyp_kurzbz = $this->get('aufwandstyp_kurzbz');
|
||||
|
||||
if(isset($aufwandstypID))
|
||||
if(isset($aufwandstyp_kurzbz))
|
||||
{
|
||||
$result = $this->AufwandstypModel->load($aufwandstypID);
|
||||
$result = $this->AufwandstypModel->load($aufwandstyp_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Aufwandstyp extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aufwandstyp_id']))
|
||||
if(isset($this->post()['aufwandstyp_kurzbz']))
|
||||
{
|
||||
$result = $this->AufwandstypModel->update($this->post()['aufwandstyp_id'], $this->post());
|
||||
$result = $this->AufwandstypModel->update($this->post()['aufwandstyp_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Projekt extends APIv1_Controller
|
||||
*/
|
||||
public function getProjekt()
|
||||
{
|
||||
$projektID = $this->get('projekt_id');
|
||||
$projekt_kurzbz = $this->get('projekt_kurzbz');
|
||||
|
||||
if(isset($projektID))
|
||||
if(isset($projekt_kurzbz))
|
||||
{
|
||||
$result = $this->ProjektModel->load($projektID);
|
||||
$result = $this->ProjektModel->load($projekt_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Projekt extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['projekt_id']))
|
||||
if(isset($this->post()['projekt_kurzbz']))
|
||||
{
|
||||
$result = $this->ProjektModel->update($this->post()['projekt_id'], $this->post());
|
||||
$result = $this->ProjektModel->update($this->post()['projekt_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Scrumteam extends APIv1_Controller
|
||||
*/
|
||||
public function getScrumteam()
|
||||
{
|
||||
$scrumteamID = $this->get('scrumteam_id');
|
||||
$scrumteam_kurzbz = $this->get('scrumteam_kurzbz');
|
||||
|
||||
if(isset($scrumteamID))
|
||||
if(isset($scrumteam_kurzbz))
|
||||
{
|
||||
$result = $this->ScrumteamModel->load($scrumteamID);
|
||||
$result = $this->ScrumteamModel->load($scrumteam_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Scrumteam extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['scrumteam_id']))
|
||||
if(isset($this->post()['scrumteam_kurzbz']))
|
||||
{
|
||||
$result = $this->ScrumteamModel->update($this->post()['scrumteam_id'], $this->post());
|
||||
$result = $this->ScrumteamModel->update($this->post()['scrumteam_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user