mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- Added permissions for every DB tables that has a model
- Added all controllers for every model - All controller has a load and a insert/update method
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Akadgrad extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Akadgrad API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model AkadgradModel
|
||||
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AkadgradModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAkadgrad()
|
||||
{
|
||||
$akadgradID = $this->get('akadgrad_id');
|
||||
|
||||
if(isset($akadgradID))
|
||||
{
|
||||
$result = $this->AkadgradModel->load($akadgradID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postAkadgrad()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['akadgrad_id']))
|
||||
{
|
||||
$result = $this->AkadgradModel->update($this->post()['akadgrad_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->AkadgradModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($akadgrad = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Archiv extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Archiv API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ArchivModel
|
||||
$this->load->model('codex/archiv_model', 'ArchivModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ArchivModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getArchiv()
|
||||
{
|
||||
$archivID = $this->get('archiv_id');
|
||||
|
||||
if(isset($archivID))
|
||||
{
|
||||
$result = $this->ArchivModel->load($archivID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postArchiv()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['archiv_id']))
|
||||
{
|
||||
$result = $this->ArchivModel->update($this->post()['archiv_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ArchivModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($archiv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Aufmerksamdurch extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Aufmerksamdurch API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model AufmerksamdurchModel
|
||||
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AufmerksamdurchModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAufmerksamdurch()
|
||||
{
|
||||
$aufmerksamdurchID = $this->get('aufmerksamdurch_id');
|
||||
|
||||
if(isset($aufmerksamdurchID))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->load($aufmerksamdurchID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postAufmerksamdurch()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aufmerksamdurch_id']))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($aufmerksamdurch = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Ausbildung extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Ausbildung API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model AusbildungModel
|
||||
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AusbildungModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAusbildung()
|
||||
{
|
||||
$ausbildungID = $this->get('ausbildung_id');
|
||||
|
||||
if(isset($ausbildungID))
|
||||
{
|
||||
$result = $this->AusbildungModel->load($ausbildungID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postAusbildung()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['ausbildung_id']))
|
||||
{
|
||||
$result = $this->AusbildungModel->update($this->post()['ausbildung_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->AusbildungModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($ausbildung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Berufstaetigkeit extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Berufstaetigkeit API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BerufstaetigkeitModel
|
||||
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BerufstaetigkeitModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBerufstaetigkeit()
|
||||
{
|
||||
$berufstaetigkeitID = $this->get('berufstaetigkeit_id');
|
||||
|
||||
if(isset($berufstaetigkeitID))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeitID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBerufstaetigkeit()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['berufstaetigkeit_id']))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($berufstaetigkeit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Beschaeftigungsausmass extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Beschaeftigungsausmass API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BeschaeftigungsausmassModel
|
||||
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BeschaeftigungsausmassModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBeschaeftigungsausmass()
|
||||
{
|
||||
$beschaeftigungsausmassID = $this->get('beschaeftigungsausmass_id');
|
||||
|
||||
if(isset($beschaeftigungsausmassID))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->load($beschaeftigungsausmassID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBeschaeftigungsausmass()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['beschaeftigungsausmass_id']))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschaeftigungsausmass_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($beschaeftigungsausmass = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Besqual extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Besqual API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BesqualModel
|
||||
$this->load->model('codex/besqual_model', 'BesqualModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BesqualModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBesqual()
|
||||
{
|
||||
$besqualID = $this->get('besqual_id');
|
||||
|
||||
if(isset($besqualID))
|
||||
{
|
||||
$result = $this->BesqualModel->load($besqualID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBesqual()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['besqual_id']))
|
||||
{
|
||||
$result = $this->BesqualModel->update($this->post()['besqual_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BesqualModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($besqual = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Bisfunktion API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BisfunktionModel
|
||||
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BisfunktionModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBisfunktion()
|
||||
{
|
||||
$bisfunktionID = $this->get('bisfunktion_id');
|
||||
|
||||
if(isset($bisfunktionID))
|
||||
{
|
||||
$result = $this->BisfunktionModel->load($bisfunktionID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBisfunktion()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisfunktion_id']))
|
||||
{
|
||||
$result = $this->BisfunktionModel->update($this->post()['bisfunktion_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BisfunktionModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($bisfunktion = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Bisio extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Bisio API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BisioModel
|
||||
$this->load->model('codex/bisio_model', 'BisioModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BisioModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBisio()
|
||||
{
|
||||
$bisioID = $this->get('bisio_id');
|
||||
|
||||
if(isset($bisioID))
|
||||
{
|
||||
$result = $this->BisioModel->load($bisioID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBisio()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisio_id']))
|
||||
{
|
||||
$result = $this->BisioModel->update($this->post()['bisio_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BisioModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($bisio = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Bisorgform extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Bisorgform API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BisorgformModel
|
||||
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BisorgformModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBisorgform()
|
||||
{
|
||||
$bisorgformID = $this->get('bisorgform_id');
|
||||
|
||||
if(isset($bisorgformID))
|
||||
{
|
||||
$result = $this->BisorgformModel->load($bisorgformID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBisorgform()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisorgform_id']))
|
||||
{
|
||||
$result = $this->BisorgformModel->update($this->post()['bisorgform_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BisorgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($bisorgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Bisverwendung extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Bisverwendung API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model BisverwendungModel
|
||||
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BisverwendungModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getBisverwendung()
|
||||
{
|
||||
$bisverwendungID = $this->get('bisverwendung_id');
|
||||
|
||||
if(isset($bisverwendungID))
|
||||
{
|
||||
$result = $this->BisverwendungModel->load($bisverwendungID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postBisverwendung()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['bisverwendung_id']))
|
||||
{
|
||||
$result = $this->BisverwendungModel->update($this->post()['bisverwendung_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->BisverwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($bisverwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Entwicklungsteam API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model EntwicklungsteamModel
|
||||
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->EntwicklungsteamModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getEntwicklungsteam()
|
||||
{
|
||||
$entwicklungsteamID = $this->get('entwicklungsteam_id');
|
||||
|
||||
if(isset($entwicklungsteamID))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->load($entwicklungsteamID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postEntwicklungsteam()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['entwicklungsteam_id']))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->update($this->post()['entwicklungsteam_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($entwicklungsteam = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Gemeinde extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Gemeinde API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model GemeindeModel
|
||||
$this->load->model('codex/gemeinde_model', 'GemeindeModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->GemeindeModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getGemeinde()
|
||||
{
|
||||
$gemeindeID = $this->get('gemeinde_id');
|
||||
|
||||
if(isset($gemeindeID))
|
||||
{
|
||||
$result = $this->GemeindeModel->load($gemeindeID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postGemeinde()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['gemeinde_id']))
|
||||
{
|
||||
$result = $this->GemeindeModel->update($this->post()['gemeinde_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->GemeindeModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($gemeinde = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Hauptberuf extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Hauptberuf API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model HauptberufModel
|
||||
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->HauptberufModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getHauptberuf()
|
||||
{
|
||||
$hauptberufID = $this->get('hauptberuf_id');
|
||||
|
||||
if(isset($hauptberufID))
|
||||
{
|
||||
$result = $this->HauptberufModel->load($hauptberufID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postHauptberuf()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['hauptberuf_id']))
|
||||
{
|
||||
$result = $this->HauptberufModel->update($this->post()['hauptberuf_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->HauptberufModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($hauptberuf = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Lehrform extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Lehrform API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model LehrformModel
|
||||
$this->load->model('codex/lehrform_model', 'LehrformModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->LehrformModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getLehrform()
|
||||
{
|
||||
$lehrformID = $this->get('lehrform_id');
|
||||
|
||||
if(isset($lehrformID))
|
||||
{
|
||||
$result = $this->LehrformModel->load($lehrformID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postLehrform()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['lehrform_id']))
|
||||
{
|
||||
$result = $this->LehrformModel->update($this->post()['lehrform_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->LehrformModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($lehrform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Lgartcode extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Lgartcode API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model LgartcodeModel
|
||||
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->LgartcodeModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getLgartcode()
|
||||
{
|
||||
$lgartcodeID = $this->get('lgartcode_id');
|
||||
|
||||
if(isset($lgartcodeID))
|
||||
{
|
||||
$result = $this->LgartcodeModel->load($lgartcodeID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postLgartcode()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['lgartcode_id']))
|
||||
{
|
||||
$result = $this->LgartcodeModel->update($this->post()['lgartcode_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->LgartcodeModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($lgartcode = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Mobilitaetsprogramm extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Mobilitaetsprogramm API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model MobilitaetsprogrammModel
|
||||
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->MobilitaetsprogrammModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getMobilitaetsprogramm()
|
||||
{
|
||||
$mobilitaetsprogrammID = $this->get('mobilitaetsprogramm_id');
|
||||
|
||||
if(isset($mobilitaetsprogrammID))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogrammID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postMobilitaetsprogramm()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['mobilitaetsprogramm_id']))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($mobilitaetsprogramm = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Note extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Note API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model NoteModel
|
||||
$this->load->model('codex/note_model', 'NoteModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->NoteModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getNote()
|
||||
{
|
||||
$noteID = $this->get('note_id');
|
||||
|
||||
if(isset($noteID))
|
||||
{
|
||||
$result = $this->NoteModel->load($noteID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postNote()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['note_id']))
|
||||
{
|
||||
$result = $this->NoteModel->update($this->post()['note_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->NoteModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($note = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Orgform extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Orgform API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model OrgformModel
|
||||
$this->load->model('codex/orgform_model', 'OrgformModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->OrgformModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getOrgform()
|
||||
{
|
||||
$orgformID = $this->get('orgform_id');
|
||||
|
||||
if(isset($orgformID))
|
||||
{
|
||||
$result = $this->OrgformModel->load($orgformID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postOrgform()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['orgform_id']))
|
||||
{
|
||||
$result = $this->OrgformModel->update($this->post()['orgform_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->OrgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($orgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Verwendung extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Verwendung API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model VerwendungModel
|
||||
$this->load->model('codex/verwendung_model', 'VerwendungModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->VerwendungModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getVerwendung()
|
||||
{
|
||||
$verwendungID = $this->get('verwendung_id');
|
||||
|
||||
if(isset($verwendungID))
|
||||
{
|
||||
$result = $this->VerwendungModel->load($verwendungID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postVerwendung()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['verwendung_id']))
|
||||
{
|
||||
$result = $this->VerwendungModel->update($this->post()['verwendung_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->VerwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($verwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Zgv extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Zgv API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ZgvModel
|
||||
$this->load->model('codex/zgv_model', 'ZgvModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ZgvModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getZgv()
|
||||
{
|
||||
$zgvID = $this->get('zgv_id');
|
||||
|
||||
if(isset($zgvID))
|
||||
{
|
||||
$result = $this->ZgvModel->load($zgvID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postZgv()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgv_id']))
|
||||
{
|
||||
$result = $this->ZgvModel->update($this->post()['zgv_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZgvModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($zgv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Zgvdoktor extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Zgvdoktor API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ZgvdoktorModel
|
||||
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ZgvdoktorModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getZgvdoktor()
|
||||
{
|
||||
$zgvdoktorID = $this->get('zgvdoktor_id');
|
||||
|
||||
if(isset($zgvdoktorID))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->load($zgvdoktorID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postZgvdoktor()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgvdoktor_id']))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($zgvdoktor = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Zgvgruppe extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Zgvgruppe API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ZgvgruppeModel
|
||||
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ZgvgruppeModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getZgvgruppe()
|
||||
{
|
||||
$zgvgruppeID = $this->get('zgvgruppe_id');
|
||||
|
||||
if(isset($zgvgruppeID))
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->load($zgvgruppeID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postZgvgruppe()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgvgruppe_id']))
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->update($this->post()['zgvgruppe_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($zgvgruppe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Zgvmaster extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Zgvmaster API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ZgvmasterModel
|
||||
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ZgvmasterModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getZgvmaster()
|
||||
{
|
||||
$zgvmasterID = $this->get('zgvmaster_id');
|
||||
|
||||
if(isset($zgvmasterID))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->load($zgvmasterID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postZgvmaster()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zgvmaster_id']))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->update($this->post()['zgvmaster_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZgvmasterModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($zgvmaster = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Zweck extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Zweck API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model ZweckModel
|
||||
$this->load->model('codex/zweck_model', 'ZweckModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ZweckModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getZweck()
|
||||
{
|
||||
$zweckID = $this->get('zweck_id');
|
||||
|
||||
if(isset($zweckID))
|
||||
{
|
||||
$result = $this->ZweckModel->load($zweckID);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postZweck()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['zweck_id']))
|
||||
{
|
||||
$result = $this->ZweckModel->update($this->post()['zweck_id'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->ZweckModel->insert($this->post());
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
private function _validate($zweck = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user