mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Added permissions array to every controller that extends APIv1_Controller
CheckUserAuth and Test controllers now extends directly the REST_Controller
This commit is contained in:
@@ -21,7 +21,7 @@ class Akadgrad extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Akadgrad' => 'basis/akadgrad:rw'));
|
||||
// Load model AkadgradModel
|
||||
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Akadgrad extends APIv1_Controller
|
||||
public function getAkadgrad()
|
||||
{
|
||||
$akadgradID = $this->get('akadgrad_id');
|
||||
|
||||
|
||||
if (isset($akadgradID))
|
||||
{
|
||||
$result = $this->AkadgradModel->load($akadgradID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Akadgrad extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AkadgradModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Akadgrad extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($akadgrad = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Archiv extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Archiv' => 'basis/archiv:rw'));
|
||||
// Load model ArchivModel
|
||||
$this->load->model('codex/archiv_model', 'ArchivModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Archiv extends APIv1_Controller
|
||||
public function getArchiv()
|
||||
{
|
||||
$archivID = $this->get('archiv_id');
|
||||
|
||||
|
||||
if (isset($archivID))
|
||||
{
|
||||
$result = $this->ArchivModel->load($archivID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Archiv extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ArchivModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Archiv extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($archiv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufmerksamdurch' => 'basis/aufmerksamdurch:rw'));
|
||||
// Load model AufmerksamdurchModel
|
||||
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
public function getAufmerksamdurch()
|
||||
{
|
||||
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
|
||||
|
||||
|
||||
if (isset($aufmerksamdurch_kurzbz))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufmerksamdurch = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Ausbildung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Ausbildung' => 'basis/ausbildung:rw'));
|
||||
// Load model AusbildungModel
|
||||
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Ausbildung extends APIv1_Controller
|
||||
public function getAusbildung()
|
||||
{
|
||||
$ausbildungcode = $this->get('ausbildungcode');
|
||||
|
||||
|
||||
if (isset($ausbildungcode))
|
||||
{
|
||||
$result = $this->AusbildungModel->load($ausbildungcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Ausbildung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AusbildungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Ausbildung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($ausbildung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Berufstaetigkeit' => 'basis/berufstaetigkeit:rw'));
|
||||
// Load model BerufstaetigkeitModel
|
||||
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
public function getBerufstaetigkeit()
|
||||
{
|
||||
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
|
||||
|
||||
|
||||
if (isset($berufstaetigkeit_code))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($berufstaetigkeit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Beschaeftigungsausmass' => 'basis/beschaeftigungsausmass:rw'));
|
||||
// Load model BeschaeftigungsausmassModel
|
||||
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
public function getBeschaeftigungsausmass()
|
||||
{
|
||||
$beschausmasscode = $this->get('beschausmasscode');
|
||||
|
||||
|
||||
if (isset($beschausmasscode))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($beschaeftigungsausmass = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Besqual extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Besqual' => 'basis/besqual:rw'));
|
||||
// Load model BesqualModel
|
||||
$this->load->model('codex/besqual_model', 'BesqualModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Besqual extends APIv1_Controller
|
||||
public function getBesqual()
|
||||
{
|
||||
$besqualcode = $this->get('besqualcode');
|
||||
|
||||
|
||||
if (isset($besqualcode))
|
||||
{
|
||||
$result = $this->BesqualModel->load($besqualcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Besqual extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BesqualModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Besqual extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($besqual = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisfunktion extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisfunktion' => 'basis/bisfunktion:rw'));
|
||||
// Load model BisfunktionModel
|
||||
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$bisverwendung_id = $this->get('bisverwendung_id');
|
||||
|
||||
|
||||
if (isset($studiengang_kz) && isset($bisverwendung_id))
|
||||
{
|
||||
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisfunktionModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Bisfunktion extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisfunktion = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisio extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisio' => 'basis/bisio:rw'));
|
||||
// Load model BisioModel
|
||||
$this->load->model('codex/bisio_model', 'BisioModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisio extends APIv1_Controller
|
||||
public function getBisio()
|
||||
{
|
||||
$bisioID = $this->get('bisio_id');
|
||||
|
||||
|
||||
if (isset($bisioID))
|
||||
{
|
||||
$result = $this->BisioModel->load($bisioID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisio extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisioModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisio extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisio = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisorgform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisorgform' => 'basis/bisorgform:rw'));
|
||||
// Load model BisorgformModel
|
||||
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisorgform extends APIv1_Controller
|
||||
public function getBisorgform()
|
||||
{
|
||||
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
|
||||
|
||||
|
||||
if (isset($bisorgform_kurzbz))
|
||||
{
|
||||
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisorgform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisorgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisorgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisorgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisverwendung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisverwendung' => 'basis/bisverwendung:rw'));
|
||||
// Load model BisverwendungModel
|
||||
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisverwendung extends APIv1_Controller
|
||||
public function getBisverwendung()
|
||||
{
|
||||
$bisverwendungID = $this->get('bisverwendung_id');
|
||||
|
||||
|
||||
if (isset($bisverwendungID))
|
||||
{
|
||||
$result = $this->BisverwendungModel->load($bisverwendungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisverwendung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisverwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisverwendung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisverwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bundesland extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('All' => 'basis/bundesland:r'));
|
||||
// Load model PersonModel
|
||||
$this->load->model('codex/bundesland_model', 'BundeslandModel');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Entwicklungsteam' => 'basis/entwicklungsteam:rw'));
|
||||
// Load model EntwicklungsteamModel
|
||||
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
|
||||
|
||||
if (isset($studiengang_kz) && isset($mitarbeiter_uid))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($entwicklungsteam = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Gemeinde extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Gemeinde' => 'basis/gemeinde:rw', 'GemeindeByPlz' => 'basis/gemeinde:r'));
|
||||
// Load model GemeindeModel
|
||||
$this->load->model("codex/gemeinde_model", "GemeindeModel");
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class Gemeinde extends APIv1_Controller
|
||||
public function getGemeinde()
|
||||
{
|
||||
$gemeindeID = $this->get("gemeinde_id");
|
||||
|
||||
|
||||
$this->GemeindeModel->addOrder("plz");
|
||||
if (isset($gemeindeID))
|
||||
{
|
||||
@@ -42,21 +42,21 @@ class Gemeinde extends APIv1_Controller
|
||||
{
|
||||
$result = $this->GemeindeModel->load();
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getGemeindeByPlz()
|
||||
{
|
||||
$plz = $this->get("plz");
|
||||
|
||||
|
||||
if (is_numeric($plz))
|
||||
{
|
||||
$result = $this->GemeindeModel->getGemeindeByPlz($plz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -80,7 +80,7 @@ class Gemeinde extends APIv1_Controller
|
||||
{
|
||||
$result = $this->GemeindeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -88,9 +88,9 @@ class Gemeinde extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($gemeinde = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Hauptberuf extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Hauptberuf' => 'basis/hauptberuf:rw'));
|
||||
// Load model HauptberufModel
|
||||
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Hauptberuf extends APIv1_Controller
|
||||
public function getHauptberuf()
|
||||
{
|
||||
$hauptberufcode = $this->get('hauptberufcode');
|
||||
|
||||
|
||||
if (isset($hauptberufcode))
|
||||
{
|
||||
$result = $this->HauptberufModel->load($hauptberufcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Hauptberuf extends APIv1_Controller
|
||||
{
|
||||
$result = $this->HauptberufModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Hauptberuf extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($hauptberuf = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrform' => 'basis/lehrform:rw'));
|
||||
// Load model LehrformModel
|
||||
$this->load->model('codex/lehrform_model', 'LehrformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrform extends APIv1_Controller
|
||||
public function getLehrform()
|
||||
{
|
||||
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
|
||||
|
||||
|
||||
if (isset($lehrform_kurzbz))
|
||||
{
|
||||
$result = $this->LehrformModel->load($lehrform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lgartcode extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lgartcode' => 'basis/lgartcode:rw'));
|
||||
// Load model LgartcodeModel
|
||||
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lgartcode extends APIv1_Controller
|
||||
public function getLgartcode()
|
||||
{
|
||||
$lgartcode = $this->get('lgartcode');
|
||||
|
||||
|
||||
if (isset($lgartcode))
|
||||
{
|
||||
$result = $this->LgartcodeModel->load($lgartcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lgartcode extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LgartcodeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lgartcode extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lgartcode = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Mobilitaetsprogramm' => 'basis/mobilitaetsprogramm:rw'));
|
||||
// Load model MobilitaetsprogrammModel
|
||||
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
public function getMobilitaetsprogramm()
|
||||
{
|
||||
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
|
||||
|
||||
|
||||
if (isset($mobilitaetsprogramm_code))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($mobilitaetsprogramm = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Nation extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Nation' => 'basis/nation:r', 'All' => 'basis/nation:r'));
|
||||
// Load model NationModel
|
||||
$this->load->model('codex/nation_model', 'NationModel');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Note extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Note' => 'basis/note:rw'));
|
||||
// Load model NoteModel
|
||||
$this->load->model('codex/note_model', 'NoteModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Note extends APIv1_Controller
|
||||
public function getNote()
|
||||
{
|
||||
$note = $this->get('note');
|
||||
|
||||
|
||||
if (isset($note))
|
||||
{
|
||||
$result = $this->NoteModel->load($note);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Note extends APIv1_Controller
|
||||
{
|
||||
$result = $this->NoteModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Note extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($note = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Orgform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Orgform' => 'basis/orgform:rw', 'All' => 'basis/orgform:r', 'OrgformLV' => 'basis/orgform:r'));
|
||||
// Load model OrgformModel
|
||||
$this->load->model('codex/orgform_model', 'OrgformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Orgform extends APIv1_Controller
|
||||
public function getOrgform()
|
||||
{
|
||||
$orgform_kurzbz = $this->get('orgform_kurzbz');
|
||||
|
||||
|
||||
if (isset($orgform_kurzbz))
|
||||
{
|
||||
$result = $this->OrgformModel->load($orgform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -44,24 +44,24 @@ class Orgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
$result = $this->OrgformModel->load();
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getOrgformLV()
|
||||
{
|
||||
$result = $this->OrgformModel->getOrgformLV();
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class Orgform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->OrgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -88,9 +88,9 @@ class Orgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($orgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Verwendung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Verwendung' => 'basis/verwendung:rw'));
|
||||
// Load model VerwendungModel
|
||||
$this->load->model('codex/verwendung_model', 'VerwendungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Verwendung extends APIv1_Controller
|
||||
public function getVerwendung()
|
||||
{
|
||||
$verwendung_code = $this->get('verwendung_code');
|
||||
|
||||
|
||||
if (isset($verwendung_code))
|
||||
{
|
||||
$result = $this->VerwendungModel->load($verwendung_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Verwendung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VerwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Verwendung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($verwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgv extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgv' => 'basis/zgv:rw'));
|
||||
// Load model ZgvModel
|
||||
$this->load->model('codex/zgv_model', 'ZgvModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgv extends APIv1_Controller
|
||||
public function getZgv()
|
||||
{
|
||||
$zgv_code = $this->get('zgv_code');
|
||||
|
||||
|
||||
if (isset($zgv_code))
|
||||
{
|
||||
$result = $this->ZgvModel->load($zgv_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgv extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgv extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvdoktor extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvdoktor' => 'basis/zgvdoktor:rw'));
|
||||
// Load model ZgvdoktorModel
|
||||
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvdoktor extends APIv1_Controller
|
||||
public function getZgvdoktor()
|
||||
{
|
||||
$zgvdoktor_code = $this->get('zgvdoktor_code');
|
||||
|
||||
|
||||
if (isset($zgvdoktor_code))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvdoktor extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvdoktor extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvdoktor = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvgruppe extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvgruppe' => 'basis/zgvgruppe:rw'));
|
||||
// Load model ZgvgruppeModel
|
||||
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvgruppe extends APIv1_Controller
|
||||
public function getZgvgruppe()
|
||||
{
|
||||
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
|
||||
|
||||
|
||||
if (isset($gruppe_kurzbz))
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvgruppe extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvgruppe extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvgruppe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvmaster extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvmaster' => 'basis/zgvmaster:rw'));
|
||||
// Load model ZgvmasterModel
|
||||
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvmaster extends APIv1_Controller
|
||||
public function getZgvmaster()
|
||||
{
|
||||
$zgvmas_code = $this->get('zgvmas_code');
|
||||
|
||||
|
||||
if (isset($zgvmas_code))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->load($zgvmas_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvmaster extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvmasterModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvmaster extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvmaster = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zweck extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zweck' => 'basis/zweck:rw'));
|
||||
// Load model ZweckModel
|
||||
$this->load->model('codex/zweck_model', 'ZweckModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zweck extends APIv1_Controller
|
||||
public function getZweck()
|
||||
{
|
||||
$zweck_code = $this->get('zweck_code');
|
||||
|
||||
|
||||
if (isset($zweck_code))
|
||||
{
|
||||
$result = $this->ZweckModel->load($zweck_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zweck extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZweckModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zweck extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zweck = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user