mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +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,11 +21,11 @@ class Betriebsmittel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Betriebsmittel' => 'basis/betriebsmittel:rw'));
|
||||
// Load model BetriebsmittelModel
|
||||
$this->load->model('ressource/betriebsmittel_model', 'BetriebsmittelModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Betriebsmittel extends APIv1_Controller
|
||||
public function getBetriebsmittel()
|
||||
{
|
||||
$betriebsmittelID = $this->get('betriebsmittel_id');
|
||||
|
||||
|
||||
if (isset($betriebsmittelID))
|
||||
{
|
||||
$result = $this->BetriebsmittelModel->load($betriebsmittelID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Betriebsmittel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BetriebsmittelModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Betriebsmittel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($betriebsmittel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Betriebsmittelperson2 extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Betriebsmittelperson' => 'basis/betriebsmittelperson:rw'));
|
||||
// Load model BetriebsmittelpersonModel
|
||||
$this->load->model('ressource/betriebsmittelperson_model', 'BetriebsmittelpersonModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Betriebsmittelperson2 extends APIv1_Controller
|
||||
public function getBetriebsmittelperson()
|
||||
{
|
||||
$betriebsmittelpersonID = $this->get('betriebsmittelperson_id');
|
||||
|
||||
|
||||
if (isset($betriebsmittelpersonID))
|
||||
{
|
||||
$result = $this->BetriebsmittelpersonModel->load($betriebsmittelpersonID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Betriebsmittelperson2 extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BetriebsmittelpersonModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Betriebsmittelperson2 extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($betriebsmittelperson = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Betriebsmittelstatus extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Betriebsmittelstatus' => 'basis/betriebsmittelstatus:rw'));
|
||||
// Load model BetriebsmittelstatusModel
|
||||
$this->load->model('ressource/betriebsmittelstatus_model', 'BetriebsmittelstatusModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Betriebsmittelstatus extends APIv1_Controller
|
||||
public function getBetriebsmittelstatus()
|
||||
{
|
||||
$betriebsmittelstatus_kurzbz = $this->get('betriebsmittelstatus_kurzbz');
|
||||
|
||||
|
||||
if (isset($betriebsmittelstatus_kurzbz))
|
||||
{
|
||||
$result = $this->BetriebsmittelstatusModel->load($betriebsmittelstatus_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Betriebsmittelstatus extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BetriebsmittelstatusModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Betriebsmittelstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($betriebsmittelstatus = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Betriebsmitteltyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Betriebsmitteltyp' => 'basis/betriebsmitteltyp:rw'));
|
||||
// Load model BetriebsmitteltypModel
|
||||
$this->load->model('ressource/betriebsmitteltyp_model', 'BetriebsmitteltypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Betriebsmitteltyp extends APIv1_Controller
|
||||
public function getBetriebsmitteltyp()
|
||||
{
|
||||
$betriebsmitteltyp = $this->get('betriebsmitteltyp');
|
||||
|
||||
|
||||
if (isset($betriebsmitteltyp))
|
||||
{
|
||||
$result = $this->BetriebsmitteltypModel->load($betriebsmitteltyp);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Betriebsmitteltyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BetriebsmitteltypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Betriebsmitteltyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($betriebsmitteltyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Coodle extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Coodle' => 'basis/coodle:rw'));
|
||||
// Load model CoodleModel
|
||||
$this->load->model('ressource/coodle_model', 'CoodleModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Coodle extends APIv1_Controller
|
||||
public function getCoodle()
|
||||
{
|
||||
$coodleID = $this->get('coodle_id');
|
||||
|
||||
|
||||
if (isset($coodleID))
|
||||
{
|
||||
$result = $this->CoodleModel->load($coodleID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Coodle extends APIv1_Controller
|
||||
{
|
||||
$result = $this->CoodleModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Coodle extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($coodle = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Erreichbarkeit extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Erreichbarkeit' => 'basis/erreichbarkeit:rw'));
|
||||
// Load model ErreichbarkeitModel
|
||||
$this->load->model('ressource/erreichbarkeit_model', 'ErreichbarkeitModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Erreichbarkeit extends APIv1_Controller
|
||||
public function getErreichbarkeit()
|
||||
{
|
||||
$erreichbarkeit_kurzbz = $this->get('erreichbarkeit_kurzbz');
|
||||
|
||||
|
||||
if (isset($erreichbarkeit_kurzbz))
|
||||
{
|
||||
$result = $this->ErreichbarkeitModel->load($erreichbarkeit_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Erreichbarkeit extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ErreichbarkeitModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Erreichbarkeit extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($erreichbarkeit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Firma extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Firma' => 'basis/firma:rw'));
|
||||
// Load model FirmaModel
|
||||
$this->load->model('ressource/firma_model', 'FirmaModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Firma extends APIv1_Controller
|
||||
public function getFirma()
|
||||
{
|
||||
$firmaID = $this->get('firma_id');
|
||||
|
||||
|
||||
if (isset($firmaID))
|
||||
{
|
||||
$result = $this->FirmaModel->load($firmaID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Firma extends APIv1_Controller
|
||||
{
|
||||
$result = $this->FirmaModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Firma extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($firma = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Firmatag extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Firmatag' => 'basis/firmatag:rw'));
|
||||
// Load model FirmatagModel
|
||||
$this->load->model('ressource/firmatag_model', 'FirmatagModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,11 +35,11 @@ class Firmatag extends APIv1_Controller
|
||||
{
|
||||
$tag = $this->get('tag');
|
||||
$firma_id = $this->get('firma_id');
|
||||
|
||||
|
||||
if (isset($tag) && isset($firma_id))
|
||||
{
|
||||
$result = $this->FirmatagModel->load(array($tag, $firma_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -63,7 +63,7 @@ class Firmatag extends APIv1_Controller
|
||||
{
|
||||
$result = $this->FirmatagModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -71,9 +71,9 @@ class Firmatag extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($firmatag = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Firmentyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Firmentyp' => 'basis/firmentyp:rw'));
|
||||
// Load model FirmentypModel
|
||||
$this->load->model('ressource/firmentyp_model', 'FirmentypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Firmentyp extends APIv1_Controller
|
||||
public function getFirmentyp()
|
||||
{
|
||||
$firmentyp_kurzbz = $this->get('firmentyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($firmentyp_kurzbz))
|
||||
{
|
||||
$result = $this->FirmentypModel->load($firmentyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Firmentyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->FirmentypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Firmentyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($firmentyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Funktion extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Funktion' => 'basis/funktion:rw'));
|
||||
// Load model FunktionModel
|
||||
$this->load->model('ressource/funktion_model', 'FunktionModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Funktion extends APIv1_Controller
|
||||
public function getFunktion()
|
||||
{
|
||||
$funktion_kurzbz = $this->get('funktion_kurzbz');
|
||||
|
||||
|
||||
if (isset($funktion_kurzbz))
|
||||
{
|
||||
$result = $this->FunktionModel->load($funktion_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Funktion extends APIv1_Controller
|
||||
{
|
||||
$result = $this->FunktionModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Funktion extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($funktion = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Lehrmittel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrmittel' => 'basis/lehrmittel:rw'));
|
||||
// Load model LehrmittelModel
|
||||
$this->load->model('ressource/lehrmittel_model', 'LehrmittelModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Lehrmittel extends APIv1_Controller
|
||||
public function getLehrmittel()
|
||||
{
|
||||
$lehrmittel_kurzbz = $this->get('lehrmittel_kurzbz');
|
||||
|
||||
|
||||
if (isset($lehrmittel_kurzbz))
|
||||
{
|
||||
$result = $this->LehrmittelModel->load($lehrmittel_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Lehrmittel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrmittelModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Lehrmittel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrmittel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Mitarbeiter extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Mitarbeiter' => 'basis/mitarbeiter:rw'));
|
||||
// Load model MitarbeiterModel
|
||||
$this->load->model('ressource/mitarbeiter_model', 'MitarbeiterModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Mitarbeiter extends APIv1_Controller
|
||||
public function getMitarbeiter()
|
||||
{
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
|
||||
|
||||
if (isset($mitarbeiter_uid))
|
||||
{
|
||||
$result = $this->MitarbeiterModel->load($mitarbeiter_uid);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Mitarbeiter extends APIv1_Controller
|
||||
{
|
||||
$result = $this->MitarbeiterModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Mitarbeiter extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($mitarbeiter = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Ort extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Ort' => 'basis/ort:rw', 'All' => 'basis/ort:r'));
|
||||
// Load model OrtModel
|
||||
$this->load->model("ressource/ort_model", "OrtModel");
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Ort extends APIv1_Controller
|
||||
public function getOrt()
|
||||
{
|
||||
$ort_kurzbz = $this->get("ort_kurzbz");
|
||||
|
||||
|
||||
if (isset($ort_kurzbz))
|
||||
{
|
||||
$result = $this->OrtModel->load(trim($ort_kurzbz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -44,7 +44,7 @@ class Ort extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -60,7 +60,7 @@ class Ort extends APIv1_Controller
|
||||
{
|
||||
$result = $this->OrtModel->load();
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ class Ort extends APIv1_Controller
|
||||
{
|
||||
$result = $this->OrtModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -87,9 +87,9 @@ class Ort extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($ort = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Ortraumtyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Ortraumtyp' => 'basis/ortraumtyp:rw'));
|
||||
// Load model OrtraumtypModel
|
||||
$this->load->model('ressource/ortraumtyp_model', 'OrtraumtypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,11 +35,11 @@ class Ortraumtyp extends APIv1_Controller
|
||||
{
|
||||
$hierarchie = $this->get('hierarchie');
|
||||
$ort_kurzbz = $this->get('ort_kurzbz');
|
||||
|
||||
|
||||
if (isset($hierarchie) && isset($ort_kurzbz))
|
||||
{
|
||||
$result = $this->OrtraumtypModel->load(array($hierarchie, $ort_kurzbz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -63,7 +63,7 @@ class Ortraumtyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->OrtraumtypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -71,9 +71,9 @@ class Ortraumtyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($ortraumtyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Personfunktionstandort extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Personfunktionstandort' => 'basis/personfunktionstandort:rw'));
|
||||
// Load model PersonfunktionstandortModel
|
||||
$this->load->model('ressource/personfunktionstandort_model', 'PersonfunktionstandortModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Personfunktionstandort extends APIv1_Controller
|
||||
public function getPersonfunktionstandort()
|
||||
{
|
||||
$personfunktionstandortID = $this->get('personfunktionstandort_id');
|
||||
|
||||
|
||||
if (isset($personfunktionstandortID))
|
||||
{
|
||||
$result = $this->PersonfunktionstandortModel->load($personfunktionstandortID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Personfunktionstandort extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PersonfunktionstandortModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Personfunktionstandort extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($personfunktionstandort = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Raumtyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Raumtyp' => 'basis/raumtyp:rw'));
|
||||
// Load model RaumtypModel
|
||||
$this->load->model('ressource/raumtyp_model', 'RaumtypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Raumtyp extends APIv1_Controller
|
||||
public function getRaumtyp()
|
||||
{
|
||||
$raumtyp_kurzbz = $this->get('raumtyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($raumtyp_kurzbz))
|
||||
{
|
||||
$result = $this->RaumtypModel->load($raumtyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Raumtyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->RaumtypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Raumtyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($raumtyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Reservierung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Reservierung' => 'basis/reservierung:rw'));
|
||||
// Load model ReservierungModel
|
||||
$this->load->model('ressource/reservierung_model', 'ReservierungModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Reservierung extends APIv1_Controller
|
||||
public function getReservierung()
|
||||
{
|
||||
$reservierungID = $this->get('reservierung_id');
|
||||
|
||||
|
||||
if (isset($reservierungID))
|
||||
{
|
||||
$result = $this->ReservierungModel->load($reservierungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Reservierung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ReservierungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Reservierung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($reservierung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Stunde extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Stunde' => 'basis/stunde:rw'));
|
||||
// Load model StundeModel
|
||||
$this->load->model('ressource/stunde_model', 'StundeModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Stunde extends APIv1_Controller
|
||||
public function getStunde()
|
||||
{
|
||||
$stunde = $this->get('stunde');
|
||||
|
||||
|
||||
if (isset($stunde))
|
||||
{
|
||||
$result = $this->StundeModel->load($stunde);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Stunde extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StundeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Stunde extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($stunde = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Stundenplan extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Stundenplan' => 'basis/stundenplan:rw'));
|
||||
// Load model StundenplanModel
|
||||
$this->load->model('ressource/stundenplan_model', 'StundenplanModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Stundenplan extends APIv1_Controller
|
||||
public function getStundenplan()
|
||||
{
|
||||
$stundenplanID = $this->get('stundenplan_id');
|
||||
|
||||
|
||||
if (isset($stundenplanID))
|
||||
{
|
||||
$result = $this->StundenplanModel->load($stundenplanID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Stundenplan extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StundenplanModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Stundenplan extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($stundenplan = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Stundenplandev extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Stundenplandev' => 'basis/stundenplandev:rw'));
|
||||
// Load model StundenplandevModel
|
||||
$this->load->model('ressource/stundenplandev_model', 'StundenplandevModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Stundenplandev extends APIv1_Controller
|
||||
public function getStundenplandev()
|
||||
{
|
||||
$stundenplandevID = $this->get('stundenplandev_id');
|
||||
|
||||
|
||||
if (isset($stundenplandevID))
|
||||
{
|
||||
$result = $this->StundenplandevModel->load($stundenplandevID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Stundenplandev extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StundenplandevModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Stundenplandev extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($stundenplandev = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Zeitaufzeichnung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zeitaufzeichnung' => 'basis/zeitaufzeichnung:rw'));
|
||||
// Load model ZeitaufzeichnungModel
|
||||
$this->load->model('ressource/zeitaufzeichnung_model', 'ZeitaufzeichnungModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Zeitaufzeichnung extends APIv1_Controller
|
||||
public function getZeitaufzeichnung()
|
||||
{
|
||||
$zeitaufzeichnungID = $this->get('zeitaufzeichnung_id');
|
||||
|
||||
|
||||
if (isset($zeitaufzeichnungID))
|
||||
{
|
||||
$result = $this->ZeitaufzeichnungModel->load($zeitaufzeichnungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Zeitaufzeichnung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZeitaufzeichnungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Zeitaufzeichnung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zeitaufzeichnung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Zeitfenster extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zeitfenster' => 'basis/zeitfenster:rw'));
|
||||
// Load model ZeitfensterModel
|
||||
$this->load->model('ressource/zeitfenster_model', 'ZeitfensterModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,11 +37,11 @@ class Zeitfenster extends APIv1_Controller
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$ort_kurzbz = $this->get('ort_kurzbz');
|
||||
$stunde = $this->get('stunde');
|
||||
|
||||
|
||||
if (isset($wochentag) && isset($studiengang_kz) && isset($ort_kurzbz) && isset($stunde))
|
||||
{
|
||||
$result = $this->ZeitfensterModel->load(array($wochentag, $studiengang_kz, $ort_kurzbz, $stunde));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -65,14 +65,14 @@ class Zeitfenster extends APIv1_Controller
|
||||
$this->post()['ort_kurzbz'],
|
||||
$this->post()['stunde']
|
||||
);
|
||||
|
||||
|
||||
$result = $this->ZeitfensterModel->update($pksArray, $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZeitfensterModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -80,9 +80,9 @@ class Zeitfenster extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zeitfenster = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Zeitsperre extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zeitsperre' => 'basis/zeitsperre:rw'));
|
||||
// Load model ZeitsperreModel
|
||||
$this->load->model('ressource/zeitsperre_model', 'ZeitsperreModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Zeitsperre extends APIv1_Controller
|
||||
public function getZeitsperre()
|
||||
{
|
||||
$zeitsperreID = $this->get('zeitsperre_id');
|
||||
|
||||
|
||||
if (isset($zeitsperreID))
|
||||
{
|
||||
$result = $this->ZeitsperreModel->load($zeitsperreID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Zeitsperre extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZeitsperreModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Zeitsperre extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zeitsperre = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Zeitsperretyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zeitsperretyp' => 'basis/zeitsperretyp:rw'));
|
||||
// Load model ZeitsperretypModel
|
||||
$this->load->model('ressource/zeitsperretyp_model', 'ZeitsperretypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Zeitsperretyp extends APIv1_Controller
|
||||
public function getZeitsperretyp()
|
||||
{
|
||||
$zeitsperretyp_kurzbz = $this->get('zeitsperretyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($zeitsperretyp_kurzbz))
|
||||
{
|
||||
$result = $this->ZeitsperretypModel->load($zeitsperretyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Zeitsperretyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZeitsperretypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Zeitsperretyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zeitsperretyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Zeitwunsch extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zeitwunsch' => 'basis/zeitwunsch:rw'));
|
||||
// Load model ZeitwunschModel
|
||||
$this->load->model('ressource/zeitwunsch_model', 'ZeitwunschModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,11 +36,11 @@ class Zeitwunsch extends APIv1_Controller
|
||||
$tag = $this->get('tag');
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
$stunde = $this->get('stunde');
|
||||
|
||||
|
||||
if (isset($tag) && isset($mitarbeiter_uid) && isset($stunde))
|
||||
{
|
||||
$result = $this->ZeitwunschModel->load(array($tag, $mitarbeiter_uid, $stunde));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,14 +62,14 @@ class Zeitwunsch extends APIv1_Controller
|
||||
$this->post()['mitarbeiter_uid'],
|
||||
$this->post()['stunde']
|
||||
);
|
||||
|
||||
|
||||
$result = $this->ZeitwunschModel->update($pksArray, $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZeitwunschModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -77,9 +77,9 @@ class Zeitwunsch extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zeitwunsch = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user