- 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:
paolo
2016-05-13 19:00:40 +02:00
parent f76b83ef64
commit de9e92e3b0
167 changed files with 13079 additions and 15 deletions
+211 -14
View File
@@ -6,26 +6,223 @@ $config['fhc_version'] = '3.2';
$config['fhc_acl'] = array
(
'bis.tbl_bundesland' => 'basis/nation',
'bis.tbl_nation' => 'basis/nation',
'bis.tbl_archiv' => 'basis/archiv',
'bis.tbl_ausbildung' => 'basis/ausbildung',
'bis.tbl_berufstaetigkeit' => 'basis/berufstaetigkeit',
'bis.tbl_beschaeftigungsausmass' => 'basis/beschaeftigungsausmass',
'bis.tbl_besqual' => 'basis/besqual',
'bis.tbl_bisfunktion' => 'basis/bisfunktion',
'bis.tbl_bisio' => 'basis/bisio',
'bis.tbl_bisorgform' => 'basis/bisorgform',
'bis.tbl_bisverwendung' => 'basis/bisverwendung',
'bis.tbl_bundesland' => 'basis/bundesland',
'bis.tbl_entwicklungsteam' => 'basis/entwicklungsteam',
'bis.tbl_gemeinde' => 'basis/gemeinde',
'bis.tbl_hauptberuf' => 'basis/hauptberuf',
'bis.tbl_lgartcode' => 'basis/lgartcode',
'campus.tbl_dms' => 'basis/tbl_dms',
'campus.tbl_dms_version' => 'basis/tbl_dms_version',
'lehre.tbl_studienplan' => 'basis/studienplan',
'bis.tbl_mobilitaetsprogramm' => 'basis/mobilitaetsprogramm',
'bis.tbl_nation' => 'basis/nation',
'bis.tbl_orgform' => 'basis/orgform',
'bis.tbl_verwendung' => 'basis/verwendung',
'bis.tbl_zgv' => 'basis/zgv',
'bis.tbl_zgvdoktor' => 'basis/zgvdoktor',
'bis.tbl_zgvgruppe' => 'basis/zgvgruppe',
'bis.tbl_zgvmaster' => 'basis/zgvmaster',
'bis.tbl_zweck' => 'basis/zweck',
'campus.tbl_abgabe' => 'basis/abgabe',
'campus.tbl_anwesenheit' => 'basis/anwesenheit',
'campus.tbl_beispiel' => 'basis/beispiel',
'campus.tbl_content' => 'basis/content',
'campus.tbl_contentchild' => 'basis/contentchild',
'campus.tbl_contentgruppe' => 'basis/contentgruppe',
'campus.tbl_contentlog' => 'basis/contentlog',
'campus.tbl_contentsprache' => 'basis/contentsprache',
'campus.tbl_coodle' => 'basis/coodle',
'campus.tbl_dms' => 'basis/dms',
'campus.tbl_erreichbarkeit' => 'basis/erreichbarkeit',
'campus.tbl_feedback' => 'basis/feedback',
'campus.tbl_freebusy' => 'basis/freebusy',
'campus.tbl_freebusytyp' => 'basis/freebusytyp',
'campus.tbl_infoscreen' => 'basis/infoscreen',
'campus.tbl_legesamtnote' => 'basis/legesamtnote',
'campus.tbl_lvgesamtnote' => 'basis/lvgesamtnote',
'campus.tbl_lvinfo' => 'basis/lvinfo',
'campus.tbl_news' => 'basis/news',
'campus.tbl_notenschluessel' => 'basis/notenschluessel',
'campus.tbl_notenschluesseluebung' => 'basis/notenschluesseluebung',
'campus.tbl_paabgabe' => 'basis/paabgabe',
'campus.tbl_paabgabetyp' => 'basis/paabgabetyp',
'campus.tbl_pruefung' => 'basis/pruefung',
'campus.tbl_pruefungsanmeldung' => 'basis/pruefungsanmeldung',
'campus.tbl_pruefungsfenster' => 'basis/pruefungsfenster',
'campus.tbl_pruefungsstatus' => 'basis/pruefungsstatus',
'campus.tbl_pruefungstermin' => 'basis/pruefungstermin',
'campus.tbl_reservierung' => 'basis/reservierung',
'campus.tbl_resturlaub' => 'basis/resturlaub',
'campus.tbl_studentbeispiel' => 'basis/studentbeispiel',
'campus.tbl_studentuebung' => 'basis/studentuebung',
'campus.tbl_template' => 'basis/template',
'campus.tbl_uebung' => 'basis/uebung',
'campus.tbl_veranstaltung' => 'basis/veranstaltung',
'campus.tbl_veranstaltungskategorie' => 'basis/veranstaltungskategorie',
'campus.tbl_zeitaufzeichnung' => 'basis/zeitaufzeichnung',
'campus.tbl_zeitsperre' => 'basis/zeitsperre',
'campus.tbl_zeitsperretyp' => 'basis/zeitsperretyp',
'campus.tbl_zeitwunsch' => 'basis/zeitwunsch',
'fue.tbl_aktivitaet' => 'basis/aktivitaet',
'fue.tbl_aufwandstyp' => 'basis/aufwandstyp',
'fue.tbl_projekt' => 'basis/projekt',
'fue.tbl_projekt_ressource' => 'basis/projekt_ressource',
'fue.tbl_projektphase' => 'basis/projektphase',
'fue.tbl_projekttask' => 'basis/projekttask',
'fue.tbl_ressource' => 'basis/ressource',
'fue.tbl_scrumsprint' => 'basis/scrumsprint',
'fue.tbl_scrumteam' => 'basis/scrumteam',
'lehre.tbl_abschlussbeurteilung' => 'basis/abschlussbeurteilung',
'lehre.tbl_abschlusspruefung' => 'basis/abschlusspruefung',
'lehre.tbl_akadgrad' => 'basis/akadgrad',
'lehre.tbl_anrechnung' => 'basis/anrechnung',
'lehre.tbl_betreuerart' => 'basis/betreuerart',
'lehre.tbl_ferien' => 'basis/ferien',
'lehre.tbl_lehreinheit' => 'basis/lehreinheit',
'lehre.tbl_lehreinheitgruppe' => 'basis/lehreinheitgruppe',
'lehre.tbl_lehreinheitmitarbeiter' => 'basis/lehreinheitmitarbeiter',
'lehre.tbl_lehrfach' => 'basis/lehrfach',
'lehre.tbl_lehrform' => 'basis/lehrform',
'lehre.tbl_lehrfunktion' => 'basis/lehrfunktion',
'lehre.tbl_lehrmittel' => 'basis/lehrmittel',
'lehre.tbl_lehrtyp' => 'basis/lehrtyp',
'lehre.tbl_lehrveranstaltung' => 'basis/lehrveranstaltung',
'lehre.tbl_lvangebot' => 'basis/lvangebot',
'lehre.tbl_lvregel' => 'basis/lvregel',
'lehre.tbl_lvregeltyp' => 'basis/lvregeltyp',
'lehre.tbl_moodle' => 'basis/moodle',
'lehre.tbl_note' => 'basis/note',
'lehre.tbl_notenschluessel' => 'basis/notenschluessel',
'lehre.tbl_notenschluesselaufteilung' => 'basis/notenschluesselaufteilung',
'lehre.tbl_notenschluesselzuordnung' => 'basis/notenschluesselzuordnung',
'lehre.tbl_projektarbeit' => 'basis/projektarbeit',
'lehre.tbl_projektbetreuer' => 'basis/projektbetreuer',
'lehre.tbl_projekttyp' => 'basis/projekttyp',
'lehre.tbl_pruefung' => 'basis/pruefung',
'lehre.tbl_pruefungstyp' => 'basis/pruefungstyp',
'lehre.tbl_studienordnung' => 'basis/studienordnung',
'lehre.vw_studienplan' => 'basis/vw_studienplan',
'lehre.tbl_studienordnungstatus' => 'basis/studienordnungstatus',
'lehre.tbl_studienplan' => 'basis/studienplan',
'lehre.tbl_studienplatz' => 'basis/studienplatz',
'lehre.tbl_stunde' => 'basis/stunde',
'lehre.tbl_stundenplan' => 'basis/stundenplan',
'lehre.tbl_stundenplandev' => 'basis/stundenplandev',
'lehre.tbl_vertrag' => 'basis/vertrag',
'lehre.tbl_vertragsstatus' => 'basis/vertragsstatus',
'lehre.tbl_vertragstyp' => 'basis/vertragstyp',
'lehre.tbl_zeitfenster' => 'basis/zeitfenster',
'lehre.tbl_zeugnis' => 'basis/zeugnis',
'lehre.tbl_zeugnisnote' => 'basis/zeugnisnote',
'public.tbl_adresse' => 'basis/adresse',
'public.tbl_person' => 'basis/person',
'public.tbl_kontakt' => 'basis/kontakt',
'public.tbl_akte' => 'basis/akte',
'public.tbl_ampel' => 'basis/ampel',
'public.tbl_aufmerksamdurch' => 'basis/aufmerksamdurch',
'public.tbl_aufnahmeschluessel' => 'basis/aufnahmeschluessel',
'public.tbl_aufnahmetermin' => 'basis/aufnahmetermin',
'public.tbl_aufnahmetermintyp' => 'basis/aufnahmetermintyp',
'public.tbl_bankverbindung' => 'basis/bankverbindung',
'public.tbl_benutzer' => 'basis/benutzer',
'public.tbl_preinteressent' => 'basis/preinteressent',
'public.tbl_prestudent' => 'basis/person',
'public.tbl_prestudentstatus' => 'basis/person',
'public.tbl_benutzerfunktion' => 'basis/benutzerfunktion',
'public.tbl_benutzergruppe' => 'basis/benutzergruppe',
'public.tbl_bewerbungstermine' => 'basis/bewerbungstermine',
'public.tbl_buchungstyp' => 'basis/buchungstyp',
'public.tbl_dokument' => 'basis/dokument',
'public.tbl_dokumentprestudent' => 'basis/dokumentprestudent',
'public.tbl_dokumentstudiengang' => 'basis/dokumentstudiengang',
'public.tbl_erhalter' => 'basis/erhalter',
'public.tbl_fachbereich' => 'basis/fachbereich',
'public.tbl_filter' => 'basis/filter',
'public.tbl_firma' => 'basis/firma',
'public.tbl_firmatag' => 'basis/firmatag',
'public.tbl_firmentyp' => 'basis/firmentyp',
'public.tbl_fotostatus' => 'basis/fotostatus',
'public.tbl_funktion' => 'basis/funktion',
'public.tbl_geschaeftsjahr' => 'basis/geschaeftsjahr',
'public.tbl_gruppe' => 'basis/gruppe',
'public.tbl_kontakt' => 'basis/kontakt',
'public.tbl_kontaktmedium' => 'basis/kontaktmedium',
'public.tbl_kontakttyp' => 'basis/kontakttyp',
'public.tbl_konto' => 'basis/konto',
'public.tbl_lehrverband' => 'basis/lehrverband',
'public.tbl_log' => 'basis/log',
'public.tbl_mitarbeiter' => 'basis/mitarbeiter',
'public.tbl_msg_message' => 'basis/msg_message',
'public.tbl_msg_thread' => 'basis/msg_thread',
'public.tbl_notiz' => 'basis/notiz',
'public.tbl_notizzuordnung' => 'basis/notizzuordnung',
'public.tbl_organisationseinheit' => 'basis/organisationseinheit',
'public.tbl_organisationseinheittyp' => 'basis/organisationseinheittyp',
'public.tbl_ort' => 'basis/ort',
'public.tbl_ortraumtyp' => 'basis/ortraumtyp',
'public.tbl_person' => 'basis/person',
'public.tbl_personfunktionstandort' => 'basis/personfunktionstandort',
'public.tbl_preincoming' => 'basis/preincoming',
'public.tbl_preinteressent' => 'basis/preinteressent',
'public.tbl_preinteressentstudiengang' => 'basis/preinteressentstudiengang',
'public.tbl_preoutgoing' => 'basis/preoutgoing',
'public.tbl_prestudent' => 'basis/prestudent',
'public.tbl_prestudentstatus' => 'basis/prestudentstatus',
'public.tbl_raumtyp' => 'basis/raumtyp',
'public.tbl_reihungstest' => 'basis/reihungstest',
'public.tbl_semesterwochen' => 'basis/semesterwochen',
'public.tbl_service' => 'basis/service',
'public.tbl_sprache' => 'basis/sprache',
'public.tbl_standort' => 'basis/standort',
'public.tbl_statistik' => 'basis/statistik',
'public.tbl_status' => 'basis/status',
'public.tbl_student' => 'basis/student',
'public.tbl_studentlehrverband' => 'basis/studentlehrverband',
'public.tbl_studiengang' => 'basis/studiengang',
'public.tbl_studiengangstyp' => 'basis/studiengangstyp',
'public.tbl_studienjahr' => 'basis/studienjahr',
'public.tbl_studiensemester' => 'basis/studiensemester',
'public.tbl_tag' => 'basis/tag',
'public.tbl_variable' => 'basis/variable',
'public.tbl_vorlage' => 'basis/vorlage',
'public.tbl_vorlagestudiengang' => 'basis/vorlagestudiengang',
'system.tbl_appdaten' => 'basis/appdaten',
'system.tbl_benutzerrolle' => 'basis/benutzerrolle',
'system.tbl_berechtigung' => 'basis/berechtigung',
'system.tbl_cronjob' => 'basis/cronjob',
'system.tbl_rolle' => 'basis/rolle',
'system.tbl_rolleberechtigung' => 'basis/rolleberechtigung',
'system.tbl_server' => 'basis/server',
'system.tbl_webservicelog' => 'basis/webservicelog',
'system.tbl_webservicerecht' => 'basis/webservicerecht',
'system.tbl_webservicetyp' => 'basis/webservicetyp',
'testtool.tbl_ablauf' => 'basis/ablauf',
'testtool.tbl_antwort' => 'basis/antwort',
'testtool.tbl_frage' => 'basis/frage',
'testtool.tbl_gebiet' => 'basis/gebiet',
'testtool.tbl_kategorie' => 'basis/kategorie',
'testtool.tbl_kriterien' => 'basis/kriterien',
'testtool.tbl_pruefling' => 'basis/pruefling',
'testtool.tbl_vorschlag' => 'basis/vorschlag',
'wawi.tbl_aufteilung' => 'basis/aufteilung',
'wawi.tbl_bestelldetail' => 'basis/bestelldetail',
'wawi.tbl_bestelldetailtag' => 'basis/bestelldetailtag',
'wawi.tbl_bestellstatus' => 'basis/bestellstatus',
'wawi.tbl_bestellung' => 'basis/bestellung',
'wawi.tbl_bestellungtag' => 'basis/bestellungtag',
'wawi.tbl_betriebsmittel' => 'basis/betriebsmittel',
'wawi.tbl_betriebsmittelperson' => 'basis/betriebsmittelperson',
'wawi.tbl_betriebsmittelstatus' => 'basis/betriebsmittelstatus',
'wawi.tbl_betriebsmitteltyp' => 'basis/betriebsmitteltyp',
'wawi.tbl_buchung' => 'basis/buchung',
'wawi.tbl_buchungstyp' => 'basis/buchungstyp',
'wawi.tbl_budget' => 'basis/budget',
'wawi.tbl_konto' => 'basis/konto',
'wawi.tbl_kostenstelle' => 'basis/kostenstelle',
'wawi.tbl_rechnung' => 'basis/rechnung',
'wawi.tbl_rechnungsbetrag' => 'basis/rechnungsbetrag',
'wawi.tbl_rechnungstyp' => 'basis/rechnungstyp',
'wawi.tbl_zahlungstyp' => 'basis/zahlungstyp',
'public.tbl_sprache' => 'admin',
'public.tbl_msg_thread' => 'admin',
@@ -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 Aufteilung extends APIv1_Controller
{
/**
* Aufteilung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufteilungModel
$this->load->model('accounting/aufteilung_model', 'AufteilungModel');
// Load set the uid of the model to let to check the permissions
$this->AufteilungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAufteilung()
{
$aufteilungID = $this->get('aufteilung_id');
if(isset($aufteilungID))
{
$result = $this->AufteilungModel->load($aufteilungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufteilung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['aufteilung_id']))
{
$result = $this->AufteilungModel->update($this->post()['aufteilung_id'], $this->post());
}
else
{
$result = $this->AufteilungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufteilung = 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 Bestelldetail extends APIv1_Controller
{
/**
* Bestelldetail API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestelldetailModel
$this->load->model('accounting/bestelldetail_model', 'BestelldetailModel');
// Load set the uid of the model to let to check the permissions
$this->BestelldetailModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBestelldetail()
{
$bestelldetailID = $this->get('bestelldetail_id');
if(isset($bestelldetailID))
{
$result = $this->BestelldetailModel->load($bestelldetailID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestelldetail()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bestelldetail_id']))
{
$result = $this->BestelldetailModel->update($this->post()['bestelldetail_id'], $this->post());
}
else
{
$result = $this->BestelldetailModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestelldetail = 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 Bestelldetailtag extends APIv1_Controller
{
/**
* Bestelldetailtag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestelldetailtagModel
$this->load->model('accounting/bestelldetailtag_model', 'BestelldetailtagModel');
// Load set the uid of the model to let to check the permissions
$this->BestelldetailtagModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBestelldetailtag()
{
$bestelldetailtagID = $this->get('bestelldetailtag_id');
if(isset($bestelldetailtagID))
{
$result = $this->BestelldetailtagModel->load($bestelldetailtagID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestelldetailtag()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bestelldetailtag_id']))
{
$result = $this->BestelldetailtagModel->update($this->post()['bestelldetailtag_id'], $this->post());
}
else
{
$result = $this->BestelldetailtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestelldetailtag = 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 Bestellstatus extends APIv1_Controller
{
/**
* Bestellstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellstatusModel
$this->load->model('accounting/bestellstatus_model', 'BestellstatusModel');
// Load set the uid of the model to let to check the permissions
$this->BestellstatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBestellstatus()
{
$bestellstatusID = $this->get('bestellstatus_id');
if(isset($bestellstatusID))
{
$result = $this->BestellstatusModel->load($bestellstatusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellstatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bestellstatus_id']))
{
$result = $this->BestellstatusModel->update($this->post()['bestellstatus_id'], $this->post());
}
else
{
$result = $this->BestellstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellstatus = 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 Bestellung extends APIv1_Controller
{
/**
* Bestellung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellungModel
$this->load->model('accounting/bestellung_model', 'BestellungModel');
// Load set the uid of the model to let to check the permissions
$this->BestellungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBestellung()
{
$bestellungID = $this->get('bestellung_id');
if(isset($bestellungID))
{
$result = $this->BestellungModel->load($bestellungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bestellung_id']))
{
$result = $this->BestellungModel->update($this->post()['bestellung_id'], $this->post());
}
else
{
$result = $this->BestellungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellung = 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 Bestellungtag extends APIv1_Controller
{
/**
* Bestellungtag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellungtagModel
$this->load->model('accounting/bestellungtag_model', 'BestellungtagModel');
// Load set the uid of the model to let to check the permissions
$this->BestellungtagModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBestellungtag()
{
$bestellungtagID = $this->get('bestellungtag_id');
if(isset($bestellungtagID))
{
$result = $this->BestellungtagModel->load($bestellungtagID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellungtag()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bestellungtag_id']))
{
$result = $this->BestellungtagModel->update($this->post()['bestellungtag_id'], $this->post());
}
else
{
$result = $this->BestellungtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellungtag = 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 Buchung extends APIv1_Controller
{
/**
* Buchung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungModel
$this->load->model('accounting/buchung_model', 'BuchungModel');
// Load set the uid of the model to let to check the permissions
$this->BuchungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBuchung()
{
$buchungID = $this->get('buchung_id');
if(isset($buchungID))
{
$result = $this->BuchungModel->load($buchungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['buchung_id']))
{
$result = $this->BuchungModel->update($this->post()['buchung_id'], $this->post());
}
else
{
$result = $this->BuchungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchung = 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 Buchungstyp extends APIv1_Controller
{
/**
* Buchungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungstypModel
$this->load->model('accounting/buchungstyp_model', 'BuchungstypModel');
// Load set the uid of the model to let to check the permissions
$this->BuchungstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBuchungstyp()
{
$buchungstypID = $this->get('buchungstyp_id');
if(isset($buchungstypID))
{
$result = $this->BuchungstypModel->load($buchungstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchungstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['buchungstyp_id']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_id'], $this->post());
}
else
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchungstyp = 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 Budget extends APIv1_Controller
{
/**
* Budget API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BudgetModel
$this->load->model('accounting/budget_model', 'BudgetModel');
// Load set the uid of the model to let to check the permissions
$this->BudgetModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBudget()
{
$budgetID = $this->get('budget_id');
if(isset($budgetID))
{
$result = $this->BudgetModel->load($budgetID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBudget()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['budget_id']))
{
$result = $this->BudgetModel->update($this->post()['budget_id'], $this->post());
}
else
{
$result = $this->BudgetModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($budget = 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 Konto extends APIv1_Controller
{
/**
* Konto API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KontoModel
$this->load->model('accounting/konto_model', 'KontoModel');
// Load set the uid of the model to let to check the permissions
$this->KontoModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getKonto()
{
$kontoID = $this->get('konto_id');
if(isset($kontoID))
{
$result = $this->KontoModel->load($kontoID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKonto()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['konto_id']))
{
$result = $this->KontoModel->update($this->post()['konto_id'], $this->post());
}
else
{
$result = $this->KontoModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($konto = 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 Kostenstelle extends APIv1_Controller
{
/**
* Kostenstelle API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KostenstelleModel
$this->load->model('accounting/kostenstelle_model', 'KostenstelleModel');
// Load set the uid of the model to let to check the permissions
$this->KostenstelleModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getKostenstelle()
{
$kostenstelleID = $this->get('kostenstelle_id');
if(isset($kostenstelleID))
{
$result = $this->KostenstelleModel->load($kostenstelleID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKostenstelle()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['kostenstelle_id']))
{
$result = $this->KostenstelleModel->update($this->post()['kostenstelle_id'], $this->post());
}
else
{
$result = $this->KostenstelleModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($kostenstelle = 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 Rechnung extends APIv1_Controller
{
/**
* Rechnung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungModel
$this->load->model('accounting/rechnung_model', 'RechnungModel');
// Load set the uid of the model to let to check the permissions
$this->RechnungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getRechnung()
{
$rechnungID = $this->get('rechnung_id');
if(isset($rechnungID))
{
$result = $this->RechnungModel->load($rechnungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['rechnung_id']))
{
$result = $this->RechnungModel->update($this->post()['rechnung_id'], $this->post());
}
else
{
$result = $this->RechnungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnung = 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 Rechnungsbetrag extends APIv1_Controller
{
/**
* Rechnungsbetrag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungsbetragModel
$this->load->model('accounting/rechnungsbetrag_model', 'RechnungsbetragModel');
// Load set the uid of the model to let to check the permissions
$this->RechnungsbetragModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getRechnungsbetrag()
{
$rechnungsbetragID = $this->get('rechnungsbetrag_id');
if(isset($rechnungsbetragID))
{
$result = $this->RechnungsbetragModel->load($rechnungsbetragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnungsbetrag()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['rechnungsbetrag_id']))
{
$result = $this->RechnungsbetragModel->update($this->post()['rechnungsbetrag_id'], $this->post());
}
else
{
$result = $this->RechnungsbetragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnungsbetrag = 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 Rechnungstyp extends APIv1_Controller
{
/**
* Rechnungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungstypModel
$this->load->model('accounting/rechnungstyp_model', 'RechnungstypModel');
// Load set the uid of the model to let to check the permissions
$this->RechnungstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getRechnungstyp()
{
$rechnungstypID = $this->get('rechnungstyp_id');
if(isset($rechnungstypID))
{
$result = $this->RechnungstypModel->load($rechnungstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnungstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['rechnungstyp_id']))
{
$result = $this->RechnungstypModel->update($this->post()['rechnungstyp_id'], $this->post());
}
else
{
$result = $this->RechnungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnungstyp = 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 Vertrag extends APIv1_Controller
{
/**
* Vertrag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragModel
$this->load->model('accounting/vertrag_model', 'VertragModel');
// Load set the uid of the model to let to check the permissions
$this->VertragModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getVertrag()
{
$vertragID = $this->get('vertrag_id');
if(isset($vertragID))
{
$result = $this->VertragModel->load($vertragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertrag()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['vertrag_id']))
{
$result = $this->VertragModel->update($this->post()['vertrag_id'], $this->post());
}
else
{
$result = $this->VertragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertrag = 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 Vertragsstatus extends APIv1_Controller
{
/**
* Vertragsstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragsstatusModel
$this->load->model('accounting/vertragsstatus_model', 'VertragsstatusModel');
// Load set the uid of the model to let to check the permissions
$this->VertragsstatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getVertragsstatus()
{
$vertragsstatusID = $this->get('vertragsstatus_id');
if(isset($vertragsstatusID))
{
$result = $this->VertragsstatusModel->load($vertragsstatusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertragsstatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['vertragsstatus_id']))
{
$result = $this->VertragsstatusModel->update($this->post()['vertragsstatus_id'], $this->post());
}
else
{
$result = $this->VertragsstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertragsstatus = 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 Vertragstyp extends APIv1_Controller
{
/**
* Vertragstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragstypModel
$this->load->model('accounting/vertragstyp_model', 'VertragstypModel');
// Load set the uid of the model to let to check the permissions
$this->VertragstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getVertragstyp()
{
$vertragstypID = $this->get('vertragstyp_id');
if(isset($vertragstypID))
{
$result = $this->VertragstypModel->load($vertragstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertragstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['vertragstyp_id']))
{
$result = $this->VertragstypModel->update($this->post()['vertragstyp_id'], $this->post());
}
else
{
$result = $this->VertragstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertragstyp = 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 Zahlungstyp extends APIv1_Controller
{
/**
* Zahlungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZahlungstypModel
$this->load->model('accounting/zahlungstyp_model', 'ZahlungstypModel');
// Load set the uid of the model to let to check the permissions
$this->ZahlungstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getZahlungstyp()
{
$zahlungstypID = $this->get('zahlungstyp_id');
if(isset($zahlungstypID))
{
$result = $this->ZahlungstypModel->load($zahlungstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZahlungstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['zahlungstyp_id']))
{
$result = $this->ZahlungstypModel->update($this->post()['zahlungstyp_id'], $this->post());
}
else
{
$result = $this->ZahlungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zahlungstyp = 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 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;
}
}
@@ -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 Ampel extends APIv1_Controller
{
/**
* Ampel API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AmpelModel
$this->load->model('content/ampel_model', 'AmpelModel');
// Load set the uid of the model to let to check the permissions
$this->AmpelModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAmpel()
{
$ampelID = $this->get('ampel_id');
if(isset($ampelID))
{
$result = $this->AmpelModel->load($ampelID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAmpel()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['ampel_id']))
{
$result = $this->AmpelModel->update($this->post()['ampel_id'], $this->post());
}
else
{
$result = $this->AmpelModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($ampel = 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 Content extends APIv1_Controller
{
/**
* Content API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentModel
$this->load->model('content/content_model', 'ContentModel');
// Load set the uid of the model to let to check the permissions
$this->ContentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getContent()
{
$contentID = $this->get('content_id');
if(isset($contentID))
{
$result = $this->ContentModel->load($contentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContent()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['content_id']))
{
$result = $this->ContentModel->update($this->post()['content_id'], $this->post());
}
else
{
$result = $this->ContentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($content = 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 Contentchild extends APIv1_Controller
{
/**
* Contentchild API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentchildModel
$this->load->model('content/contentchild_model', 'ContentchildModel');
// Load set the uid of the model to let to check the permissions
$this->ContentchildModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getContentchild()
{
$contentchildID = $this->get('contentchild_id');
if(isset($contentchildID))
{
$result = $this->ContentchildModel->load($contentchildID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentchild()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['contentchild_id']))
{
$result = $this->ContentchildModel->update($this->post()['contentchild_id'], $this->post());
}
else
{
$result = $this->ContentchildModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentchild = 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 Contentgruppe extends APIv1_Controller
{
/**
* Contentgruppe API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentgruppeModel
$this->load->model('content/contentgruppe_model', 'ContentgruppeModel');
// Load set the uid of the model to let to check the permissions
$this->ContentgruppeModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getContentgruppe()
{
$contentgruppeID = $this->get('contentgruppe_id');
if(isset($contentgruppeID))
{
$result = $this->ContentgruppeModel->load($contentgruppeID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentgruppe()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['contentgruppe_id']))
{
$result = $this->ContentgruppeModel->update($this->post()['contentgruppe_id'], $this->post());
}
else
{
$result = $this->ContentgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentgruppe = 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 Contentlog extends APIv1_Controller
{
/**
* Contentlog API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentlogModel
$this->load->model('content/contentlog_model', 'ContentlogModel');
// Load set the uid of the model to let to check the permissions
$this->ContentlogModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getContentlog()
{
$contentlogID = $this->get('contentlog_id');
if(isset($contentlogID))
{
$result = $this->ContentlogModel->load($contentlogID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentlog()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['contentlog_id']))
{
$result = $this->ContentlogModel->update($this->post()['contentlog_id'], $this->post());
}
else
{
$result = $this->ContentlogModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentlog = 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 Contentsprache extends APIv1_Controller
{
/**
* Contentsprache API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentspracheModel
$this->load->model('content/contentsprache_model', 'ContentspracheModel');
// Load set the uid of the model to let to check the permissions
$this->ContentspracheModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getContentsprache()
{
$contentspracheID = $this->get('contentsprache_id');
if(isset($contentspracheID))
{
$result = $this->ContentspracheModel->load($contentspracheID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentsprache()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['contentsprache_id']))
{
$result = $this->ContentspracheModel->update($this->post()['contentsprache_id'], $this->post());
}
else
{
$result = $this->ContentspracheModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentsprache = NULL)
{
return true;
}
}
@@ -0,0 +1,69 @@
<?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 Dms extends APIv1_Controller
{
/**
*
*/
public function __construct()
{
parent::__construct();
// Load model PersonModel
$this->load->model('content/dms_model', 'DmsModel');
// Load set the uid of the model to let to check the permissions
$this->DmsModel->setUID($this->_getUID());
}
/**
*
*/
public function getDms()
{
$dms_id = $this->get('dms_id');
$version = $this->get('version');
if(isset($dms_id))
{
$result = $this->DmsModel->addJoin('campus.tbl_dms_version', 'dms_id');
if($result->error == EXIT_SUCCESS)
{
$result = $this->DmsModel->addOrder('version', 'DESC');
if($result->error == EXIT_SUCCESS)
{
$result = $this->DmsModel->addLimit(1);
if($result->error == EXIT_SUCCESS)
{
if(!isset($version))
{
$result = $this->DmsModel->loadWhere(array('dms_id' => $dms_id));
}
else
{
$result = $this->DmsModel->loadWhere(array('dms_id' => $dms_id, 'version' => $version));
}
}
}
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
}
@@ -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 Infoscreen extends APIv1_Controller
{
/**
* Infoscreen API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model InfoscreenModel
$this->load->model('content/infoscreen_model', 'InfoscreenModel');
// Load set the uid of the model to let to check the permissions
$this->InfoscreenModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getInfoscreen()
{
$infoscreenID = $this->get('infoscreen_id');
if(isset($infoscreenID))
{
$result = $this->InfoscreenModel->load($infoscreenID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postInfoscreen()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['infoscreen_id']))
{
$result = $this->InfoscreenModel->update($this->post()['infoscreen_id'], $this->post());
}
else
{
$result = $this->InfoscreenModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($infoscreen = 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 News extends APIv1_Controller
{
/**
* News API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model NewsModel
$this->load->model('content/news_model', 'NewsModel');
// Load set the uid of the model to let to check the permissions
$this->NewsModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getNews()
{
$newsID = $this->get('news_id');
if(isset($newsID))
{
$result = $this->NewsModel->load($newsID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postNews()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['news_id']))
{
$result = $this->NewsModel->update($this->post()['news_id'], $this->post());
}
else
{
$result = $this->NewsModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($news = 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 Template extends APIv1_Controller
{
/**
* Template API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model TemplateModel
$this->load->model('content/template_model', 'TemplateModel');
// Load set the uid of the model to let to check the permissions
$this->TemplateModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getTemplate()
{
$templateID = $this->get('template_id');
if(isset($templateID))
{
$result = $this->TemplateModel->load($templateID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postTemplate()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['template_id']))
{
$result = $this->TemplateModel->update($this->post()['template_id'], $this->post());
}
else
{
$result = $this->TemplateModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($template = 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 Veranstaltung extends APIv1_Controller
{
/**
* Veranstaltung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VeranstaltungModel
$this->load->model('content/veranstaltung_model', 'VeranstaltungModel');
// Load set the uid of the model to let to check the permissions
$this->VeranstaltungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getVeranstaltung()
{
$veranstaltungID = $this->get('veranstaltung_id');
if(isset($veranstaltungID))
{
$result = $this->VeranstaltungModel->load($veranstaltungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVeranstaltung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['veranstaltung_id']))
{
$result = $this->VeranstaltungModel->update($this->post()['veranstaltung_id'], $this->post());
}
else
{
$result = $this->VeranstaltungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($veranstaltung = 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 Veranstaltungskategorie extends APIv1_Controller
{
/**
* Veranstaltungskategorie API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VeranstaltungskategorieModel
$this->load->model('content/veranstaltungskategorie_model', 'VeranstaltungskategorieModel');
// Load set the uid of the model to let to check the permissions
$this->VeranstaltungskategorieModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getVeranstaltungskategorie()
{
$veranstaltungskategorieID = $this->get('veranstaltungskategorie_id');
if(isset($veranstaltungskategorieID))
{
$result = $this->VeranstaltungskategorieModel->load($veranstaltungskategorieID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVeranstaltungskategorie()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['veranstaltungskategorie_id']))
{
$result = $this->VeranstaltungskategorieModel->update($this->post()['veranstaltungskategorie_id'], $this->post());
}
else
{
$result = $this->VeranstaltungskategorieModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($veranstaltungskategorie = 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 Akte extends APIv1_Controller
{
/**
* Akte API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AkteModel
$this->load->model('crm/akte_model', 'AkteModel');
// Load set the uid of the model to let to check the permissions
$this->AkteModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAkte()
{
$akteID = $this->get('akte_id');
if(isset($akteID))
{
$result = $this->AkteModel->load($akteID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAkte()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['akte_id']))
{
$result = $this->AkteModel->update($this->post()['akte_id'], $this->post());
}
else
{
$result = $this->AkteModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($akte = 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 Aufnahmeschluessel extends APIv1_Controller
{
/**
* Aufnahmeschluessel API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmeschluesselModel
$this->load->model('crm/aufnahmeschluessel_model', 'AufnahmeschluesselModel');
// Load set the uid of the model to let to check the permissions
$this->AufnahmeschluesselModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAufnahmeschluessel()
{
$aufnahmeschluesselID = $this->get('aufnahmeschluessel_id');
if(isset($aufnahmeschluesselID))
{
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluesselID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmeschluessel()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['aufnahmeschluessel_id']))
{
$result = $this->AufnahmeschluesselModel->update($this->post()['aufnahmeschluessel_id'], $this->post());
}
else
{
$result = $this->AufnahmeschluesselModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmeschluessel = 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 Aufnahmetermin extends APIv1_Controller
{
/**
* Aufnahmetermin API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmeterminModel
$this->load->model('crm/aufnahmetermin_model', 'AufnahmeterminModel');
// Load set the uid of the model to let to check the permissions
$this->AufnahmeterminModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAufnahmetermin()
{
$aufnahmeterminID = $this->get('aufnahmetermin_id');
if(isset($aufnahmeterminID))
{
$result = $this->AufnahmeterminModel->load($aufnahmeterminID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmetermin()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['aufnahmetermin_id']))
{
$result = $this->AufnahmeterminModel->update($this->post()['aufnahmetermin_id'], $this->post());
}
else
{
$result = $this->AufnahmeterminModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmetermin = 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 Aufnahmetermintyp extends APIv1_Controller
{
/**
* Aufnahmetermintyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmetermintypModel
$this->load->model('crm/aufnahmetermintyp_model', 'AufnahmetermintypModel');
// Load set the uid of the model to let to check the permissions
$this->AufnahmetermintypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getAufnahmetermintyp()
{
$aufnahmetermintypID = $this->get('aufnahmetermintyp_id');
if(isset($aufnahmetermintypID))
{
$result = $this->AufnahmetermintypModel->load($aufnahmetermintypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmetermintyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['aufnahmetermintyp_id']))
{
$result = $this->AufnahmetermintypModel->update($this->post()['aufnahmetermintyp_id'], $this->post());
}
else
{
$result = $this->AufnahmetermintypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmetermintyp = 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 Bewerbungstermine extends APIv1_Controller
{
/**
* Bewerbungstermine API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BewerbungstermineModel
$this->load->model('crm/bewerbungstermine_model', 'BewerbungstermineModel');
// Load set the uid of the model to let to check the permissions
$this->BewerbungstermineModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBewerbungstermine()
{
$bewerbungstermineID = $this->get('bewerbungstermine_id');
if(isset($bewerbungstermineID))
{
$result = $this->BewerbungstermineModel->load($bewerbungstermineID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBewerbungstermine()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bewerbungstermine_id']))
{
$result = $this->BewerbungstermineModel->update($this->post()['bewerbungstermine_id'], $this->post());
}
else
{
$result = $this->BewerbungstermineModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bewerbungstermine = 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 Buchungstyp extends APIv1_Controller
{
/**
* Buchungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungstypModel
$this->load->model('crm/buchungstyp_model', 'BuchungstypModel');
// Load set the uid of the model to let to check the permissions
$this->BuchungstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBuchungstyp()
{
$buchungstypID = $this->get('buchungstyp_id');
if(isset($buchungstypID))
{
$result = $this->BuchungstypModel->load($buchungstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchungstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['buchungstyp_id']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_id'], $this->post());
}
else
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchungstyp = 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 Dokument extends APIv1_Controller
{
/**
* Dokument API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model DokumentModel
$this->load->model('crm/dokument_model', 'DokumentModel');
// Load set the uid of the model to let to check the permissions
$this->DokumentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getDokument()
{
$dokumentID = $this->get('dokument_id');
if(isset($dokumentID))
{
$result = $this->DokumentModel->load($dokumentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokument()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['dokument_id']))
{
$result = $this->DokumentModel->update($this->post()['dokument_id'], $this->post());
}
else
{
$result = $this->DokumentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($dokument = 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 Dokumentprestudent extends APIv1_Controller
{
/**
* Dokumentprestudent API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model DokumentprestudentModel
$this->load->model('crm/dokumentprestudent_model', 'DokumentprestudentModel');
// Load set the uid of the model to let to check the permissions
$this->DokumentprestudentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getDokumentprestudent()
{
$dokumentprestudentID = $this->get('dokumentprestudent_id');
if(isset($dokumentprestudentID))
{
$result = $this->DokumentprestudentModel->load($dokumentprestudentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokumentprestudent()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['dokumentprestudent_id']))
{
$result = $this->DokumentprestudentModel->update($this->post()['dokumentprestudent_id'], $this->post());
}
else
{
$result = $this->DokumentprestudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($dokumentprestudent = 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 Dokumentstudiengang extends APIv1_Controller
{
/**
* Dokumentstudiengang API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model DokumentstudiengangModel
$this->load->model('crm/dokumentstudiengang_model', 'DokumentstudiengangModel');
// Load set the uid of the model to let to check the permissions
$this->DokumentstudiengangModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getDokumentstudiengang()
{
$dokumentstudiengangID = $this->get('dokumentstudiengang_id');
if(isset($dokumentstudiengangID))
{
$result = $this->DokumentstudiengangModel->load($dokumentstudiengangID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokumentstudiengang()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['dokumentstudiengang_id']))
{
$result = $this->DokumentstudiengangModel->update($this->post()['dokumentstudiengang_id'], $this->post());
}
else
{
$result = $this->DokumentstudiengangModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($dokumentstudiengang = 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 Konto extends APIv1_Controller
{
/**
* Konto API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KontoModel
$this->load->model('crm/konto_model', 'KontoModel');
// Load set the uid of the model to let to check the permissions
$this->KontoModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getKonto()
{
$kontoID = $this->get('konto_id');
if(isset($kontoID))
{
$result = $this->KontoModel->load($kontoID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKonto()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['konto_id']))
{
$result = $this->KontoModel->update($this->post()['konto_id'], $this->post());
}
else
{
$result = $this->KontoModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($konto = 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 Preincoming extends APIv1_Controller
{
/**
* Preincoming API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PreincomingModel
$this->load->model('crm/preincoming_model', 'PreincomingModel');
// Load set the uid of the model to let to check the permissions
$this->PreincomingModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPreincoming()
{
$preincomingID = $this->get('preincoming_id');
if(isset($preincomingID))
{
$result = $this->PreincomingModel->load($preincomingID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPreincoming()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['preincoming_id']))
{
$result = $this->PreincomingModel->update($this->post()['preincoming_id'], $this->post());
}
else
{
$result = $this->PreincomingModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($preincoming = 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 Preinteressentstudiengang extends APIv1_Controller
{
/**
* Preinteressentstudiengang API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PreinteressentstudiengangModel
$this->load->model('crm/preinteressentstudiengang_model', 'PreinteressentstudiengangModel');
// Load set the uid of the model to let to check the permissions
$this->PreinteressentstudiengangModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPreinteressentstudiengang()
{
$preinteressentstudiengangID = $this->get('preinteressentstudiengang_id');
if(isset($preinteressentstudiengangID))
{
$result = $this->PreinteressentstudiengangModel->load($preinteressentstudiengangID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPreinteressentstudiengang()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['preinteressentstudiengang_id']))
{
$result = $this->PreinteressentstudiengangModel->update($this->post()['preinteressentstudiengang_id'], $this->post());
}
else
{
$result = $this->PreinteressentstudiengangModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($preinteressentstudiengang = 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 Preoutgoing extends APIv1_Controller
{
/**
* Preoutgoing API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PreoutgoingModel
$this->load->model('crm/preoutgoing_model', 'PreoutgoingModel');
// Load set the uid of the model to let to check the permissions
$this->PreoutgoingModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPreoutgoing()
{
$preoutgoingID = $this->get('preoutgoing_id');
if(isset($preoutgoingID))
{
$result = $this->PreoutgoingModel->load($preoutgoingID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPreoutgoing()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['preoutgoing_id']))
{
$result = $this->PreoutgoingModel->update($this->post()['preoutgoing_id'], $this->post());
}
else
{
$result = $this->PreoutgoingModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($preoutgoing = 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 Prestudent extends APIv1_Controller
{
/**
* Prestudent API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PrestudentModel
$this->load->model('crm/prestudent_model', 'PrestudentModel');
// Load set the uid of the model to let to check the permissions
$this->PrestudentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPrestudent()
{
$prestudentID = $this->get('prestudent_id');
if(isset($prestudentID))
{
$result = $this->PrestudentModel->load($prestudentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPrestudent()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['prestudent_id']))
{
$result = $this->PrestudentModel->update($this->post()['prestudent_id'], $this->post());
}
else
{
$result = $this->PrestudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($prestudent = 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 Prestudentstatus extends APIv1_Controller
{
/**
* Prestudentstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PrestudentstatusModel
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
// Load set the uid of the model to let to check the permissions
$this->PrestudentstatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPrestudentstatus()
{
$prestudentstatusID = $this->get('prestudentstatus_id');
if(isset($prestudentstatusID))
{
$result = $this->PrestudentstatusModel->load($prestudentstatusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPrestudentstatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['prestudentstatus_id']))
{
$result = $this->PrestudentstatusModel->update($this->post()['prestudentstatus_id'], $this->post());
}
else
{
$result = $this->PrestudentstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($prestudentstatus = 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 Reihungstest extends APIv1_Controller
{
/**
* Reihungstest API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ReihungstestModel
$this->load->model('crm/reihungstest_model', 'ReihungstestModel');
// Load set the uid of the model to let to check the permissions
$this->ReihungstestModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getReihungstest()
{
$reihungstestID = $this->get('reihungstest_id');
if(isset($reihungstestID))
{
$result = $this->ReihungstestModel->load($reihungstestID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postReihungstest()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['reihungstest_id']))
{
$result = $this->ReihungstestModel->update($this->post()['reihungstest_id'], $this->post());
}
else
{
$result = $this->ReihungstestModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($reihungstest = 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 Status extends APIv1_Controller
{
/**
* Status API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StatusModel
$this->load->model('crm/status_model', 'StatusModel');
// Load set the uid of the model to let to check the permissions
$this->StatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStatus()
{
$statusID = $this->get('status_id');
if(isset($statusID))
{
$result = $this->StatusModel->load($statusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['status_id']))
{
$result = $this->StatusModel->update($this->post()['status_id'], $this->post());
}
else
{
$result = $this->StatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($status = 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 Student extends APIv1_Controller
{
/**
* Student API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudentModel
$this->load->model('crm/student_model', 'StudentModel');
// Load set the uid of the model to let to check the permissions
$this->StudentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudent()
{
$studentID = $this->get('student_id');
if(isset($studentID))
{
$result = $this->StudentModel->load($studentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudent()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['student_id']))
{
$result = $this->StudentModel->update($this->post()['student_id'], $this->post());
}
else
{
$result = $this->StudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($student = 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 Erhalter extends APIv1_Controller
{
/**
* Erhalter API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ErhalterModel
$this->load->model('organisation/erhalter_model', 'ErhalterModel');
// Load set the uid of the model to let to check the permissions
$this->ErhalterModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getErhalter()
{
$erhalterID = $this->get('erhalter_id');
if(isset($erhalterID))
{
$result = $this->ErhalterModel->load($erhalterID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postErhalter()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['erhalter_id']))
{
$result = $this->ErhalterModel->update($this->post()['erhalter_id'], $this->post());
}
else
{
$result = $this->ErhalterModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($erhalter = 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 Fachbereich extends APIv1_Controller
{
/**
* Fachbereich API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FachbereichModel
$this->load->model('organisation/fachbereich_model', 'FachbereichModel');
// Load set the uid of the model to let to check the permissions
$this->FachbereichModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getFachbereich()
{
$fachbereichID = $this->get('fachbereich_id');
if(isset($fachbereichID))
{
$result = $this->FachbereichModel->load($fachbereichID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postFachbereich()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['fachbereich_id']))
{
$result = $this->FachbereichModel->update($this->post()['fachbereich_id'], $this->post());
}
else
{
$result = $this->FachbereichModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($fachbereich = 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 Ferien extends APIv1_Controller
{
/**
* Ferien API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FerienModel
$this->load->model('organisation/ferien_model', 'FerienModel');
// Load set the uid of the model to let to check the permissions
$this->FerienModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getFerien()
{
$ferienID = $this->get('ferien_id');
if(isset($ferienID))
{
$result = $this->FerienModel->load($ferienID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postFerien()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['ferien_id']))
{
$result = $this->FerienModel->update($this->post()['ferien_id'], $this->post());
}
else
{
$result = $this->FerienModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($ferien = 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 Geschaeftsjahr extends APIv1_Controller
{
/**
* Geschaeftsjahr API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model GeschaeftsjahrModel
$this->load->model('organisation/geschaeftsjahr_model', 'GeschaeftsjahrModel');
// Load set the uid of the model to let to check the permissions
$this->GeschaeftsjahrModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getGeschaeftsjahr()
{
$geschaeftsjahrID = $this->get('geschaeftsjahr_id');
if(isset($geschaeftsjahrID))
{
$result = $this->GeschaeftsjahrModel->load($geschaeftsjahrID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postGeschaeftsjahr()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['geschaeftsjahr_id']))
{
$result = $this->GeschaeftsjahrModel->update($this->post()['geschaeftsjahr_id'], $this->post());
}
else
{
$result = $this->GeschaeftsjahrModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($geschaeftsjahr = 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 Gruppe extends APIv1_Controller
{
/**
* Gruppe API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model GruppeModel
$this->load->model('organisation/gruppe_model', 'GruppeModel');
// Load set the uid of the model to let to check the permissions
$this->GruppeModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getGruppe()
{
$gruppeID = $this->get('gruppe_id');
if(isset($gruppeID))
{
$result = $this->GruppeModel->load($gruppeID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postGruppe()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['gruppe_id']))
{
$result = $this->GruppeModel->update($this->post()['gruppe_id'], $this->post());
}
else
{
$result = $this->GruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($gruppe = 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 Lehrverband extends APIv1_Controller
{
/**
* Lehrverband API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model LehrverbandModel
$this->load->model('organisation/lehrverband_model', 'LehrverbandModel');
// Load set the uid of the model to let to check the permissions
$this->LehrverbandModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getLehrverband()
{
$lehrverbandID = $this->get('lehrverband_id');
if(isset($lehrverbandID))
{
$result = $this->LehrverbandModel->load($lehrverbandID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postLehrverband()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['lehrverband_id']))
{
$result = $this->LehrverbandModel->update($this->post()['lehrverband_id'], $this->post());
}
else
{
$result = $this->LehrverbandModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($lehrverband = 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 Organisationseinheit extends APIv1_Controller
{
/**
* Organisationseinheit API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model OrganisationseinheitModel
$this->load->model('organisation/organisationseinheit_model', 'OrganisationseinheitModel');
// Load set the uid of the model to let to check the permissions
$this->OrganisationseinheitModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getOrganisationseinheit()
{
$organisationseinheitID = $this->get('organisationseinheit_id');
if(isset($organisationseinheitID))
{
$result = $this->OrganisationseinheitModel->load($organisationseinheitID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postOrganisationseinheit()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['organisationseinheit_id']))
{
$result = $this->OrganisationseinheitModel->update($this->post()['organisationseinheit_id'], $this->post());
}
else
{
$result = $this->OrganisationseinheitModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($organisationseinheit = 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 Organisationseinheittyp extends APIv1_Controller
{
/**
* Organisationseinheittyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model OrganisationseinheittypModel
$this->load->model('organisation/organisationseinheittyp_model', 'OrganisationseinheittypModel');
// Load set the uid of the model to let to check the permissions
$this->OrganisationseinheittypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getOrganisationseinheittyp()
{
$organisationseinheittypID = $this->get('organisationseinheittyp_id');
if(isset($organisationseinheittypID))
{
$result = $this->OrganisationseinheittypModel->load($organisationseinheittypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postOrganisationseinheittyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['organisationseinheittyp_id']))
{
$result = $this->OrganisationseinheittypModel->update($this->post()['organisationseinheittyp_id'], $this->post());
}
else
{
$result = $this->OrganisationseinheittypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($organisationseinheittyp = 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 Semesterwochen extends APIv1_Controller
{
/**
* Semesterwochen API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model SemesterwochenModel
$this->load->model('organisation/semesterwochen_model', 'SemesterwochenModel');
// Load set the uid of the model to let to check the permissions
$this->SemesterwochenModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getSemesterwochen()
{
$semesterwochenID = $this->get('semesterwochen_id');
if(isset($semesterwochenID))
{
$result = $this->SemesterwochenModel->load($semesterwochenID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postSemesterwochen()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['semesterwochen_id']))
{
$result = $this->SemesterwochenModel->update($this->post()['semesterwochen_id'], $this->post());
}
else
{
$result = $this->SemesterwochenModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($semesterwochen = 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 Service extends APIv1_Controller
{
/**
* Service API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ServiceModel
$this->load->model('organisation/service_model', 'ServiceModel');
// Load set the uid of the model to let to check the permissions
$this->ServiceModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getService()
{
$serviceID = $this->get('service_id');
if(isset($serviceID))
{
$result = $this->ServiceModel->load($serviceID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postService()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['service_id']))
{
$result = $this->ServiceModel->update($this->post()['service_id'], $this->post());
}
else
{
$result = $this->ServiceModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($service = 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 Standort extends APIv1_Controller
{
/**
* Standort API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StandortModel
$this->load->model('organisation/standort_model', 'StandortModel');
// Load set the uid of the model to let to check the permissions
$this->StandortModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStandort()
{
$standortID = $this->get('standort_id');
if(isset($standortID))
{
$result = $this->StandortModel->load($standortID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStandort()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['standort_id']))
{
$result = $this->StandortModel->update($this->post()['standort_id'], $this->post());
}
else
{
$result = $this->StandortModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($standort = 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 Statistik extends APIv1_Controller
{
/**
* Statistik API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StatistikModel
$this->load->model('organisation/statistik_model', 'StatistikModel');
// Load set the uid of the model to let to check the permissions
$this->StatistikModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStatistik()
{
$statistikID = $this->get('statistik_id');
if(isset($statistikID))
{
$result = $this->StatistikModel->load($statistikID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStatistik()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['statistik_id']))
{
$result = $this->StatistikModel->update($this->post()['statistik_id'], $this->post());
}
else
{
$result = $this->StatistikModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($statistik = 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 Studiengangstyp extends APIv1_Controller
{
/**
* Studiengangstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudiengangstypModel
$this->load->model('organisation/studiengangstyp_model', 'StudiengangstypModel');
// Load set the uid of the model to let to check the permissions
$this->StudiengangstypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudiengangstyp()
{
$studiengangstypID = $this->get('studiengangstyp_id');
if(isset($studiengangstypID))
{
$result = $this->StudiengangstypModel->load($studiengangstypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudiengangstyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studiengangstyp_id']))
{
$result = $this->StudiengangstypModel->update($this->post()['studiengangstyp_id'], $this->post());
}
else
{
$result = $this->StudiengangstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studiengangstyp = 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 Studienjahr extends APIv1_Controller
{
/**
* Studienjahr API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudienjahrModel
$this->load->model('organisation/studienjahr_model', 'StudienjahrModel');
// Load set the uid of the model to let to check the permissions
$this->StudienjahrModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudienjahr()
{
$studienjahrID = $this->get('studienjahr_id');
if(isset($studienjahrID))
{
$result = $this->StudienjahrModel->load($studienjahrID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudienjahr()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studienjahr_id']))
{
$result = $this->StudienjahrModel->update($this->post()['studienjahr_id'], $this->post());
}
else
{
$result = $this->StudienjahrModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studienjahr = 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 Studienordnung extends APIv1_Controller
{
/**
* Studienordnung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudienordnungModel
$this->load->model('organisation/studienordnung_model', 'StudienordnungModel');
// Load set the uid of the model to let to check the permissions
$this->StudienordnungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudienordnung()
{
$studienordnungID = $this->get('studienordnung_id');
if(isset($studienordnungID))
{
$result = $this->StudienordnungModel->load($studienordnungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudienordnung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studienordnung_id']))
{
$result = $this->StudienordnungModel->update($this->post()['studienordnung_id'], $this->post());
}
else
{
$result = $this->StudienordnungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studienordnung = 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 Studienordnungstatus extends APIv1_Controller
{
/**
* Studienordnungstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudienordnungstatusModel
$this->load->model('organisation/studienordnungstatus_model', 'StudienordnungstatusModel');
// Load set the uid of the model to let to check the permissions
$this->StudienordnungstatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudienordnungstatus()
{
$studienordnungstatusID = $this->get('studienordnungstatus_id');
if(isset($studienordnungstatusID))
{
$result = $this->StudienordnungstatusModel->load($studienordnungstatusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudienordnungstatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studienordnungstatus_id']))
{
$result = $this->StudienordnungstatusModel->update($this->post()['studienordnungstatus_id'], $this->post());
}
else
{
$result = $this->StudienordnungstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studienordnungstatus = 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 Studienplatz extends APIv1_Controller
{
/**
* Studienplatz API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudienplatzModel
$this->load->model('organisation/studienplatz_model', 'StudienplatzModel');
// Load set the uid of the model to let to check the permissions
$this->StudienplatzModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudienplatz()
{
$studienplatzID = $this->get('studienplatz_id');
if(isset($studienplatzID))
{
$result = $this->StudienplatzModel->load($studienplatzID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudienplatz()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studienplatz_id']))
{
$result = $this->StudienplatzModel->update($this->post()['studienplatz_id'], $this->post());
}
else
{
$result = $this->StudienplatzModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studienplatz = 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 Studiensemester extends APIv1_Controller
{
/**
* Studiensemester API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model StudiensemesterModel
$this->load->model('organisation/studiensemester_model', 'StudiensemesterModel');
// Load set the uid of the model to let to check the permissions
$this->StudiensemesterModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getStudiensemester()
{
$studiensemesterID = $this->get('studiensemester_id');
if(isset($studiensemesterID))
{
$result = $this->StudiensemesterModel->load($studiensemesterID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postStudiensemester()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['studiensemester_id']))
{
$result = $this->StudiensemesterModel->update($this->post()['studiensemester_id'], $this->post());
}
else
{
$result = $this->StudiensemesterModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($studiensemester = 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 Bankverbindung extends APIv1_Controller
{
/**
* Bankverbindung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BankverbindungModel
$this->load->model('person/bankverbindung_model', 'BankverbindungModel');
// Load set the uid of the model to let to check the permissions
$this->BankverbindungModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBankverbindung()
{
$bankverbindungID = $this->get('bankverbindung_id');
if(isset($bankverbindungID))
{
$result = $this->BankverbindungModel->load($bankverbindungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBankverbindung()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['bankverbindung_id']))
{
$result = $this->BankverbindungModel->update($this->post()['bankverbindung_id'], $this->post());
}
else
{
$result = $this->BankverbindungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bankverbindung = 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 Benutzer extends APIv1_Controller
{
/**
* Benutzer API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BenutzerModel
$this->load->model('person/benutzer_model', 'BenutzerModel');
// Load set the uid of the model to let to check the permissions
$this->BenutzerModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBenutzer()
{
$benutzerID = $this->get('benutzer_id');
if(isset($benutzerID))
{
$result = $this->BenutzerModel->load($benutzerID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBenutzer()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['benutzer_id']))
{
$result = $this->BenutzerModel->update($this->post()['benutzer_id'], $this->post());
}
else
{
$result = $this->BenutzerModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($benutzer = 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 Benutzerfunktion extends APIv1_Controller
{
/**
* Benutzerfunktion API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BenutzerfunktionModel
$this->load->model('person/benutzerfunktion_model', 'BenutzerfunktionModel');
// Load set the uid of the model to let to check the permissions
$this->BenutzerfunktionModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBenutzerfunktion()
{
$benutzerfunktionID = $this->get('benutzerfunktion_id');
if(isset($benutzerfunktionID))
{
$result = $this->BenutzerfunktionModel->load($benutzerfunktionID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBenutzerfunktion()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['benutzerfunktion_id']))
{
$result = $this->BenutzerfunktionModel->update($this->post()['benutzerfunktion_id'], $this->post());
}
else
{
$result = $this->BenutzerfunktionModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($benutzerfunktion = 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 Benutzergruppe extends APIv1_Controller
{
/**
* Benutzergruppe API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BenutzergruppeModel
$this->load->model('person/benutzergruppe_model', 'BenutzergruppeModel');
// Load set the uid of the model to let to check the permissions
$this->BenutzergruppeModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getBenutzergruppe()
{
$benutzergruppeID = $this->get('benutzergruppe_id');
if(isset($benutzergruppeID))
{
$result = $this->BenutzergruppeModel->load($benutzergruppeID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBenutzergruppe()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['benutzergruppe_id']))
{
$result = $this->BenutzergruppeModel->update($this->post()['benutzergruppe_id'], $this->post());
}
else
{
$result = $this->BenutzergruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($benutzergruppe = 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 Fotostatus extends APIv1_Controller
{
/**
* Fotostatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FotostatusModel
$this->load->model('person/fotostatus_model', 'FotostatusModel');
// Load set the uid of the model to let to check the permissions
$this->FotostatusModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getFotostatus()
{
$fotostatusID = $this->get('fotostatus_id');
if(isset($fotostatusID))
{
$result = $this->FotostatusModel->load($fotostatusID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postFotostatus()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['fotostatus_id']))
{
$result = $this->FotostatusModel->update($this->post()['fotostatus_id'], $this->post());
}
else
{
$result = $this->FotostatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($fotostatus = 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 Freebusy extends APIv1_Controller
{
/**
* Freebusy API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FreebusyModel
$this->load->model('person/freebusy_model', 'FreebusyModel');
// Load set the uid of the model to let to check the permissions
$this->FreebusyModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getFreebusy()
{
$freebusyID = $this->get('freebusy_id');
if(isset($freebusyID))
{
$result = $this->FreebusyModel->load($freebusyID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postFreebusy()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['freebusy_id']))
{
$result = $this->FreebusyModel->update($this->post()['freebusy_id'], $this->post());
}
else
{
$result = $this->FreebusyModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($freebusy = 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 Freebusytyp extends APIv1_Controller
{
/**
* Freebusytyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FreebusytypModel
$this->load->model('person/freebusytyp_model', 'FreebusytypModel');
// Load set the uid of the model to let to check the permissions
$this->FreebusytypModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getFreebusytyp()
{
$freebusytypID = $this->get('freebusytyp_id');
if(isset($freebusytypID))
{
$result = $this->FreebusytypModel->load($freebusytypID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postFreebusytyp()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['freebusytyp_id']))
{
$result = $this->FreebusytypModel->update($this->post()['freebusytyp_id'], $this->post());
}
else
{
$result = $this->FreebusytypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($freebusytyp = 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 Kontaktmedium extends APIv1_Controller
{
/**
* Kontaktmedium API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KontaktmediumModel
$this->load->model('person/kontaktmedium_model', 'KontaktmediumModel');
// Load set the uid of the model to let to check the permissions
$this->KontaktmediumModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getKontaktmedium()
{
$kontaktmediumID = $this->get('kontaktmedium_id');
if(isset($kontaktmediumID))
{
$result = $this->KontaktmediumModel->load($kontaktmediumID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKontaktmedium()
{
if($this->_validate($this->post()))
{
if(isset($this->post()['kontaktmedium_id']))
{
$result = $this->KontaktmediumModel->update($this->post()['kontaktmedium_id'], $this->post());
}
else
{
$result = $this->KontaktmediumModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($kontaktmedium = NULL)
{
return true;
}
}

Some files were not shown because too many files have changed in this diff Show More