mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Fixed controllers parameters names and number
This commit is contained in:
@@ -33,11 +33,11 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
*/
|
||||
public function getAufmerksamdurch()
|
||||
{
|
||||
$aufmerksamdurchID = $this->get('aufmerksamdurch_id');
|
||||
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
|
||||
|
||||
if(isset($aufmerksamdurchID))
|
||||
if(isset($aufmerksamdurch_kurzbz))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->load($aufmerksamdurchID);
|
||||
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aufmerksamdurch_id']))
|
||||
if(isset($this->post()['aufmerksamdurch_kurzbz']))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_id'], $this->post());
|
||||
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Ausbildung extends APIv1_Controller
|
||||
*/
|
||||
public function getAusbildung()
|
||||
{
|
||||
$ausbildungID = $this->get('ausbildung_id');
|
||||
$ausbildungcode = $this->get('ausbildungcode');
|
||||
|
||||
if(isset($ausbildungID))
|
||||
if(isset($ausbildungcode))
|
||||
{
|
||||
$result = $this->AusbildungModel->load($ausbildungID);
|
||||
$result = $this->AusbildungModel->load($ausbildungcode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Ausbildung extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['ausbildung_id']))
|
||||
if(isset($this->post()['ausbildungcode']))
|
||||
{
|
||||
$result = $this->AusbildungModel->update($this->post()['ausbildung_id'], $this->post());
|
||||
$result = $this->AusbildungModel->update($this->post()['ausbildungcode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
*/
|
||||
public function getBerufstaetigkeit()
|
||||
{
|
||||
$berufstaetigkeitID = $this->get('berufstaetigkeit_id');
|
||||
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
|
||||
|
||||
if(isset($berufstaetigkeitID))
|
||||
if(isset($berufstaetigkeit_code))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeitID);
|
||||
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['berufstaetigkeit_id']))
|
||||
if(isset($this->post()['berufstaetigkeit_code']))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_id'], $this->post());
|
||||
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
*/
|
||||
public function getBeschaeftigungsausmass()
|
||||
{
|
||||
$beschaeftigungsausmassID = $this->get('beschaeftigungsausmass_id');
|
||||
$beschausmasscode = $this->get('beschausmasscode');
|
||||
|
||||
if(isset($beschaeftigungsausmassID))
|
||||
if(isset($beschausmasscode))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->load($beschaeftigungsausmassID);
|
||||
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['beschaeftigungsausmass_id']))
|
||||
if(isset($this->post()['beschausmasscode']))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschaeftigungsausmass_id'], $this->post());
|
||||
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschausmasscode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Besqual extends APIv1_Controller
|
||||
*/
|
||||
public function getBesqual()
|
||||
{
|
||||
$besqualID = $this->get('besqual_id');
|
||||
$besqualcode = $this->get('besqualcode');
|
||||
|
||||
if(isset($besqualID))
|
||||
if(isset($besqualcode))
|
||||
{
|
||||
$result = $this->BesqualModel->load($besqualID);
|
||||
$result = $this->BesqualModel->load($besqualcode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Besqual extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['besqual_id']))
|
||||
if(isset($this->post()['besqualcode']))
|
||||
{
|
||||
$result = $this->BesqualModel->update($this->post()['besqual_id'], $this->post());
|
||||
$result = $this->BesqualModel->update($this->post()['besqualcode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -55,9 +55,9 @@ class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisfunktion_id']))
|
||||
if(isset($this->post()['studiengang_kz']) && isset($this->post()['bisverwendung_id']))
|
||||
{
|
||||
$result = $this->BisfunktionModel->update($this->post()['bisfunktion_id'], $this->post());
|
||||
$result = $this->BisfunktionModel->update(array($this->post()['studiengang_kz'], $this->post()['bisverwendung_id']), $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Bisorgform extends APIv1_Controller
|
||||
*/
|
||||
public function getBisorgform()
|
||||
{
|
||||
$bisorgformID = $this->get('bisorgform_id');
|
||||
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
|
||||
|
||||
if(isset($bisorgformID))
|
||||
if(isset($bisorgform_kurzbz))
|
||||
{
|
||||
$result = $this->BisorgformModel->load($bisorgformID);
|
||||
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Bisorgform extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisorgform_id']))
|
||||
if(isset($this->post()['bisorgform_kurzbz']))
|
||||
{
|
||||
$result = $this->BisorgformModel->update($this->post()['bisorgform_id'], $this->post());
|
||||
$result = $this->BisorgformModel->update($this->post()['bisorgform_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -55,9 +55,9 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['entwicklungsteam_id']))
|
||||
if(isset($this->post()['studiengang_kz']) && isset($this->post()['mitarbeiter_uid']))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->update($this->post()['entwicklungsteam_id'], $this->post());
|
||||
$result = $this->EntwicklungsteamModel->update(array($this->post()['entwicklungsteam_id'], $this->post()['mitarbeiter_uid']), $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Hauptberuf extends APIv1_Controller
|
||||
*/
|
||||
public function getHauptberuf()
|
||||
{
|
||||
$hauptberufID = $this->get('hauptberuf_id');
|
||||
$hauptberufcode = $this->get('hauptberufcode');
|
||||
|
||||
if(isset($hauptberufID))
|
||||
if(isset($hauptberufcode))
|
||||
{
|
||||
$result = $this->HauptberufModel->load($hauptberufID);
|
||||
$result = $this->HauptberufModel->load($hauptberufcode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Hauptberuf extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['hauptberuf_id']))
|
||||
if(isset($this->post()['hauptberufcode']))
|
||||
{
|
||||
$result = $this->HauptberufModel->update($this->post()['hauptberuf_id'], $this->post());
|
||||
$result = $this->HauptberufModel->update($this->post()['hauptberufcode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Lehrform extends APIv1_Controller
|
||||
*/
|
||||
public function getLehrform()
|
||||
{
|
||||
$lehrformID = $this->get('lehrform_id');
|
||||
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
|
||||
|
||||
if(isset($lehrformID))
|
||||
if(isset($lehrform_kurzbz))
|
||||
{
|
||||
$result = $this->LehrformModel->load($lehrformID);
|
||||
$result = $this->LehrformModel->load($lehrform_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Lehrform extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['lehrform_id']))
|
||||
if(isset($this->post()['lehrform_kurzbz']))
|
||||
{
|
||||
$result = $this->LehrformModel->update($this->post()['lehrform_id'], $this->post());
|
||||
$result = $this->LehrformModel->update($this->post()['lehrform_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Lgartcode extends APIv1_Controller
|
||||
*/
|
||||
public function getLgartcode()
|
||||
{
|
||||
$lgartcodeID = $this->get('lgartcode_id');
|
||||
$lgartcode = $this->get('lgartcode');
|
||||
|
||||
if(isset($lgartcodeID))
|
||||
if(isset($lgartcode))
|
||||
{
|
||||
$result = $this->LgartcodeModel->load($lgartcodeID);
|
||||
$result = $this->LgartcodeModel->load($lgartcode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Lgartcode extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['lgartcode_id']))
|
||||
if(isset($this->post()['lgartcode']))
|
||||
{
|
||||
$result = $this->LgartcodeModel->update($this->post()['lgartcode_id'], $this->post());
|
||||
$result = $this->LgartcodeModel->update($this->post()['lgartcode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
*/
|
||||
public function getMobilitaetsprogramm()
|
||||
{
|
||||
$mobilitaetsprogrammID = $this->get('mobilitaetsprogramm_id');
|
||||
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
|
||||
|
||||
if(isset($mobilitaetsprogrammID))
|
||||
if(isset($mobilitaetsprogramm_code))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogrammID);
|
||||
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['mobilitaetsprogramm_id']))
|
||||
if(isset($this->post()['mobilitaetsprogramm_code']))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_id'], $this->post());
|
||||
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Note extends APIv1_Controller
|
||||
*/
|
||||
public function getNote()
|
||||
{
|
||||
$noteID = $this->get('note_id');
|
||||
$note = $this->get('note');
|
||||
|
||||
if(isset($noteID))
|
||||
if(isset($note))
|
||||
{
|
||||
$result = $this->NoteModel->load($noteID);
|
||||
$result = $this->NoteModel->load($note);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Note extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['note_id']))
|
||||
if(isset($this->post()['note']))
|
||||
{
|
||||
$result = $this->NoteModel->update($this->post()['note_id'], $this->post());
|
||||
$result = $this->NoteModel->update($this->post()['note'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Orgform extends APIv1_Controller
|
||||
*/
|
||||
public function getOrgform()
|
||||
{
|
||||
$orgformID = $this->get('orgform_id');
|
||||
$orgform_kurzbz = $this->get('orgform_kurzbz');
|
||||
|
||||
if(isset($orgformID))
|
||||
if(isset($orgform_kurzbz))
|
||||
{
|
||||
$result = $this->OrgformModel->load($orgformID);
|
||||
$result = $this->OrgformModel->load($orgform_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Orgform extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['orgform_id']))
|
||||
if(isset($this->post()['orgform_kurzbz']))
|
||||
{
|
||||
$result = $this->OrgformModel->update($this->post()['orgform_id'], $this->post());
|
||||
$result = $this->OrgformModel->update($this->post()['orgform_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Verwendung extends APIv1_Controller
|
||||
*/
|
||||
public function getVerwendung()
|
||||
{
|
||||
$verwendungID = $this->get('verwendung_id');
|
||||
$verwendung_code = $this->get('verwendung_code');
|
||||
|
||||
if(isset($verwendungID))
|
||||
if(isset($verwendung_code))
|
||||
{
|
||||
$result = $this->VerwendungModel->load($verwendungID);
|
||||
$result = $this->VerwendungModel->load($verwendung_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Verwendung extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['verwendung_id']))
|
||||
if(isset($this->post()['verwendung_code']))
|
||||
{
|
||||
$result = $this->VerwendungModel->update($this->post()['verwendung_id'], $this->post());
|
||||
$result = $this->VerwendungModel->update($this->post()['verwendung_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Zgv extends APIv1_Controller
|
||||
*/
|
||||
public function getZgv()
|
||||
{
|
||||
$zgvID = $this->get('zgv_id');
|
||||
$zgv_code = $this->get('zgv_code');
|
||||
|
||||
if(isset($zgvID))
|
||||
if(isset($zgv_code))
|
||||
{
|
||||
$result = $this->ZgvModel->load($zgvID);
|
||||
$result = $this->ZgvModel->load($zgv_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Zgv extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgv_id']))
|
||||
if(isset($this->post()['zgv_code']))
|
||||
{
|
||||
$result = $this->ZgvModel->update($this->post()['zgv_id'], $this->post());
|
||||
$result = $this->ZgvModel->update($this->post()['zgv_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Zgvdoktor extends APIv1_Controller
|
||||
*/
|
||||
public function getZgvdoktor()
|
||||
{
|
||||
$zgvdoktorID = $this->get('zgvdoktor_id');
|
||||
$zgvdoktor_code = $this->get('zgvdoktor_code');
|
||||
|
||||
if(isset($zgvdoktorID))
|
||||
if(isset($zgvdoktor_code))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->load($zgvdoktorID);
|
||||
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Zgvdoktor extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgvdoktor_id']))
|
||||
if(isset($this->post()['zgvdoktor_code']))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_id'], $this->post());
|
||||
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Zgvmaster extends APIv1_Controller
|
||||
*/
|
||||
public function getZgvmaster()
|
||||
{
|
||||
$zgvmasterID = $this->get('zgvmaster_id');
|
||||
$zgvmas_code = $this->get('zgvmas_code');
|
||||
|
||||
if(isset($zgvmasterID))
|
||||
if(isset($zgvmas_code))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->load($zgvmasterID);
|
||||
$result = $this->ZgvmasterModel->load($zgvmas_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Zgvmaster extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgvmaster_id']))
|
||||
if(isset($this->post()['zgvmas_code']))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->update($this->post()['zgvmaster_id'], $this->post());
|
||||
$result = $this->ZgvmasterModel->update($this->post()['zgvmas_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -33,11 +33,11 @@ class Zweck extends APIv1_Controller
|
||||
*/
|
||||
public function getZweck()
|
||||
{
|
||||
$zweckID = $this->get('zweck_id');
|
||||
$zweck_code = $this->get('zweck_code');
|
||||
|
||||
if(isset($zweckID))
|
||||
if(isset($zweck_code))
|
||||
{
|
||||
$result = $this->ZweckModel->load($zweckID);
|
||||
$result = $this->ZweckModel->load($zweck_code);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Zweck extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zweck_id']))
|
||||
if(isset($this->post()['zweck_code']))
|
||||
{
|
||||
$result = $this->ZweckModel->update($this->post()['zweck_id'], $this->post());
|
||||
$result = $this->ZweckModel->update($this->post()['zweck_code'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user