Conflicts:
	ci_hack.php
This commit is contained in:
nscbrandb
2016-05-23 11:35:23 +02:00
341 changed files with 19601 additions and 4964 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ documents/
.settings
.project
.buildpath
application/config/development/
tests/codeception/codeception.yml
tests/codeception/tests/api.suite.yml
tests/codeception/tests/functional.suite.yml
@@ -19,4 +20,4 @@ tests/codeception/_output/*
/submodules/d3
composer.lock
bin
/tests/codeception/api.suite.yml
/tests/codeception/api.suite.yml
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
+3 -3
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
@@ -17,7 +17,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| environments.
|
*/
$config['base_url'] = 'http://localhost/fhcomplete/';
$config['base_url'] = 'http://phpci.fhcomplete.org/build/fhcomplete/';
/*
|--------------------------------------------------------------------------
@@ -207,7 +207,7 @@ $config['directory_trigger'] = 'd';
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
$config['log_threshold'] = 4;
/*
|--------------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
defined('DB_HOST') OR require_once './config/system.config.inc.php'; // For CLI-Migrations
/*
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
+219 -9
View File
@@ -6,17 +6,227 @@ $config['fhc_version'] = '3.2';
$config['fhc_acl'] = array
(
'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',
'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',
'public.tbl_person' => 'basis/person',
'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_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_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_prestudent' => 'basis/person',
'public.tbl_prestudentstatus' => 'basis/person',
'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_sprache' => 'admin'
'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',
'lehre.vw_studienplan' => 'basis/studienplan',
'public.tbl_sprache' => 'admin',
'public.tbl_msg_thread' => 'admin',
'public.tbl_msg_message' => 'admin'
);
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
+3 -3
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
@@ -23,7 +23,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 008;
$config['migration_version'] = 007;
/*
|--------------------------------------------------------------------------
@@ -55,7 +55,7 @@ $config['migration_type'] = 'sequential';
| will migrate up. This must be set.
|
*/
$config['migration_table'] = 'ci_migrations';
$config['migration_table'] = 'system.ci_migrations';
/*
|--------------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
+9 -3
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
@@ -49,8 +49,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['person/(:any)'] = 'person/view/$1';
$route['person'] = 'person';
$route['default_controller'] = 'Vilesci';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
// Class name conflicts
$route['api/v1/organisation/studiengang/(:any)'] = 'api/v1/organisation/studiengang2/$1';
$route['api/v1/ressource/betriebsmittelperson/(:any)'] = 'api/v1/ressource/betriebsmittelperson2/$1';
$route['api/v1/organisation/fachbereich/(:any)'] = 'api/v1/organisation/fachbereich2/$1';
$route['api/v1/organisation/geschaeftsjahr/(:any)'] = 'api/v1/organisation/geschaeftsjahr2/$1';
$route['api/v1/organisation/organisationseinheit/(:any)'] = 'api/v1/organisation/organisationseinheit2/$1';
$route['api/v1/system/sprache/(:any)'] = 'api/v1/system/sprache2/$1';
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
+2 -1
View File
@@ -48,6 +48,7 @@ class DBTools extends FHC_Controller
if (ENVIRONMENT !== 'development')
exit('Wowsers! You don\'t want to do that!');
$this->load->database('system'); //Use the system-Connection for DB-Manipulation
$this->config->load('migration');
$this->load->library('migration');
// If not set, set it
@@ -301,7 +302,7 @@ class DBTools extends FHC_Controller
*/
private function __getVersion()
{
$row = $this->db->get('ci_migrations')->row();
$row = $this->db->get($this->config->item('migration_table'))->row();
return $row ? $row->version : 0;
}
}
+3 -3
View File
@@ -189,7 +189,7 @@ class Examples extends CI_Controller
$output = $crud->render();
if($crud->getState() != 'list') {
if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
@@ -214,7 +214,7 @@ class Examples extends CI_Controller
$output = $crud->render();
if($crud->getState() != 'list') {
if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
@@ -237,7 +237,7 @@ class Examples extends CI_Controller
$output = $crud->render();
if($crud->getState() != 'list') {
if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
+4 -4
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class ModelTest extends FHC_Controller
{
@@ -28,7 +28,7 @@ class ModelTest extends FHC_Controller
$res = $this->Person_model->getPerson(null, 'asdf\' OR person_id=1; SELECT 1; --');
var_dump($res->result_object());
$this->load->model('person/Prestudent_model');
$this->load->model('crm/Prestudent_model');
$id=null;
// Insert PreStudent
@@ -79,7 +79,7 @@ class ModelTest extends FHC_Controller
var_dump($res->retval);
// Insert PreStudentStatus
$this->load->model('person/Prestudentstatus_model');
$this->load->model('crm/Prestudentstatus_model');
$data = array
(
'prestudent_id' => $id,
@@ -155,7 +155,7 @@ class ModelTest extends FHC_Controller
else
var_dump($res->retval);
$this->load->model('core/Sprache_model');
$this->load->model('system/Sprache_model');
// Insert Sprache
$data = array
(
+1 -1
View File
@@ -21,7 +21,7 @@
* @return some value on success.
*/
defined('BASEPATH') || exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @class Rest_server
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class Vilesci extends FHC_Controller
{
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
-45
View File
@@ -1,45 +0,0 @@
<?php
if(!defined('BASEPATH')) exit('No direct script access allowed');
class File extends APIv1_Controller
{
/**
* Person API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model FileModel
$this->load->model('file_model', 'FileModel');
// Load set the uid of the model to let to check the permissions
$this->FileModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function postFile()
{
$result = $this->FileModel->saveFile($this->post());
if($result === TRUE)
{
$httpstatus = REST_Controller::HTTP_OK;
$payload = [
'success' => true,
'message' => 'File saved.'
];
$payload['data'] = $result;
}
else
{
$payload = [
'success' => false,
'message' => 'Could not save file.'
];
$httpstatus = REST_Controller::HTTP_OK;
}
$this->response($payload, $httpstatus);
}
}
@@ -1,80 +0,0 @@
<?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
*/
// ------------------------------------------------------------------------
defined('BASEPATH') || exit('No direct script access allowed');
class Kontakt extends APIv1_Controller
{
//public $session;
/**
* Person API constructor.
*/
public function __construct()
{
parent::__construct();
$this->load->model('kontakt/Kontakt_model');
}
public function kontaktPerson_get()
{
$result = $this->Kontakt_model->getKontaktPerson($this->get("person_id"));
if($result != FALSE)
{
$httpstatus = REST_Controller::HTTP_OK;
$payload = [
'success' => true,
'message' => 'Kontakt found.'
];
$payload['data'] = $result;
}
else
{
$payload = [
'success' => false,
'message' => 'Could not find Kontakt.'
];
$httpstatus = REST_Controller::HTTP_OK;
}
$this->response($payload, $httpstatus);
}
public function kontakt_post()
{
$result = $this->Kontakt_model->saveKontakt($this->post());
if($result != FALSE)
{
$httpstatus = REST_Controller::HTTP_OK;
$payload = [
'success' => true,
'message' => 'Kontakt saved.'
];
$payload['data'] = $result;
}
else
{
$payload = [
'success' => false,
'message' => 'Could not save Kontakt.'
];
$httpstatus = REST_Controller::HTTP_OK;
}
$this->response($payload, $httpstatus);
}
}
+1 -1
View File
@@ -14,7 +14,7 @@
// ------------------------------------------------------------------------
defined('BASEPATH') OR exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH . '/libraries/REST_Controller.php';
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
if (! defined('BASEPATH')) exit('No direct script access allowed');
//require_once APPPATH . '/libraries/REST_Controller.php';
@@ -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,79 @@
<?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()
{
$bestelldetail_id = $this->get('bestelldetail_id');
$tag = $this->get('tag');
if (isset($bestelldetail_id) && isset($tag))
{
$result = $this->BestelldetailtagModel->load(array($bestelldetail_id, $tag));
$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()
{
$bestellstatus_kurzbz = $this->get('bestellstatus_kurzbz');
if (isset($bestellstatus_kurzbz))
{
$result = $this->BestellstatusModel->load($bestellstatus_kurzbz);
$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_kurzbz']))
{
$result = $this->BestellstatusModel->update($this->post()['bestellstatus_kurzbz'], $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,79 @@
<?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()
{
$bestellung_id = $this->get('bestellung_id');
$tag = $this->get('tag');
if (isset($bestellung_id) && isset($tag))
{
$result = $this->BestellungtagModel->load(array($bestellung_id, $tag));
$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()
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
$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_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $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,79 @@
<?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()
{
$kostenstelle_id = $this->get('kostenstelle_id');
$geschaeftsjahr_kurzbz = $this->get('geschaeftsjahr_kurzbz');
if (isset($kostenstelle_id) && isset($geschaeftsjahr_kurzbz))
{
$result = $this->BudgetModel->load(array($kostenstelle_id, $geschaeftsjahr_kurzbz));
$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']) && isset($this->post()['geschaeftsjahr_kurzbz']))
{
$result = $this->BudgetModel->update(array($this->post()['budget_id'], $this->post()['geschaeftsjahr_kurzbz']), $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()
{
$rechnungstyp_kurzbz = $this->get('rechnungstyp_kurzbz');
if (isset($rechnungstyp_kurzbz))
{
$result = $this->RechnungstypModel->load($rechnungstyp_kurzbz);
$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_kurzbz']))
{
$result = $this->RechnungstypModel->update($this->post()['rechnungstyp_kurzbz'], $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()
{
$vertragsstatus_kurzbz = $this->get('vertragsstatus_kurzbz');
if (isset($vertragsstatus_kurzbz))
{
$result = $this->VertragsstatusModel->load($vertragsstatus_kurzbz);
$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_kurzbz']))
{
$result = $this->VertragsstatusModel->update($this->post()['vertragsstatus_kurzbz'], $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()
{
$vertragstyp_kurzbz = $this->get('vertragstyp_kurzbz');
if (isset($vertragstyp_kurzbz))
{
$result = $this->VertragstypModel->load($vertragstyp_kurzbz);
$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_kurzbz']))
{
$result = $this->VertragstypModel->update($this->post()['vertragstyp_kurzbz'], $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()
{
$zahlungstyp_kurzbz = $this->get('zahlungstyp_kurzbz');
if (isset($zahlungstyp_kurzbz))
{
$result = $this->ZahlungstypModel->load($zahlungstyp_kurzbz);
$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_kurzbz']))
{
$result = $this->ZahlungstypModel->update($this->post()['zahlungstyp_kurzbz'], $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()
{
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
if (isset($aufmerksamdurch_kurzbz))
{
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
$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_kurzbz']))
{
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_kurzbz'], $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()
{
$ausbildungcode = $this->get('ausbildungcode');
if (isset($ausbildungcode))
{
$result = $this->AusbildungModel->load($ausbildungcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAusbildung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['ausbildungcode']))
{
$result = $this->AusbildungModel->update($this->post()['ausbildungcode'], $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()
{
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
if (isset($berufstaetigkeit_code))
{
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
$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_code']))
{
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_code'], $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()
{
$beschausmasscode = $this->get('beschausmasscode');
if (isset($beschausmasscode))
{
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBeschaeftigungsausmass()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['beschausmasscode']))
{
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschausmasscode'], $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()
{
$besqualcode = $this->get('besqualcode');
if (isset($besqualcode))
{
$result = $this->BesqualModel->load($besqualcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBesqual()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['besqualcode']))
{
$result = $this->BesqualModel->update($this->post()['besqualcode'], $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,79 @@
<?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()
{
$studiengang_kz = $this->get('studiengang_kz');
$bisverwendung_id = $this->get('bisverwendung_id');
if (isset($studiengang_kz) && isset($bisverwendung_id))
{
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBisfunktion()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['studiengang_kz']) && isset($this->post()['bisverwendung_id']))
{
$result = $this->BisfunktionModel->update(array($this->post()['studiengang_kz'], $this->post()['bisverwendung_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()
{
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
if (isset($bisorgform_kurzbz))
{
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
$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_kurzbz']))
{
$result = $this->BisorgformModel->update($this->post()['bisorgform_kurzbz'], $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;
}
}
@@ -11,9 +11,10 @@
* @filesource
*/
// ------------------------------------------------------------------------
if(!defined('BASEPATH')) exit('No direct script access allowed');
class Studiengang extends APIv1_Controller
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bundesland extends APIv1_Controller
{
/**
* Course API constructor.
@@ -22,14 +23,14 @@ class Studiengang extends APIv1_Controller
{
parent::__construct();
// Load model PersonModel
$this->load->model('organisation/studiengang_model', 'StudiengangModel');
$this->load->model('codex/bundesland_model', 'BundeslandModel');
// Load set the uid of the model to let to check the permissions
$this->StudiengangModel->setUID($this->_getUID());
$this->BundeslandModel->setUID($this->_getUID());
}
public function getAllForBewerbung()
public function getAll()
{
$result = $this->StudiengangModel->getAllForBewerbung();
$result = $this->BundeslandModel->loadWhole();
$this->response($result, REST_Controller::HTTP_OK);
}
@@ -0,0 +1,79 @@
<?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()
{
$studiengang_kz = $this->get('studiengang_kz');
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
if (isset($studiengang_kz) && isset($mitarbeiter_uid))
{
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postEntwicklungsteam()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['studiengang_kz']) && isset($this->post()['mitarbeiter_uid']))
{
$result = $this->EntwicklungsteamModel->update(array($this->post()['entwicklungsteam_id'], $this->post()['mitarbeiter_uid']), $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()
{
$hauptberufcode = $this->get('hauptberufcode');
if (isset($hauptberufcode))
{
$result = $this->HauptberufModel->load($hauptberufcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postHauptberuf()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['hauptberufcode']))
{
$result = $this->HauptberufModel->update($this->post()['hauptberufcode'], $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()
{
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
if (isset($lehrform_kurzbz))
{
$result = $this->LehrformModel->load($lehrform_kurzbz);
$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_kurzbz']))
{
$result = $this->LehrformModel->update($this->post()['lehrform_kurzbz'], $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()
{
$lgartcode = $this->get('lgartcode');
if (isset($lgartcode))
{
$result = $this->LgartcodeModel->load($lgartcode);
$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']))
{
$result = $this->LgartcodeModel->update($this->post()['lgartcode'], $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()
{
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
if (isset($mobilitaetsprogramm_code))
{
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
$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_code']))
{
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_code'], $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;
}
}
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
if(!defined('BASEPATH')) exit('No direct script access allowed');
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Nation extends APIv1_Controller
{
@@ -30,7 +30,7 @@ class Nation extends APIv1_Controller
public function getAll()
{
if(!$this->get('orderEnglish'))
if (!$this->get('orderEnglish'))
{
$result = $this->NationModel->addOrder('kurztext');
}
@@ -39,9 +39,9 @@ class Nation extends APIv1_Controller
$result = $this->NationModel->addOrder('engltext');
}
if($result->error == EXIT_SUCCESS)
if ($result->error == EXIT_SUCCESS)
{
if($this->get('ohnesperre'))
if ($this->get('ohnesperre'))
{
$result = $this->NationModel->loadWhere('sperre IS NULL');
}
@@ -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()
{
$note = $this->get('note');
if (isset($note))
{
$result = $this->NoteModel->load($note);
$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']))
{
$result = $this->NoteModel->update($this->post()['note'], $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()
{
$orgform_kurzbz = $this->get('orgform_kurzbz');
if (isset($orgform_kurzbz))
{
$result = $this->OrgformModel->load($orgform_kurzbz);
$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_kurzbz']))
{
$result = $this->OrgformModel->update($this->post()['orgform_kurzbz'], $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()
{
$verwendung_code = $this->get('verwendung_code');
if (isset($verwendung_code))
{
$result = $this->VerwendungModel->load($verwendung_code);
$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_code']))
{
$result = $this->VerwendungModel->update($this->post()['verwendung_code'], $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()
{
$zgv_code = $this->get('zgv_code');
if (isset($zgv_code))
{
$result = $this->ZgvModel->load($zgv_code);
$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_code']))
{
$result = $this->ZgvModel->update($this->post()['zgv_code'], $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()
{
$zgvdoktor_code = $this->get('zgvdoktor_code');
if (isset($zgvdoktor_code))
{
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
$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_code']))
{
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_code'], $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()
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
if (isset($gruppe_kurzbz))
{
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
$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()
{
$zgvmas_code = $this->get('zgvmas_code');
if (isset($zgvmas_code))
{
$result = $this->ZgvmasterModel->load($zgvmas_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZgvmaster()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zgvmas_code']))
{
$result = $this->ZgvmasterModel->update($this->post()['zgvmas_code'], $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()
{
$zweck_code = $this->get('zweck_code');
if (isset($zweck_code))
{
$result = $this->ZweckModel->load($zweck_code);
$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_code']))
{
$result = $this->ZweckModel->update($this->post()['zweck_code'], $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,79 @@
<?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()
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
$content_id = $this->get('content_id');
if (isset($gruppe_kurzbz) && isset($content_id))
{
$result = $this->ContentgruppeModel->load(array($gruppe_kurzbz, $content_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentgruppe()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['gruppe_kurzbz']) && isset($this->post()['content_id']))
{
$result = $this->ContentgruppeModel->update(array($this->post()['gruppe_kurzbz'], $this->post()['content_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,98 @@
<?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();
}
}
/**
*
*/
public function postDms()
{
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($dms = 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 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()
{
$template_kurzbz = $this->get('template_kurzbz');
if (isset($template_kurzbz))
{
$result = $this->TemplateModel->load($template_kurzbz);
$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_kurzbz']))
{
$result = $this->TemplateModel->update($this->post()['template_kurzbz'], $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()
{
$veranstaltungskategorie_kurzbz = $this->get('veranstaltungskategorie_kurzbz');
if (isset($veranstaltungskategorie_kurzbz))
{
$result = $this->VeranstaltungskategorieModel->load($veranstaltungskategorie_kurzbz);
$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_kurzbz']))
{
$result = $this->VeranstaltungskategorieModel->update($this->post()['veranstaltungskategorie_kurzbz'], $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()
{
$aufnahmeschluessel = $this->get('aufnahmeschluessel');
if (isset($aufnahmeschluessel))
{
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluessel);
$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']))
{
$result = $this->AufnahmeschluesselModel->update($this->post()['aufnahmeschluessel'], $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()
{
$aufnahmetermintyp_kurzbz = $this->get('aufnahmetermintyp_kurzbz');
if (isset($aufnahmetermintyp_kurzbz))
{
$result = $this->AufnahmetermintypModel->load($aufnahmetermintyp_kurzbz);
$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_kurzbz']))
{
$result = $this->AufnahmetermintypModel->update($this->post()['aufnahmetermintyp_kurzbz'], $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()
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
$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_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $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()
{
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($dokument_kurzbz))
{
$result = $this->DokumentModel->load($dokument_kurzbz);
$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_kurzbz']))
{
$result = $this->DokumentModel->update($this->post()['dokument_kurzbz'], $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,79 @@
<?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()
{
$prestudent_id = $this->get('prestudent_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($prestudent_id) && isset($dokument_kurzbz))
{
$result = $this->DokumentprestudentModel->load(array($prestudent_id, $dokument_kurzbz));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokumentprestudent()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['prestudent_id']) && isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentprestudentModel->update(array($this->post()['prestudent_id'], $this->post()['dokument_kurzbz']), $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,79 @@
<?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()
{
$studiengang_kz = $this->get('studiengang_kz');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($studiengang_kz) && isset($dokument_kurzbz))
{
$result = $this->DokumentstudiengangModel->load(array($studiengang_kz, $dokument_kurzbz));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokumentstudiengang()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['studiengang_kz']) && isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentstudiengangModel->update(array($this->post()['studiengang_kz'], $this->post()['dokument_kurzbz']), $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()
{
$buchungsnr = $this->get('buchungsnr');
if (isset($buchungsnr))
{
$result = $this->KontoModel->load($buchungsnr);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKonto()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['buchungsnr']))
{
$result = $this->KontoModel->update($this->post()['buchungsnr'], $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,109 @@
<?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 Preinteressent extends APIv1_Controller
{
/**
* Person API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PersonModel
$this->load->model('crm/preinteressent_model', 'PreinteressentModel');
// Load set the uid of the model to let to check the permissions
$this->PreinteressentModel->setUID($this->_getUID());
}
/**
* @return void
*/
public function getPreinteressent()
{
$preinteressent_id = $this->get('preinteressent_id');
if (isset($preinteressent_id))
{
$result = $this->PreinteressentModel->load($preinteressent_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function getPreinteressentByPersonID()
{
$person_id = $this->get('person_id');
if (isset($person_id))
{
$result = $this->PreinteressentModel->load(array('person_id' => $person_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPreinteressent()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['preinteressent_id']))
{
$result = $this->PreinteressentModel->update($this->post()['preinteressent_id'], $this->post());
}
else
{
$result = $this->PreinteressentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($preinteressent)
{
if ($preinteressent['person_id'] == '')
{
//$this->errormsg = 'Person_id muss angegeben werden';
return false;
}
if ($preinteressent['aufmerksamdurch_kurzbz'] == '')
{
//$this->errormsg = 'Aufmerksamdurch muss angegeben werden';
return false;
}
return true;
}
}
@@ -0,0 +1,79 @@
<?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()
{
$preinteressent_id = $this->get('preinteressent_id');
$studiengang_kz = $this->get('studiengang_kz');
if (isset($preinteressent_id) && isset($studiengang_kz))
{
$result = $this->PreinteressentstudiengangModel->load(array($preinteressent_id, $studiengang_kz));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPreinteressentstudiengang()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['preinteressent_id']) && isset($this->post()['studiengang_kz']))
{
$result = $this->PreinteressentstudiengangModel->update(array($this->post()['preinteressent_id'], $this->post()['studiengang_kz']), $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,97 @@
<?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 getPrestudentByPersonID()
{
$person_id = $this->get('person_id');
if (isset($person_id))
{
$result = $this->PrestudentModel->load(array('person_id' => $person_id));
$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,92 @@
<?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()
{
$ausbildungssemester = $this->get('ausbildungssemester');
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
$status_kurzbz = $this->get('status_kurzbz');
$prestudent_id = $this->get('prestudent_id');
if (isset($ausbildungssemester) && isset($studiensemester_kurzbz) && isset($status_kurzbz) && isset($prestudent_id))
{
$result = $this->PrestudentstatusModel->load(array($ausbildungssemester, $studiensemester_kurzbz, $status_kurzbz, $prestudent_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postPrestudentstatus()
{
$prestudentstatus = $this->_parseData($this->post());
$this->response($prestudentstatus);
if ($this->_validate($prestudentstatus))
{
if (isset($prestudentstatus['ausbildungssemester']) && isset($prestudentstatus['studiensemester_kurzbz']) &&
isset($prestudentstatus['status_kurzbz']) && isset($prestudentstatus['prestudent_id']))
{
$pksArray = array($prestudentstatus['ausbildungssemester'],
$prestudentstatus['studiensemester_kurzbz'],
$prestudentstatus['status_kurzbz'],
$prestudentstatus['prestudent_id']
);
$result = $this->PrestudentstatusModel->update($pksArray, $prestudentstatus);
}
else
{
$result = $this->PrestudentstatusModel->insert($prestudentstatus);
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($prestudentstatus = NULL)
{
return true;
}
}

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