Merge remote-tracking branch 'origin/master'

This commit is contained in:
Manfred Kindl
2018-07-17 11:25:16 +02:00
316 changed files with 4012 additions and 3251 deletions
+2 -246
View File
@@ -2,252 +2,8 @@
if (! defined('BASEPATH')) exit('No direct script access allowed');
$config['fhc_version'] = '3.2';
$config['fhc_version'] = '3.3';
$config['fhc_acl'] = array
(
'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',
'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_dms_version' => 'basis/dms_version',
'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_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_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' => 'lehre/studienordnung',
'lehre.tbl_studienordnungstatus' => 'lehre/studienordnungstatus',
'lehre.tbl_studienplan' => 'lehre/studienplan',
'lehre.tbl_studienplatz' => 'basis/studienplatz',
'lehre.tbl_studienplan_semester' => 'lehre/studienplan_semester',
'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_zeugnis' => 'basis/zeugnis',
'lehre.tbl_zeugnisnote' => 'basis/zeugnisnote',
'lehre.vw_studienplan' => 'lehre/studienplan',
'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_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_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/message',
'public.tbl_msg_recipient' => 'basis/message',
'public.tbl_msg_status' => 'basis/message',
'public.tbl_msg_attachment' => 'basis/message',
'public.tbl_notiz' => 'basis/notiz',
'public.tbl_notizzuordnung' => 'basis/notizzuordnung',
'public.tbl_organisationseinheit' => 'basis/organisationseinheit',
'public.tbl_organisationseinheittyp' => 'basis/organisationseinheittyp',
'public.tbl_ort' => 'basis/ort',
'public.tbl_ortraumtyp' => 'basis/ortraumtyp',
'public.tbl_person' => 'basis/person',
'public.tbl_personfunktionstandort' => 'basis/personfunktionstandort',
'public.tbl_preincoming' => 'basis/preincoming',
'public.tbl_preinteressent' => 'basis/preinteressent',
'public.tbl_preinteressentstudiengang' => 'basis/preinteressentstudiengang',
'public.tbl_preoutgoing' => 'basis/preoutgoing',
'public.tbl_prestudent' => 'basis/prestudent',
'public.tbl_prestudentstatus' => 'basis/prestudentstatus',
'public.tbl_raumtyp' => 'basis/raumtyp',
'public.tbl_reihungstest' => 'basis/reihungstest',
'public.tbl_semesterwochen' => 'basis/semesterwochen',
'public.tbl_service' => 'basis/service',
'public.tbl_sprache' => 'basis/sprache',
'public.tbl_standort' => 'basis/standort',
'public.tbl_statistik' => 'basis/statistik',
'public.tbl_status' => 'basis/status',
'public.tbl_status_grund' => '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' => 'system/vorlage',
'public.tbl_vorlagedokument' => 'system/vorlagestudiengang',
'public.tbl_vorlagestudiengang' => 'system/vorlagestudiengang',
'public.tbl_rt_person' => 'basis/person',
'public.vw_studiensemester' => 'basis/studiensemester',
'system.tbl_app' => 'system/app',
'system.tbl_appdaten' => 'system/appdaten',
'system.tbl_benutzerrolle' => 'basis/benutzerrolle',
'system.tbl_berechtigung' => 'basis/berechtigung',
'system.tbl_filters' => 'system/filters',
'system.tbl_cronjob' => 'basis/cronjob',
'system.tbl_phrase' => 'system/phrase',
'system.tbl_phrasentext' => 'system/phrase',
'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',
'system.tbl_udf' => 'system/udf',
'system.tbl_extensions' => 'system/extensions',
'system.tbl_log' => 'basis/log',
'system.tbl_person_lock' => 'system/personlock',
'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',
// Temporary
'extension.tbl_budget_antrag' => 'basis/kostenstelle',
'extension.tbl_budget_position' => 'basis/kostenstelle',
'extension.tbl_budget_status' => 'basis/kostenstelle',
'extension.tbl_budget_antrag_status' => 'basis/kostenstelle',
'extension.tbl_dsms_anonymisierung' => 'dsms/export',
DMS_PATH => 'fs/dms',
'PhrasesLib.getPhrase' => 'system/PhrasesLib'
);
//
$config['addons_aufnahme_url'] = array();
$config['addons_aufnahme_url']['fallback'] = 'https://localhost/fhcomplete/index.ci.php/ViewMessage/writeReply/';
$config['addons_aufnahme_url']['OE_ROOT'] = 'https://SERVER-NAME/addons/aufnahme/OE_ROOT/cis/index.php';
+5 -3
View File
@@ -7,9 +7,11 @@ $config['send_immediately'] = false;
$config['msg_delivery'] = true; // Default true
$config['system_person_id'] = 1; // Dummy sender, used for sending messages from the system
$config['redirect_view_message_url'] = site_url('Redirect/redirectByToken/'); //
$config['message_html_view_url'] = site_url('ViewMessage/toHTML/');
$config['message_server'] = 'http://www.fhcomplete.org/';
$config['redirect_view_message_url'] = '/Redirect/redirectByToken/';
$config['message_html_view_url'] = '/ViewMessage/toHTML/';
// Change this to CIS Server (https://cis.example.com/index.ci.php) if you are sending Messages from Vilesci
$config['message_server'] = site_url();
$config['assistent_function'] = 'ass';
define('EMAIL_KONTAKT_TYPE', 'email'); // Email kontakt type
+8 -4
View File
@@ -15,7 +15,8 @@ $config['navigation_header'] = array(
'link' => base_url('vilesci'),
'icon' => '',
'description' => 'Vilesci',
'sort' => 2
'sort' => 2,
'requiredPermissions' => 'basis/vilesci:r'
),
'cis' => array(
'link' => CIS_ROOT,
@@ -57,7 +58,8 @@ $config['navigation_menu']['Vilesci/index'] = array(
'icon' => 'info',
'description' => 'Infocenter',
'expand' => true,
'sort' => 2
'sort' => 2,
'requiredPermissions' => 'infocenter:r'
),
)
),
@@ -73,14 +75,16 @@ $config['navigation_menu']['Vilesci/index'] = array(
'icon' => '',
'description' => 'Vilesci',
'expand' => true,
'sort' => 1
'sort' => 1,
'requiredPermissions' => 'basis/vilesci:r'
),
'extensions' => array(
'link' => site_url('system/extensions/Manager'),
'icon' => 'cubes',
'description' => 'Extensions Manager',
'expand' => true,
'sort' => 2
'sort' => 2,
'requiredPermissions' => 'admin:r'
)
)
)
+3 -2
View File
@@ -8,7 +8,7 @@ if (! defined('BASEPATH'))
*
*/
class DBTools extends FHC_Controller
class DBTools extends Auth_Controller
{
private $cli = false;
/**
@@ -32,7 +32,8 @@ class DBTools extends FHC_Controller
*/
public function __construct()
{
parent::__construct();
// An empty array as parameter will ensure that this controller is ONLY callable from command line
parent::__construct(array());
$this->seed_path = APPPATH.'seeds/';
+3 -2
View File
@@ -14,14 +14,15 @@
if (!defined("BASEPATH")) exit("No direct script access allowed");
class MailJob extends FHC_Controller
class MailJob extends Auth_Controller
{
/**
* API constructor
*/
public function __construct()
{
parent::__construct();
// An empty array as parameter will ensure that this controller is ONLY callable from command line
parent::__construct(array());
// Loads MessageLib
$this->load->library('MessageLib');
+13 -3
View File
@@ -23,9 +23,6 @@ class Redirect extends FHC_Controller
{
parent::__construct();
// Loads config file fhcomplete
$this->config->load('fhcomplete');
// Loads model MessageTokenModel
$this->load->model('system/MessageToken_model', 'MessageTokenModel');
}
@@ -62,6 +59,8 @@ class Redirect extends FHC_Controller
}
$addonAufnahmeUrls = $this->config->item('addons_aufnahme_url');
if(!isset($addonAufnahmeUrls[$organisationRoot]))
$organisationRoot = 'fallback';
if (isset($token)
&& hasData($msg)
@@ -72,5 +71,16 @@ class Redirect extends FHC_Controller
redirect($addonAufnahmeUrls[$organisationRoot] . '?token=' . $token);
}
}
else
{
$addonAufnahmeUrls = $this->config->item('addons_aufnahme_url');
if (isset($token)
&& hasData($msg)
&& is_array($addonAufnahmeUrls)
&& isset($addonAufnahmeUrls['fallback']))
{
redirect($addonAufnahmeUrls['fallback'] . '?token=' . $token);
}
}
}
}
+129 -2
View File
@@ -15,10 +15,11 @@
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Handles sending messages with token
* NOTE: in this controller is not possible to include/call everything
* that automatically call the authentication system, like the most of models or libraries
*/
class ViewMessage extends CI_Controller
class ViewMessage extends FHC_Controller
{
/**
* API constructor
@@ -68,7 +69,7 @@ class ViewMessage extends CI_Controller
}
if($this->config->item('redirect_view_message_url') != '')
$href = APP_ROOT . $this->config->item('redirect_view_message_url') . $token;
$href = $this->config->item('message_server').$this->config->item('redirect_view_message_url').$token;
else
$href = '';
@@ -83,4 +84,130 @@ class ViewMessage extends CI_Controller
$this->load->view('system/messageHTML.php', $data);
}
}
/**
* write the reply
*/
public function writeReply()
{
$token = $this->input->get('token');
if (isEmptyString($token))
{
show_error('no token supplied');
}
$msg = null;
// Get message data if possible
$msg = $this->MessageTokenModel->getMessageByToken($token);
if (!hasData($msg))
{
show_error('no message found');
}
$msg = $msg->retval[0];
// Get variables
$receiverData = $this->MessageTokenModel->getPersonData($msg->sender_id);
if (!hasData($receiverData))
{
show_error('no sender found');
}
$data = array (
'receivers' => $receiverData->retval,
'message' => $msg,
'token' => $token
);
$this->load->view('system/messageWriteReply', $data);
}
/**
* send reply
*/
public function sendReply()
{
$this->load->model('system/Message_model', 'MessageModel');
$this->load->library('MessageLib');
$error = false;
$subject = $this->input->post('subject');
$body = $this->input->post('body');
$persons = $this->input->post('persons');
$relationmessage_id = $this->input->post('relationmessage_id');
$token = $this->input->post('token');
if (!isset($relationmessage_id) || $relationmessage_id == '' || !isset($token) || $token == '')
{
show_error('Error while sending reply');
$error = true;
}
$relationmsg = $this->MessageTokenModel->getMessageByToken($token);
// check if correct message
if (!hasData($relationmsg) || $relationmessage_id !== $relationmsg->retval[0]->message_id)
{
show_error('Error while sending reply');
$error = true;
}
// get sender (receiver of previous msg)
$sender_id = $relationmsg->retval[0]->receiver_id;
// get message data of persons
$data = $this->MessageTokenModel->getPersonData($persons);
// send message(s)
if (hasData($data))
{
for ($i = 0; $i < count($data->retval); $i++)
{
$dataArray = (array)$data->retval[$i];
$msg = $this->messagelib->sendMessage($sender_id, $dataArray['person_id'], $subject, $body, PRIORITY_NORMAL, $relationmessage_id, null);
if ($msg->error)
{
show_error($msg->retval);
$error = true;
break;
}
// Loads the person log library
$this->load->library('PersonLogLib');
// Write log entry for sender
$logtype_kurzbz = 'Action';
$logdata = array(
'name' => 'Message sent',
'message' => 'Message sent from person '.$sender_id.' to '.$dataArray['person_id'].', messageid '.$msg->retval,
'success' => 'true'
);
$taetigkeit_kurzbz = 'kommunikation';
$app = 'core';
$oe_kurzbz = null;
$insertvon = 'online';
$this->personloglib->log(
$sender_id,
$logtype_kurzbz,
$logdata,
$taetigkeit_kurzbz,
$app,
$oe_kurzbz,
$insertvon
);
}
}
if (!$error)
{
$this->load->view('system/messageSent');
}
}
}
+8 -4
View File
@@ -1,12 +1,16 @@
<?php
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
class Vilesci extends FHC_Controller
class Vilesci extends Auth_Controller
{
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'index' => 'basis/vilesci:r'
)
);
$this->load->library('WidgetLib');
}
@@ -14,7 +14,9 @@
if (!defined('BASEPATH')) exit('No direct script access allowed');
class CheckUserAuth extends APIv1_Controller
require_once APPPATH.'/libraries/REST_Controller.php';
class CheckUserAuth extends REST_Controller
{
/**
* Course API constructor.
+6 -1
View File
@@ -2,14 +2,19 @@
if (! defined('BASEPATH')) exit('No direct script access allowed');
require_once APPPATH.'/libraries/REST_Controller.php';
/**
* Testing class for REST calls and authentication
*/
class Test extends APIv1_Controller
class Test extends REST_Controller
{
public function __construct()
{
parent::__construct();
// Loads helper message to manage returning messages
$this->load->helper('fhc_message');
}
/**
@@ -21,7 +21,7 @@ class Aufteilung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Aufteilung' => 'basis/aufteilung:rw'));
// Load model AufteilungModel
$this->load->model('accounting/aufteilung_model', 'AufteilungModel');
}
@@ -32,11 +32,11 @@ class Aufteilung extends APIv1_Controller
public function getAufteilung()
{
$aufteilungID = $this->get('aufteilung_id');
if (isset($aufteilungID))
{
$result = $this->AufteilungModel->load($aufteilungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Aufteilung extends APIv1_Controller
{
$result = $this->AufteilungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Aufteilung extends APIv1_Controller
$this->response();
}
}
private function _validate($aufteilung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bestelldetail extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bestelldetail' => 'basis/bestelldetail:rw'));
// Load model BestelldetailModel
$this->load->model('accounting/bestelldetail_model', 'BestelldetailModel');
}
@@ -32,11 +32,11 @@ class Bestelldetail extends APIv1_Controller
public function getBestelldetail()
{
$bestelldetailID = $this->get('bestelldetail_id');
if (isset($bestelldetailID))
{
$result = $this->BestelldetailModel->load($bestelldetailID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Bestelldetail extends APIv1_Controller
{
$result = $this->BestelldetailModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bestelldetail extends APIv1_Controller
$this->response();
}
}
private function _validate($bestelldetail = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bestelldetailtag extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bestelldetailtag' => 'basis/bestelldetailtag:rw'));
// Load model BestelldetailtagModel
$this->load->model('accounting/bestelldetailtag_model', 'BestelldetailtagModel');
}
@@ -33,11 +33,11 @@ class Bestelldetailtag extends APIv1_Controller
{
$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
@@ -61,7 +61,7 @@ class Bestelldetailtag extends APIv1_Controller
{
$result = $this->BestelldetailtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Bestelldetailtag extends APIv1_Controller
$this->response();
}
}
private function _validate($bestelldetailtag = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bestellstatus extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bestellstatus' => 'basis/bestellstatus:rw'));
// Load model BestellstatusModel
$this->load->model('accounting/bestellstatus_model', 'BestellstatusModel');
}
@@ -32,11 +32,11 @@ class Bestellstatus extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Bestellstatus extends APIv1_Controller
{
$result = $this->BestellstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bestellstatus extends APIv1_Controller
$this->response();
}
}
private function _validate($bestellstatus = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bestellung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bestellung' => 'basis/bestellung:rw'));
// Load model BestellungModel
$this->load->model('accounting/bestellung_model', 'BestellungModel');
}
@@ -32,11 +32,11 @@ class Bestellung extends APIv1_Controller
public function getBestellung()
{
$bestellungID = $this->get('bestellung_id');
if (isset($bestellungID))
{
$result = $this->BestellungModel->load($bestellungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Bestellung extends APIv1_Controller
{
$result = $this->BestellungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bestellung extends APIv1_Controller
$this->response();
}
}
private function _validate($bestellung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bestellungtag extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bestellungtag' => 'basis/bestellungtag:rw'));
// Load model BestellungtagModel
$this->load->model('accounting/bestellungtag_model', 'BestellungtagModel');
}
@@ -33,11 +33,11 @@ class Bestellungtag extends APIv1_Controller
{
$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
@@ -61,7 +61,7 @@ class Bestellungtag extends APIv1_Controller
{
$result = $this->BestellungtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Bestellungtag extends APIv1_Controller
$this->response();
}
}
private function _validate($bestellungtag = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Buchung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Buchung' => 'basis/buchung:r'));
// Load model BuchungModel
$this->load->model('accounting/buchung_model', 'BuchungModel');
}
@@ -32,11 +32,11 @@ class Buchung extends APIv1_Controller
public function getBuchung()
{
$buchungID = $this->get('buchung_id');
if (isset($buchungID))
{
$result = $this->BuchungModel->load($buchungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Buchung extends APIv1_Controller
{
$result = $this->BuchungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Buchung extends APIv1_Controller
$this->response();
}
}
private function _validate($buchung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Buchungstyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Buchungstyp' => 'basis/buchungstyp:rw'));
// Load model BuchungstypModel
$this->load->model('accounting/buchungstyp_model', 'BuchungstypModel');
}
@@ -32,11 +32,11 @@ class Buchungstyp extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Buchungstyp extends APIv1_Controller
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Buchungstyp extends APIv1_Controller
$this->response();
}
}
private function _validate($buchungstyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Budget extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Budget' => 'basis/budget:rw'));
// Load model BudgetModel
$this->load->model('accounting/budget_model', 'BudgetModel');
}
@@ -33,11 +33,11 @@ class Budget extends APIv1_Controller
{
$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
@@ -61,7 +61,7 @@ class Budget extends APIv1_Controller
{
$result = $this->BudgetModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Budget extends APIv1_Controller
$this->response();
}
}
private function _validate($budget = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Konto extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Konto' => 'basis/konto:rw'));
// Load model KontoModel
$this->load->model('accounting/konto_model', 'KontoModel');
}
@@ -32,11 +32,11 @@ class Konto extends APIv1_Controller
public function getKonto()
{
$kontoID = $this->get('konto_id');
if (isset($kontoID))
{
$result = $this->KontoModel->load($kontoID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Konto extends APIv1_Controller
{
$result = $this->KontoModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Konto extends APIv1_Controller
$this->response();
}
}
private function _validate($konto = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Kostenstelle extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Kostenstelle' => 'basis/kostenstelle:rw'));
// Load model KostenstelleModel
$this->load->model('accounting/kostenstelle_model', 'KostenstelleModel');
}
@@ -32,11 +32,11 @@ class Kostenstelle extends APIv1_Controller
public function getKostenstelle()
{
$kostenstelleID = $this->get('kostenstelle_id');
if (isset($kostenstelleID))
{
$result = $this->KostenstelleModel->load($kostenstelleID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Kostenstelle extends APIv1_Controller
{
$result = $this->KostenstelleModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Kostenstelle extends APIv1_Controller
$this->response();
}
}
private function _validate($kostenstelle = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Rechnung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Rechnung' => 'basis/rechnung:rw'));
// Load model RechnungModel
$this->load->model('accounting/rechnung_model', 'RechnungModel');
}
@@ -32,11 +32,11 @@ class Rechnung extends APIv1_Controller
public function getRechnung()
{
$rechnungID = $this->get('rechnung_id');
if (isset($rechnungID))
{
$result = $this->RechnungModel->load($rechnungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Rechnung extends APIv1_Controller
{
$result = $this->RechnungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Rechnung extends APIv1_Controller
$this->response();
}
}
private function _validate($rechnung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Rechnungsbetrag extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Rechnungsbetrag' => 'basis/rechnungsbetrag:rw'));
// Load model RechnungsbetragModel
$this->load->model('accounting/rechnungsbetrag_model', 'RechnungsbetragModel');
}
@@ -32,11 +32,11 @@ class Rechnungsbetrag extends APIv1_Controller
public function getRechnungsbetrag()
{
$rechnungsbetragID = $this->get('rechnungsbetrag_id');
if (isset($rechnungsbetragID))
{
$result = $this->RechnungsbetragModel->load($rechnungsbetragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Rechnungsbetrag extends APIv1_Controller
{
$result = $this->RechnungsbetragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Rechnungsbetrag extends APIv1_Controller
$this->response();
}
}
private function _validate($rechnungsbetrag = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Rechnungstyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Rechnungstyp' => 'basis/rechnungstyp:rw'));
// Load model RechnungstypModel
$this->load->model('accounting/rechnungstyp_model', 'RechnungstypModel');
}
@@ -32,11 +32,11 @@ class Rechnungstyp extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Rechnungstyp extends APIv1_Controller
{
$result = $this->RechnungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Rechnungstyp extends APIv1_Controller
$this->response();
}
}
private function _validate($rechnungstyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Vertrag extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Vertrag' => 'basis/vertrag:rw'));
// Load model VertragModel
$this->load->model('accounting/vertrag_model', 'VertragModel');
}
@@ -32,11 +32,11 @@ class Vertrag extends APIv1_Controller
public function getVertrag()
{
$vertragID = $this->get('vertrag_id');
if (isset($vertragID))
{
$result = $this->VertragModel->load($vertragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Vertrag extends APIv1_Controller
{
$result = $this->VertragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Vertrag extends APIv1_Controller
$this->response();
}
}
private function _validate($vertrag = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Vertragsstatus extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Vertragsstatus' => 'basis/vertragsstatus:rw'));
// Load model VertragsstatusModel
$this->load->model('accounting/vertragsstatus_model', 'VertragsstatusModel');
}
@@ -32,11 +32,11 @@ class Vertragsstatus extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Vertragsstatus extends APIv1_Controller
{
$result = $this->VertragsstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Vertragsstatus extends APIv1_Controller
$this->response();
}
}
private function _validate($vertragsstatus = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Vertragstyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Vertragstyp' => 'basis/vertragstyp:rw'));
// Load model VertragstypModel
$this->load->model('accounting/vertragstyp_model', 'VertragstypModel');
}
@@ -32,11 +32,11 @@ class Vertragstyp extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Vertragstyp extends APIv1_Controller
{
$result = $this->VertragstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Vertragstyp extends APIv1_Controller
$this->response();
}
}
private function _validate($vertragstyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Zahlungstyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zahlungstyp' => 'basis/zahlungstyp:rw'));
// Load model ZahlungstypModel
$this->load->model('accounting/zahlungstyp_model', 'ZahlungstypModel');
}
@@ -32,11 +32,11 @@ class Zahlungstyp extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Zahlungstyp extends APIv1_Controller
{
$result = $this->ZahlungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zahlungstyp extends APIv1_Controller
$this->response();
}
}
private function _validate($zahlungstyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Akadgrad extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Akadgrad' => 'basis/akadgrad:rw'));
// Load model AkadgradModel
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
}
@@ -32,11 +32,11 @@ class Akadgrad extends APIv1_Controller
public function getAkadgrad()
{
$akadgradID = $this->get('akadgrad_id');
if (isset($akadgradID))
{
$result = $this->AkadgradModel->load($akadgradID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Akadgrad extends APIv1_Controller
{
$result = $this->AkadgradModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Akadgrad extends APIv1_Controller
$this->response();
}
}
private function _validate($akadgrad = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Archiv extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Archiv' => 'basis/archiv:rw'));
// Load model ArchivModel
$this->load->model('codex/archiv_model', 'ArchivModel');
}
@@ -32,11 +32,11 @@ class Archiv extends APIv1_Controller
public function getArchiv()
{
$archivID = $this->get('archiv_id');
if (isset($archivID))
{
$result = $this->ArchivModel->load($archivID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Archiv extends APIv1_Controller
{
$result = $this->ArchivModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Archiv extends APIv1_Controller
$this->response();
}
}
private function _validate($archiv = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Aufmerksamdurch extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Aufmerksamdurch' => 'basis/aufmerksamdurch:rw'));
// Load model AufmerksamdurchModel
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
}
@@ -32,11 +32,11 @@ class Aufmerksamdurch extends APIv1_Controller
public function getAufmerksamdurch()
{
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
if (isset($aufmerksamdurch_kurzbz))
{
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Aufmerksamdurch extends APIv1_Controller
{
$result = $this->AufmerksamdurchModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Aufmerksamdurch extends APIv1_Controller
$this->response();
}
}
private function _validate($aufmerksamdurch = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Ausbildung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Ausbildung' => 'basis/ausbildung:rw'));
// Load model AusbildungModel
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
}
@@ -32,11 +32,11 @@ class Ausbildung extends APIv1_Controller
public function getAusbildung()
{
$ausbildungcode = $this->get('ausbildungcode');
if (isset($ausbildungcode))
{
$result = $this->AusbildungModel->load($ausbildungcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Ausbildung extends APIv1_Controller
{
$result = $this->AusbildungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Ausbildung extends APIv1_Controller
$this->response();
}
}
private function _validate($ausbildung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Berufstaetigkeit extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Berufstaetigkeit' => 'basis/berufstaetigkeit:rw'));
// Load model BerufstaetigkeitModel
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
}
@@ -32,11 +32,11 @@ class Berufstaetigkeit extends APIv1_Controller
public function getBerufstaetigkeit()
{
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
if (isset($berufstaetigkeit_code))
{
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Berufstaetigkeit extends APIv1_Controller
{
$result = $this->BerufstaetigkeitModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Berufstaetigkeit extends APIv1_Controller
$this->response();
}
}
private function _validate($berufstaetigkeit = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Beschaeftigungsausmass' => 'basis/beschaeftigungsausmass:rw'));
// Load model BeschaeftigungsausmassModel
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
}
@@ -32,11 +32,11 @@ class Beschaeftigungsausmass extends APIv1_Controller
public function getBeschaeftigungsausmass()
{
$beschausmasscode = $this->get('beschausmasscode');
if (isset($beschausmasscode))
{
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
{
$result = $this->BeschaeftigungsausmassModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Beschaeftigungsausmass extends APIv1_Controller
$this->response();
}
}
private function _validate($beschaeftigungsausmass = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Besqual extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Besqual' => 'basis/besqual:rw'));
// Load model BesqualModel
$this->load->model('codex/besqual_model', 'BesqualModel');
}
@@ -32,11 +32,11 @@ class Besqual extends APIv1_Controller
public function getBesqual()
{
$besqualcode = $this->get('besqualcode');
if (isset($besqualcode))
{
$result = $this->BesqualModel->load($besqualcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Besqual extends APIv1_Controller
{
$result = $this->BesqualModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Besqual extends APIv1_Controller
$this->response();
}
}
private function _validate($besqual = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bisfunktion extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bisfunktion' => 'basis/bisfunktion:rw'));
// Load model BisfunktionModel
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
}
@@ -33,11 +33,11 @@ class Bisfunktion extends APIv1_Controller
{
$studiengang_kz = $this->get('studiengang_kz');
$bisverwendung_id = $this->get('bisverwendung_id');
if (isset($studiengang_kz) && isset($bisverwendung_id))
{
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -61,7 +61,7 @@ class Bisfunktion extends APIv1_Controller
{
$result = $this->BisfunktionModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Bisfunktion extends APIv1_Controller
$this->response();
}
}
private function _validate($bisfunktion = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bisio extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bisio' => 'basis/bisio:rw'));
// Load model BisioModel
$this->load->model('codex/bisio_model', 'BisioModel');
}
@@ -32,11 +32,11 @@ class Bisio extends APIv1_Controller
public function getBisio()
{
$bisioID = $this->get('bisio_id');
if (isset($bisioID))
{
$result = $this->BisioModel->load($bisioID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Bisio extends APIv1_Controller
{
$result = $this->BisioModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bisio extends APIv1_Controller
$this->response();
}
}
private function _validate($bisio = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bisorgform extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bisorgform' => 'basis/bisorgform:rw'));
// Load model BisorgformModel
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
}
@@ -32,11 +32,11 @@ class Bisorgform extends APIv1_Controller
public function getBisorgform()
{
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
if (isset($bisorgform_kurzbz))
{
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Bisorgform extends APIv1_Controller
{
$result = $this->BisorgformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bisorgform extends APIv1_Controller
$this->response();
}
}
private function _validate($bisorgform = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bisverwendung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Bisverwendung' => 'basis/bisverwendung:rw'));
// Load model BisverwendungModel
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
}
@@ -32,11 +32,11 @@ class Bisverwendung extends APIv1_Controller
public function getBisverwendung()
{
$bisverwendungID = $this->get('bisverwendung_id');
if (isset($bisverwendungID))
{
$result = $this->BisverwendungModel->load($bisverwendungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Bisverwendung extends APIv1_Controller
{
$result = $this->BisverwendungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Bisverwendung extends APIv1_Controller
$this->response();
}
}
private function _validate($bisverwendung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Bundesland extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('All' => 'basis/bundesland:r'));
// Load model PersonModel
$this->load->model('codex/bundesland_model', 'BundeslandModel');
}
@@ -21,7 +21,7 @@ class Entwicklungsteam extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Entwicklungsteam' => 'basis/entwicklungsteam:rw'));
// Load model EntwicklungsteamModel
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
}
@@ -33,11 +33,11 @@ class Entwicklungsteam extends APIv1_Controller
{
$studiengang_kz = $this->get('studiengang_kz');
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
if (isset($studiengang_kz) && isset($mitarbeiter_uid))
{
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -61,7 +61,7 @@ class Entwicklungsteam extends APIv1_Controller
{
$result = $this->EntwicklungsteamModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Entwicklungsteam extends APIv1_Controller
$this->response();
}
}
private function _validate($entwicklungsteam = NULL)
{
return true;
}
}
}
@@ -21,9 +21,9 @@ class Gemeinde extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Gemeinde' => 'basis/gemeinde:rw', 'GemeindeByPlz' => 'basis/gemeinde:r'));
// Load model GemeindeModel
$this->load->model("codex/gemeinde_model", "GemeindeModel");
$this->load->model('codex/gemeinde_model', 'GemeindeModel');
}
/**
@@ -32,7 +32,7 @@ class Gemeinde extends APIv1_Controller
public function getGemeinde()
{
$gemeindeID = $this->get("gemeinde_id");
$this->GemeindeModel->addOrder("plz");
if (isset($gemeindeID))
{
@@ -42,21 +42,21 @@ class Gemeinde extends APIv1_Controller
{
$result = $this->GemeindeModel->load();
}
$this->response($result, REST_Controller::HTTP_OK);
}
/**
* @return void
*/
public function getGemeindeByPlz()
{
$plz = $this->get("plz");
if (is_numeric($plz))
{
$result = $this->GemeindeModel->getGemeindeByPlz($plz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -80,7 +80,7 @@ class Gemeinde extends APIv1_Controller
{
$result = $this->GemeindeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -88,9 +88,9 @@ class Gemeinde extends APIv1_Controller
$this->response();
}
}
private function _validate($gemeinde = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Hauptberuf extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Hauptberuf' => 'basis/hauptberuf:rw'));
// Load model HauptberufModel
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
}
@@ -32,11 +32,11 @@ class Hauptberuf extends APIv1_Controller
public function getHauptberuf()
{
$hauptberufcode = $this->get('hauptberufcode');
if (isset($hauptberufcode))
{
$result = $this->HauptberufModel->load($hauptberufcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Hauptberuf extends APIv1_Controller
{
$result = $this->HauptberufModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Hauptberuf extends APIv1_Controller
$this->response();
}
}
private function _validate($hauptberuf = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Lehrform extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Lehrform' => 'basis/lehrform:rw'));
// Load model LehrformModel
$this->load->model('codex/lehrform_model', 'LehrformModel');
}
@@ -32,11 +32,11 @@ class Lehrform extends APIv1_Controller
public function getLehrform()
{
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
if (isset($lehrform_kurzbz))
{
$result = $this->LehrformModel->load($lehrform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Lehrform extends APIv1_Controller
{
$result = $this->LehrformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Lehrform extends APIv1_Controller
$this->response();
}
}
private function _validate($lehrform = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Lgartcode extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Lgartcode' => 'basis/lgartcode:rw'));
// Load model LgartcodeModel
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
}
@@ -32,11 +32,11 @@ class Lgartcode extends APIv1_Controller
public function getLgartcode()
{
$lgartcode = $this->get('lgartcode');
if (isset($lgartcode))
{
$result = $this->LgartcodeModel->load($lgartcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Lgartcode extends APIv1_Controller
{
$result = $this->LgartcodeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Lgartcode extends APIv1_Controller
$this->response();
}
}
private function _validate($lgartcode = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Mobilitaetsprogramm' => 'basis/mobilitaetsprogramm:rw'));
// Load model MobilitaetsprogrammModel
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
}
@@ -32,11 +32,11 @@ class Mobilitaetsprogramm extends APIv1_Controller
public function getMobilitaetsprogramm()
{
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
if (isset($mobilitaetsprogramm_code))
{
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
{
$result = $this->MobilitaetsprogrammModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Mobilitaetsprogramm extends APIv1_Controller
$this->response();
}
}
private function _validate($mobilitaetsprogramm = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Nation extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Nation' => 'basis/nation:r', 'All' => 'basis/nation:r'));
// Load model NationModel
$this->load->model('codex/nation_model', 'NationModel');
}
@@ -21,7 +21,7 @@ class Note extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Note' => 'basis/note:rw'));
// Load model NoteModel
$this->load->model('codex/note_model', 'NoteModel');
}
@@ -32,11 +32,11 @@ class Note extends APIv1_Controller
public function getNote()
{
$note = $this->get('note');
if (isset($note))
{
$result = $this->NoteModel->load($note);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Note extends APIv1_Controller
{
$result = $this->NoteModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Note extends APIv1_Controller
$this->response();
}
}
private function _validate($note = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Orgform extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Orgform' => 'basis/orgform:rw', 'All' => 'basis/orgform:r', 'OrgformLV' => 'basis/orgform:r'));
// Load model OrgformModel
$this->load->model('codex/orgform_model', 'OrgformModel');
}
@@ -32,11 +32,11 @@ class Orgform extends APIv1_Controller
public function getOrgform()
{
$orgform_kurzbz = $this->get('orgform_kurzbz');
if (isset($orgform_kurzbz))
{
$result = $this->OrgformModel->load($orgform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -44,24 +44,24 @@ class Orgform extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
public function getAll()
{
$result = $this->OrgformModel->load();
$this->response($result, REST_Controller::HTTP_OK);
}
/**
* @return void
*/
public function getOrgformLV()
{
$result = $this->OrgformModel->getOrgformLV();
$this->response($result, REST_Controller::HTTP_OK);
}
@@ -80,7 +80,7 @@ class Orgform extends APIv1_Controller
{
$result = $this->OrgformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -88,9 +88,9 @@ class Orgform extends APIv1_Controller
$this->response();
}
}
private function _validate($orgform = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Verwendung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Verwendung' => 'basis/verwendung:rw'));
// Load model VerwendungModel
$this->load->model('codex/verwendung_model', 'VerwendungModel');
}
@@ -32,11 +32,11 @@ class Verwendung extends APIv1_Controller
public function getVerwendung()
{
$verwendung_code = $this->get('verwendung_code');
if (isset($verwendung_code))
{
$result = $this->VerwendungModel->load($verwendung_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Verwendung extends APIv1_Controller
{
$result = $this->VerwendungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Verwendung extends APIv1_Controller
$this->response();
}
}
private function _validate($verwendung = NULL)
{
return true;
}
}
}
+6 -6
View File
@@ -21,7 +21,7 @@ class Zgv extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zgv' => 'basis/zgv:rw'));
// Load model ZgvModel
$this->load->model('codex/zgv_model', 'ZgvModel');
}
@@ -32,11 +32,11 @@ class Zgv extends APIv1_Controller
public function getZgv()
{
$zgv_code = $this->get('zgv_code');
if (isset($zgv_code))
{
$result = $this->ZgvModel->load($zgv_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Zgv extends APIv1_Controller
{
$result = $this->ZgvModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zgv extends APIv1_Controller
$this->response();
}
}
private function _validate($zgv = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Zgvdoktor extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zgvdoktor' => 'basis/zgvdoktor:rw'));
// Load model ZgvdoktorModel
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
}
@@ -32,11 +32,11 @@ class Zgvdoktor extends APIv1_Controller
public function getZgvdoktor()
{
$zgvdoktor_code = $this->get('zgvdoktor_code');
if (isset($zgvdoktor_code))
{
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Zgvdoktor extends APIv1_Controller
{
$result = $this->ZgvdoktorModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zgvdoktor extends APIv1_Controller
$this->response();
}
}
private function _validate($zgvdoktor = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Zgvgruppe extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zgvgruppe' => 'basis/zgvgruppe:rw'));
// Load model ZgvgruppeModel
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
}
@@ -32,11 +32,11 @@ class Zgvgruppe extends APIv1_Controller
public function getZgvgruppe()
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
if (isset($gruppe_kurzbz))
{
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Zgvgruppe extends APIv1_Controller
{
$result = $this->ZgvgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zgvgruppe extends APIv1_Controller
$this->response();
}
}
private function _validate($zgvgruppe = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Zgvmaster extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zgvmaster' => 'basis/zgvmaster:rw'));
// Load model ZgvmasterModel
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
}
@@ -32,11 +32,11 @@ class Zgvmaster extends APIv1_Controller
public function getZgvmaster()
{
$zgvmas_code = $this->get('zgvmas_code');
if (isset($zgvmas_code))
{
$result = $this->ZgvmasterModel->load($zgvmas_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Zgvmaster extends APIv1_Controller
{
$result = $this->ZgvmasterModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zgvmaster extends APIv1_Controller
$this->response();
}
}
private function _validate($zgvmaster = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Zweck extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Zweck' => 'basis/zweck:rw'));
// Load model ZweckModel
$this->load->model('codex/zweck_model', 'ZweckModel');
}
@@ -32,11 +32,11 @@ class Zweck extends APIv1_Controller
public function getZweck()
{
$zweck_code = $this->get('zweck_code');
if (isset($zweck_code))
{
$result = $this->ZweckModel->load($zweck_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Zweck extends APIv1_Controller
{
$result = $this->ZweckModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Zweck extends APIv1_Controller
$this->response();
}
}
private function _validate($zweck = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Ampel extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Ampel' => 'basis/ampel:rw'));
// Load model AmpelModel
$this->load->model('content/ampel_model', 'AmpelModel');
}
@@ -32,11 +32,11 @@ class Ampel extends APIv1_Controller
public function getAmpel()
{
$ampelID = $this->get('ampel_id');
if (isset($ampelID))
{
$result = $this->AmpelModel->load($ampelID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Ampel extends APIv1_Controller
{
$result = $this->AmpelModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Ampel extends APIv1_Controller
$this->response();
}
}
private function _validate($ampel = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Content extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Content' => 'basis/content:rw'));
// Load model ContentModel
$this->load->model('content/content_model', 'ContentModel');
}
@@ -32,11 +32,11 @@ class Content extends APIv1_Controller
public function getContent()
{
$contentID = $this->get('content_id');
if (isset($contentID))
{
$result = $this->ContentModel->load($contentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Content extends APIv1_Controller
{
$result = $this->ContentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Content extends APIv1_Controller
$this->response();
}
}
private function _validate($content = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Contentchild extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Contentchild' => 'basis/contentchild:rw'));
// Load model ContentchildModel
$this->load->model('content/contentchild_model', 'ContentchildModel');
}
@@ -32,11 +32,11 @@ class Contentchild extends APIv1_Controller
public function getContentchild()
{
$contentchildID = $this->get('contentchild_id');
if (isset($contentchildID))
{
$result = $this->ContentchildModel->load($contentchildID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Contentchild extends APIv1_Controller
{
$result = $this->ContentchildModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Contentchild extends APIv1_Controller
$this->response();
}
}
private function _validate($contentchild = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Contentgruppe extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Contentgruppe' => 'basis/contentgruppe:rw'));
// Load model ContentgruppeModel
$this->load->model('content/contentgruppe_model', 'ContentgruppeModel');
}
@@ -33,11 +33,11 @@ class Contentgruppe extends APIv1_Controller
{
$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
@@ -61,7 +61,7 @@ class Contentgruppe extends APIv1_Controller
{
$result = $this->ContentgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Contentgruppe extends APIv1_Controller
$this->response();
}
}
private function _validate($contentgruppe = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Contentlog extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Contentlog' => 'basis/contentlog:rw'));
// Load model ContentlogModel
$this->load->model('content/contentlog_model', 'ContentlogModel');
}
@@ -32,11 +32,11 @@ class Contentlog extends APIv1_Controller
public function getContentlog()
{
$contentlogID = $this->get('contentlog_id');
if (isset($contentlogID))
{
$result = $this->ContentlogModel->load($contentlogID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Contentlog extends APIv1_Controller
{
$result = $this->ContentlogModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Contentlog extends APIv1_Controller
$this->response();
}
}
private function _validate($contentlog = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Contentsprache extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Contentsprache' => 'basis/contentsprache:rw'));
// Load model ContentspracheModel
$this->load->model('content/contentsprache_model', 'ContentspracheModel');
}
@@ -32,11 +32,11 @@ class Contentsprache extends APIv1_Controller
public function getContentsprache()
{
$contentspracheID = $this->get('contentsprache_id');
if (isset($contentspracheID))
{
$result = $this->ContentspracheModel->load($contentspracheID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Contentsprache extends APIv1_Controller
{
$result = $this->ContentspracheModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Contentsprache extends APIv1_Controller
$this->response();
}
}
private function _validate($contentsprache = NULL)
{
return true;
}
}
}
+22 -22
View File
@@ -17,27 +17,27 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dms extends APIv1_Controller
{
/**
*
*
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Dms' => 'basis/dms:rw', 'AktenAcceptedDms' => 'basis/dms:r', 'DelDms' => 'basis/dms:w'));
// Load library DmsLib
$this->load->library('DmsLib');
}
/**
*
*
*/
public function getDms()
{
$dms_id = $this->get('dms_id');
$version = $this->get('version');
if (isset($dms_id))
{
$result = $this->dmslib->read($dms_id, $version);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -45,20 +45,20 @@ class Dms extends APIv1_Controller
$this->response();
}
}
/**
*
*
*/
public function getAktenAcceptedDms()
{
$person_id = $this->get('person_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
$no_file = $this->get('no_file');
if (isset($person_id))
{
$result = $this->dmslib->getAktenAcceptedDms($person_id, $dokument_kurzbz, $no_file);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -66,18 +66,18 @@ class Dms extends APIv1_Controller
$this->response();
}
}
/**
*
*
*/
public function postDms()
{
$dms = $this->post();
if ($this->_validatePost($dms))
{
$result = $this->dmslib->save($dms);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -85,18 +85,18 @@ class Dms extends APIv1_Controller
$this->response();
}
}
/**
*
*
*/
public function postDelDms()
{
$dms = $this->post();
if ($this->_validateDelete($this->post()))
{
$result = $this->dmslib->delete($dms['person_id'], $dms['dms_id']);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -104,7 +104,7 @@ class Dms extends APIv1_Controller
$this->response();
}
}
private function _validatePost($dms = null)
{
if (!isset($dms))
@@ -119,10 +119,10 @@ class Dms extends APIv1_Controller
{
return false;
}
return true;
}
private function _validateDelete($dms = null)
{
if (!isset($dms))
@@ -137,7 +137,7 @@ class Dms extends APIv1_Controller
{
return false;
}
return true;
}
}
@@ -21,7 +21,7 @@ class Infoscreen extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Infoscreen' => 'basis/infoscreen:rw'));
// Load model InfoscreenModel
$this->load->model('content/infoscreen_model', 'InfoscreenModel');
}
@@ -32,11 +32,11 @@ class Infoscreen extends APIv1_Controller
public function getInfoscreen()
{
$infoscreenID = $this->get('infoscreen_id');
if (isset($infoscreenID))
{
$result = $this->InfoscreenModel->load($infoscreenID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Infoscreen extends APIv1_Controller
{
$result = $this->InfoscreenModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Infoscreen extends APIv1_Controller
$this->response();
}
}
private function _validate($infoscreen = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class News extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('News' => 'basis/news:rw'));
// Load model NewsModel
$this->load->model('content/news_model', 'NewsModel');
}
@@ -32,11 +32,11 @@ class News extends APIv1_Controller
public function getNews()
{
$newsID = $this->get('news_id');
if (isset($newsID))
{
$result = $this->NewsModel->load($newsID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class News extends APIv1_Controller
{
$result = $this->NewsModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class News extends APIv1_Controller
$this->response();
}
}
private function _validate($news = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Template extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Template' => 'basis/template:rw'));
// Load model TemplateModel
$this->load->model('content/template_model', 'TemplateModel');
}
@@ -32,11 +32,11 @@ class Template extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Template extends APIv1_Controller
{
$result = $this->TemplateModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Template extends APIv1_Controller
$this->response();
}
}
private function _validate($template = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Veranstaltung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Veranstaltung' => 'basis/veranstaltung:rw'));
// Load model VeranstaltungModel
$this->load->model('content/veranstaltung_model', 'VeranstaltungModel');
}
@@ -32,11 +32,11 @@ class Veranstaltung extends APIv1_Controller
public function getVeranstaltung()
{
$veranstaltungID = $this->get('veranstaltung_id');
if (isset($veranstaltungID))
{
$result = $this->VeranstaltungModel->load($veranstaltungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Veranstaltung extends APIv1_Controller
{
$result = $this->VeranstaltungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Veranstaltung extends APIv1_Controller
$this->response();
}
}
private function _validate($veranstaltung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Veranstaltungskategorie extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Veranstaltungskategorie' => 'basis/veranstaltungskategorie:rw'));
// Load model VeranstaltungskategorieModel
$this->load->model('content/veranstaltungskategorie_model', 'VeranstaltungskategorieModel');
}
@@ -32,11 +32,11 @@ class Veranstaltungskategorie extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Veranstaltungskategorie extends APIv1_Controller
{
$result = $this->VeranstaltungskategorieModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Veranstaltungskategorie extends APIv1_Controller
$this->response();
}
}
private function _validate($veranstaltungskategorie = NULL)
{
return true;
}
}
}
+15 -15
View File
@@ -21,11 +21,11 @@ class Akte extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Akte' => 'basis/akte:rw', 'Akten' => 'basis/akte:r', 'AktenAccepted' => 'basis/akte:r'));
// Load model AkteModel
$this->load->model('crm/akte_model', 'AkteModel');
}
/**
@@ -34,11 +34,11 @@ class Akte extends APIv1_Controller
public function getAkte()
{
$akteID = $this->get('akte_id');
if (isset($akteID))
{
$result = $this->AkteModel->load($akteID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -46,7 +46,7 @@ class Akte extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -56,11 +56,11 @@ class Akte extends APIv1_Controller
$dokument_kurzbz = $this->get('dokument_kurzbz');
$stg_kz = $this->get('stg_kz');
$prestudent_id = $this->get('prestudent_id');
if (isset($person_id))
{
$result = $this->AkteModel->getAkten($person_id, $dokument_kurzbz, $stg_kz, $prestudent_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,7 +68,7 @@ class Akte extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -76,11 +76,11 @@ class Akte extends APIv1_Controller
{
$person_id = $this->get('person_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($person_id))
{
$result = $this->AkteModel->getAktenAccepted($person_id, $dokument_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -104,7 +104,7 @@ class Akte extends APIv1_Controller
{
$result = $this->AkteModel->insert($akte);
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -112,11 +112,11 @@ class Akte extends APIv1_Controller
$this->response();
}
}
private function _validate($akte = null)
{
unset($akte['accepted']);
return $akte;
}
}
}
@@ -21,11 +21,11 @@ class Aufnahmeschluessel extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Aufnahmeschluessel' => 'basis/aufnahmeschluessel:rw'));
// Load model AufnahmeschluesselModel
$this->load->model('crm/aufnahmeschluessel_model', 'AufnahmeschluesselModel');
}
/**
@@ -34,11 +34,11 @@ class Aufnahmeschluessel extends APIv1_Controller
public function getAufnahmeschluessel()
{
$aufnahmeschluessel = $this->get('aufnahmeschluessel');
if (isset($aufnahmeschluessel))
{
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluessel);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Aufnahmeschluessel extends APIv1_Controller
{
$result = $this->AufnahmeschluesselModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Aufnahmeschluessel extends APIv1_Controller
$this->response();
}
}
private function _validate($aufnahmeschluessel = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Aufnahmetermin extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Aufnahmetermin' => 'basis/aufnahmetermin:rw'));
// Load model AufnahmeterminModel
$this->load->model('crm/aufnahmetermin_model', 'AufnahmeterminModel');
}
/**
@@ -34,11 +34,11 @@ class Aufnahmetermin extends APIv1_Controller
public function getAufnahmetermin()
{
$aufnahmeterminID = $this->get('aufnahmetermin_id');
if (isset($aufnahmeterminID))
{
$result = $this->AufnahmeterminModel->load($aufnahmeterminID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Aufnahmetermin extends APIv1_Controller
{
$result = $this->AufnahmeterminModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Aufnahmetermin extends APIv1_Controller
$this->response();
}
}
private function _validate($aufnahmetermin = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Aufnahmetermintyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Aufnahmetermintyp' => 'basis/aufnahmetermintyp:rw'));
// Load model AufnahmetermintypModel
$this->load->model('crm/aufnahmetermintyp_model', 'AufnahmetermintypModel');
}
/**
@@ -34,11 +34,11 @@ class Aufnahmetermintyp extends APIv1_Controller
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
@@ -62,7 +62,7 @@ class Aufnahmetermintyp extends APIv1_Controller
{
$result = $this->AufnahmetermintypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Aufnahmetermintyp extends APIv1_Controller
$this->response();
}
}
private function _validate($aufnahmetermintyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,14 @@ class Bewerbungstermine extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Bewerbungstermine' => 'basis/bewerbungstermine:rw',
'ByStudiengangStudiensemester' => 'basis/bewerbungstermine:r',
'ByStudienplan' => 'basis/bewerbungstermine:r',
'Current' => 'basis/bewerbungstermine:r'
)
);
// Load model BewerbungstermineModel
$this->load->model('crm/bewerbungstermine_model', 'BewerbungstermineModel');
@@ -132,4 +139,4 @@ class Bewerbungstermine extends APIv1_Controller
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Buchungstyp extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Buchungstyp' => 'basis/buchungstyp:rw');
// Load model BuchungstypModel
$this->load->model('crm/buchungstyp_model', 'BuchungstypModel');
}
/**
@@ -34,11 +34,11 @@ class Buchungstyp extends APIv1_Controller
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
@@ -62,7 +62,7 @@ class Buchungstyp extends APIv1_Controller
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Buchungstyp extends APIv1_Controller
$this->response();
}
}
private function _validate($buchungstyp = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Dokument extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Dokument' => 'basis/dokument:rw'));
// Load model DokumentModel
$this->load->model('crm/dokument_model', 'DokumentModel');
}
@@ -32,11 +32,11 @@ class Dokument extends APIv1_Controller
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
@@ -60,7 +60,7 @@ class Dokument extends APIv1_Controller
{
$result = $this->DokumentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Dokument extends APIv1_Controller
$this->response();
}
}
private function _validate($dokument = NULL)
{
return true;
}
}
}
@@ -21,7 +21,13 @@ class Dokumentprestudent extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Dokumentprestudent' => 'basis/dokumentprestudent:rw',
'SetAccepted' => 'basis/dokumentprestudent:w',
'SetAcceptedDocuments' => 'basis/dokumentprestudent:w'
)
);
// Load model DokumentprestudentModel
$this->load->model('crm/dokumentprestudent_model', 'DokumentprestudentModel');
}
@@ -33,11 +39,11 @@ class Dokumentprestudent extends APIv1_Controller
{
$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
@@ -61,7 +67,7 @@ class Dokumentprestudent extends APIv1_Controller
{
$result = $this->DokumentprestudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,7 +75,7 @@ class Dokumentprestudent extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -78,7 +84,7 @@ class Dokumentprestudent extends APIv1_Controller
if (isset($this->post()['prestudent_id']) && isset($this->post()['studiengang_kz']))
{
$result = $this->DokumentprestudentModel->setAccepted($this->post()['prestudent_id'], $this->post()['studiengang_kz']);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -86,7 +92,7 @@ class Dokumentprestudent extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -95,7 +101,7 @@ class Dokumentprestudent extends APIv1_Controller
if (isset($this->post()['prestudent_id']) && is_array($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentprestudentModel->setAcceptedDocuments($this->post()['prestudent_id'], $this->post()['dokument_kurzbz']);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -103,9 +109,9 @@ class Dokumentprestudent extends APIv1_Controller
$this->response();
}
}
private function _validate($dokumentprestudent = null)
{
return true;
}
}
}
@@ -21,7 +21,12 @@ class Dokumentstudiengang extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Dokumentstudiengang' => 'basis/dokumentstudiengang:rw',
'DokumentstudiengangByStudiengang_kz' => 'basis/dokumentstudiengang:r'
)
);
// Load model DokumentstudiengangModel
$this->load->model('crm/Dokumentstudiengang_model', 'DokumentstudiengangModel');
}
@@ -33,11 +38,11 @@ class Dokumentstudiengang extends APIv1_Controller
{
$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
@@ -45,7 +50,7 @@ class Dokumentstudiengang extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -55,7 +60,7 @@ class Dokumentstudiengang extends APIv1_Controller
$onlinebewerbung = $this->get('onlinebewerbung');
$pflicht = $this->get('pflicht');
$nachreichbar = $this->get('nachreichbar');
if (isset($studiengang_kz))
{
$result = $this->DokumentstudiengangModel->getDokumentstudiengangByStudiengang_kz(
@@ -64,7 +69,7 @@ class Dokumentstudiengang extends APIv1_Controller
$pflicht,
$nachreichbar
);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -92,7 +97,7 @@ class Dokumentstudiengang extends APIv1_Controller
{
$result = $this->DokumentstudiengangModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -100,9 +105,9 @@ class Dokumentstudiengang extends APIv1_Controller
$this->response();
}
}
private function _validate($dokumentstudiengang = NULL)
{
return true;
}
}
}
+8 -8
View File
@@ -21,11 +21,11 @@ class Konto extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Konto' => 'basis/konto:rw'));
// Load model KontoModel
$this->load->model('crm/konto_model', 'KontoModel');
}
/**
@@ -34,11 +34,11 @@ class Konto extends APIv1_Controller
public function getKonto()
{
$buchungsnr = $this->get('buchungsnr');
if (isset($buchungsnr))
{
$result = $this->KontoModel->load($buchungsnr);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Konto extends APIv1_Controller
{
$result = $this->KontoModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Konto extends APIv1_Controller
$this->response();
}
}
private function _validate($konto = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Preincoming extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Preincoming' => 'basis/preincoming:rw'));
// Load model PreincomingModel
$this->load->model('crm/preincoming_model', 'PreincomingModel');
}
/**
@@ -34,11 +34,11 @@ class Preincoming extends APIv1_Controller
public function getPreincoming()
{
$preincomingID = $this->get('preincoming_id');
if (isset($preincomingID))
{
$result = $this->PreincomingModel->load($preincomingID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Preincoming extends APIv1_Controller
{
$result = $this->PreincomingModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Preincoming extends APIv1_Controller
$this->response();
}
}
private function _validate($preincoming = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Preinteressent extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Preinteressent' => 'basis/preinteressent:rw', 'PreinteressentByPersonID' => 'basis/preinteressent:r'));
// Load model PersonModel
$this->load->model('crm/preinteressent_model', 'PreinteressentModel');
}
/**
@@ -34,11 +34,11 @@ class Preinteressent extends APIv1_Controller
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
@@ -46,18 +46,18 @@ class Preinteressent extends APIv1_Controller
$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
@@ -81,7 +81,7 @@ class Preinteressent extends APIv1_Controller
{
$result = $this->PreinteressentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -89,7 +89,7 @@ class Preinteressent extends APIv1_Controller
$this->response();
}
}
private function _validate($preinteressent)
{
if ($preinteressent['person_id'] == '')
@@ -97,13 +97,13 @@ class Preinteressent extends APIv1_Controller
//$this->errormsg = 'Person_id muss angegeben werden';
return false;
}
if ($preinteressent['aufmerksamdurch_kurzbz'] == '')
{
//$this->errormsg = 'Aufmerksamdurch muss angegeben werden';
return false;
}
return true;
}
}
}
@@ -21,11 +21,11 @@ class Preinteressentstudiengang extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Preinteressentstudiengang' => 'basis/preinteressentstudiengang:rw'));
// Load model PreinteressentstudiengangModel
$this->load->model('crm/preinteressentstudiengang_model', 'PreinteressentstudiengangModel');
}
/**
@@ -35,11 +35,11 @@ class Preinteressentstudiengang extends APIv1_Controller
{
$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
@@ -63,7 +63,7 @@ class Preinteressentstudiengang extends APIv1_Controller
{
$result = $this->PreinteressentstudiengangModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -71,9 +71,9 @@ class Preinteressentstudiengang extends APIv1_Controller
$this->response();
}
}
private function _validate($preinteressentstudiengang = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Preoutgoing extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Preoutgoing' => 'basis/preoutgoing:rw'));
// Load model PreoutgoingModel
$this->load->model('crm/preoutgoing_model', 'PreoutgoingModel');
}
/**
@@ -34,11 +34,11 @@ class Preoutgoing extends APIv1_Controller
public function getPreoutgoing()
{
$preoutgoingID = $this->get('preoutgoing_id');
if (isset($preoutgoingID))
{
$result = $this->PreoutgoingModel->load($preoutgoingID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Preoutgoing extends APIv1_Controller
{
$result = $this->PreoutgoingModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Preoutgoing extends APIv1_Controller
$this->response();
}
}
private function _validate($preoutgoing = NULL)
{
return true;
}
}
}
@@ -21,7 +21,18 @@ class Prestudent extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Prestudent' => 'basis/prestudent:rw',
'PrestudentByPersonID' => 'basis/prestudent:r',
'Specialization' => 'basis/prestudent:rw',
'LastStatuses' => 'basis/prestudent:r',
'PrestudentsPerStatus' => 'basis/prestudent:r',
'RmSpecialization' => 'basis/prestudent:w',
'AddReihungstest' => 'basis/prestudent:w',
'DelReihungstest' => 'basis/prestudent:w'
)
);
// Load model PrestudentModel
$this->load->model('crm/prestudent_model', 'PrestudentModel');
// Load library ReihungstestLib
@@ -21,7 +21,13 @@ class Prestudentstatus extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Prestudentstatus' => 'basis/prestudentstatus:rw',
'LastStatus' => 'basis/prestudentstatus:r',
'StatusByFilter' => 'basis/prestudentstatus:r'
)
);
// Load model PrestudentstatusModel
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
}
@@ -21,7 +21,14 @@ class Reihungstest extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(
array(
'Reihungstest' => 'basis/reihungstest:rw',
'ByStudiengangStudiensemester' => 'basis/reihungstest:r',
'ReihungstestByPersonID' => 'basis/reihungstest:r',
'AvailableReihungstestByPersonId' => 'basis/reihungstest:r'
)
);
// Load model ReihungstestModel
$this->load->model('crm/Reihungstest_model', 'ReihungstestModel');
// Load library ReihungstestLib
@@ -34,11 +41,11 @@ class Reihungstest extends APIv1_Controller
public function getReihungstest()
{
$reihungstestID = $this->get('reihungstest_id');
if (isset($reihungstestID))
{
$result = $this->ReihungstestModel->load($reihungstestID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -46,7 +53,7 @@ class Reihungstest extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -55,7 +62,7 @@ class Reihungstest extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
$available = $this->get('available');
if (isset($studiengang_kz))
{
$parametersArray = array('studiengang_kz' => $studiengang_kz);
@@ -68,7 +75,7 @@ class Reihungstest extends APIv1_Controller
$parametersArray['anmeldefrist >='] = 'NOW()';
}
$result = $this->ReihungstestModel->loadWhere($parametersArray);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -76,7 +83,7 @@ class Reihungstest extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
@@ -84,11 +91,11 @@ class Reihungstest extends APIv1_Controller
{
$person_id = $this->get('person_id');
$available = $this->get('available');
if (isset($person_id))
{
$result = $this->reihungstestlib->getReihungstestByPersonID($person_id, $available);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -96,20 +103,20 @@ class Reihungstest extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
public function getAvailableReihungstestByPersonId()
{
$person_id = $this->get('person_id');
if (isset($person_id))
{
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
$result = $this->StudiengangModel->getAvailableReihungstestByPersonId($person_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -133,7 +140,7 @@ class Reihungstest extends APIv1_Controller
{
$result = $this->ReihungstestModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -141,9 +148,9 @@ class Reihungstest extends APIv1_Controller
$this->response();
}
}
private function _validate($reihungstest = NULL)
{
return true;
}
}
}
@@ -21,9 +21,9 @@ class RtPerson extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('RtPerson' => 'basis/rtperson:rw'));
// Load model StatusModel
$this->load->model("crm/RtPerson_model", "RtPersonModel");
$this->load->model('crm/RtPerson_model', 'RtPersonModel');
}
/**
@@ -32,11 +32,11 @@ class RtPerson extends APIv1_Controller
public function getRtPerson()
{
$rt_person_id = $this->get("rt_person_id");
if (isset($rt_person_id))
{
$result = $this->RtPersonModel->load($rt_person_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class RtPerson extends APIv1_Controller
{
$result = $this->RtPersonModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class RtPerson extends APIv1_Controller
$this->response();
}
}
private function _validate($rtPerson = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Status extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Status' => 'basis/status:rw'));
// Load model StatusModel
$this->load->model('crm/status_model', 'StatusModel');
}
/**
@@ -34,11 +34,11 @@ class Status extends APIv1_Controller
public function getStatus()
{
$status_kurzbz = $this->get('status_kurzbz');
if (isset($status_kurzbz))
{
$result = $this->StatusModel->load($status_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Status extends APIv1_Controller
{
$result = $this->StatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Status extends APIv1_Controller
$this->response();
}
}
private function _validate($status = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Statusgrund extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Statusgrund' => 'basis/statusgrund:rw'));
// Load model StatusModel
$this->load->model('crm/Statusgrund_model', 'StatusgrundModel');
}
@@ -32,11 +32,11 @@ class Statusgrund extends APIv1_Controller
public function getStatusgrund()
{
$statusgrund_kurzbz = $this->get('statusgrund_kurzbz');
if (isset($statusgrund_kurzbz))
{
$result = $this->StatusgrundModel->load($statusgrund_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Statusgrund extends APIv1_Controller
{
$result = $this->StatusgrundModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Statusgrund extends APIv1_Controller
$this->response();
}
}
private function _validate($statusgrund = NULL)
{
return true;
}
}
}
@@ -21,11 +21,11 @@ class Student extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Student' => 'basis/student:rw'));
// Load model StudentModel
$this->load->model('crm/student_model', 'StudentModel');
}
/**
@@ -34,11 +34,11 @@ class Student extends APIv1_Controller
public function getStudent()
{
$studentID = $this->get('student_id');
if (isset($studentID))
{
$result = $this->StudentModel->load($studentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -62,7 +62,7 @@ class Student extends APIv1_Controller
{
$result = $this->StudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -70,9 +70,9 @@ class Student extends APIv1_Controller
$this->response();
}
}
private function _validate($student = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Abgabe extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Abgabe' => 'basis/abgabe:rw'));
// Load model AbgabeModel
$this->load->model('education/Abgabe_model', 'AbgabeModel');
}
@@ -32,11 +32,11 @@ class Abgabe extends APIv1_Controller
public function getAbgabe()
{
$abgabe_id = $this->get('abgabe_id');
if (isset($abgabe_id))
{
$result = $this->AbgabeModel->load($abgabe_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Abgabe extends APIv1_Controller
{
$result = $this->AbgabeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Abgabe extends APIv1_Controller
$this->response();
}
}
private function _validate($abgabe = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Abschlussbeurteilung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Abschlussbeurteilung' => 'basis/abschlussbeurteilung:rw'));
// Load model AbschlussbeurteilungModel
$this->load->model('education/Abschlussbeurteilung_model', 'AbschlussbeurteilungModel');
}
@@ -32,11 +32,11 @@ class Abschlussbeurteilung extends APIv1_Controller
public function getAbschlussbeurteilung()
{
$abschlussbeurteilung_kurzbz = $this->get('abschlussbeurteilung_kurzbz');
if (isset($abschlussbeurteilung_kurzbz))
{
$result = $this->AbschlussbeurteilungModel->load($abschlussbeurteilung_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Abschlussbeurteilung extends APIv1_Controller
{
$result = $this->AbschlussbeurteilungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Abschlussbeurteilung extends APIv1_Controller
$this->response();
}
}
private function _validate($abschlussbeurteilung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Abschlusspruefung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Abschlusspruefung' => 'basis/abschlusspruefung:rw'));
// Load model AbschlusspruefungModel
$this->load->model('education/Abschlusspruefung_model', 'AbschlusspruefungModel');
}
@@ -32,11 +32,11 @@ class Abschlusspruefung extends APIv1_Controller
public function getAbschlusspruefung()
{
$abschlusspruefung_id = $this->get('abschlusspruefung_id');
if (isset($abschlusspruefung_id))
{
$result = $this->AbschlusspruefungModel->load($abschlusspruefung_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Abschlusspruefung extends APIv1_Controller
{
$result = $this->AbschlusspruefungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Abschlusspruefung extends APIv1_Controller
$this->response();
}
}
private function _validate($abschlusspruefung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Anrechnung extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Anrechnung' => 'basis/anrechnung:rw'));
// Load model AnrechnungModel
$this->load->model('education/Anrechnung_model', 'AnrechnungModel');
}
@@ -32,11 +32,11 @@ class Anrechnung extends APIv1_Controller
public function getAnrechnung()
{
$anrechnung_id = $this->get('anrechnung_id');
if (isset($anrechnung_id))
{
$result = $this->AnrechnungModel->load($anrechnung_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Anrechnung extends APIv1_Controller
{
$result = $this->AnrechnungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Anrechnung extends APIv1_Controller
$this->response();
}
}
private function _validate($anrechnung = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Anwesenheit extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Anwesenheit' => 'basis/anwesenheit:rw'));
// Load model AnwesenheitModel
$this->load->model('education/Anwesenheit_model', 'AnwesenheitModel');
}
@@ -32,11 +32,11 @@ class Anwesenheit extends APIv1_Controller
public function getAnwesenheit()
{
$anwesenheit_id = $this->get('anwesenheit_id');
if (isset($anwesenheit_id))
{
$result = $this->AnwesenheitModel->load($anwesenheit_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Anwesenheit extends APIv1_Controller
{
$result = $this->AnwesenheitModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Anwesenheit extends APIv1_Controller
$this->response();
}
}
private function _validate($anwesenheit = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Beispiel extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Beispiel' => 'basis/beispiel:rw'));
// Load model BeispielModel
$this->load->model('education/Beispiel_model', 'BeispielModel');
}
@@ -32,11 +32,11 @@ class Beispiel extends APIv1_Controller
public function getBeispiel()
{
$beispiel_id = $this->get('beispiel_id');
if (isset($beispiel_id))
{
$result = $this->BeispielModel->load($beispiel_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Beispiel extends APIv1_Controller
{
$result = $this->BeispielModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Beispiel extends APIv1_Controller
$this->response();
}
}
private function _validate($beispiel = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Betreuerart extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Betreuerart' => 'basis/betreuerart:rw'));
// Load model BetreuerartModel
$this->load->model('education/Betreuerart_model', 'BetreuerartModel');
}
@@ -32,11 +32,11 @@ class Betreuerart extends APIv1_Controller
public function getBetreuerart()
{
$betreuerart_id = $this->get('betreuerart_kurzbz');
if (isset($betreuerart_id))
{
$result = $this->BetreuerartModel->load($betreuerart_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Betreuerart extends APIv1_Controller
{
$result = $this->BetreuerartModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Betreuerart extends APIv1_Controller
$this->response();
}
}
private function _validate($betreuerart = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Feedback extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Feedback' => 'basis/feedback:rw'));
// Load model FeedbackModel
$this->load->model('education/Feedback_model', 'FeedbackModel');
}
@@ -32,11 +32,11 @@ class Feedback extends APIv1_Controller
public function getFeedback()
{
$feedback_id = $this->get('feedback_id');
if (isset($feedback_id))
{
$result = $this->FeedbackModel->load($feedback_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Feedback extends APIv1_Controller
{
$result = $this->FeedbackModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Feedback extends APIv1_Controller
$this->response();
}
}
private function _validate($feedback = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Legesamtnote extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Legesamtnote' => 'basis/legesamtnote:rw'));
// Load model LegesamtnoteModel
$this->load->model('education/Legesamtnote_model', 'LegesamtnoteModel');
}
@@ -33,11 +33,11 @@ class Legesamtnote extends APIv1_Controller
{
$lehreinheit_id = $this->get('lehreinheit_id');
$student_uid = $this->get('student_uid');
if (isset($lehreinheit_id) && isset($student_uid))
{
$result = $this->LegesamtnoteModel->load(array($lehreinheit_id, $student_uid));
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -61,7 +61,7 @@ class Legesamtnote extends APIv1_Controller
{
$result = $this->LegesamtnoteModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Legesamtnote extends APIv1_Controller
$this->response();
}
}
private function _validate($legesamtnote = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Lehreinheit extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Lehreinheit' => 'basis/lehreinheit:rw'));
// Load model LehreinheitModel
$this->load->model('education/Lehreinheit_model', 'LehreinheitModel');
}
@@ -32,11 +32,11 @@ class Lehreinheit extends APIv1_Controller
public function getLehreinheit()
{
$lehreinheit_id = $this->get('lehreinheit_id');
if (isset($lehreinheit_id))
{
$result = $this->LehreinheitModel->load($lehreinheit_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Lehreinheit extends APIv1_Controller
{
$result = $this->LehreinheitModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Lehreinheit extends APIv1_Controller
$this->response();
}
}
private function _validate($lehreinheit = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Lehreinheitgruppe extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Lehreinheitgruppe' => 'basis/lehreinheitgruppe:rw'));
// Load model LehreinheitgruppeModel
$this->load->model('education/Lehreinheitgruppe_model', 'LehreinheitgruppeModel');
}
@@ -32,11 +32,11 @@ class Lehreinheitgruppe extends APIv1_Controller
public function getLehreinheitgruppe()
{
$lehreinheitgruppe_id = $this->get('lehreinheitgruppe_id');
if (isset($lehreinheitgruppe_id))
{
$result = $this->LehreinheitgruppeModel->load($lehreinheitgruppe_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -60,7 +60,7 @@ class Lehreinheitgruppe extends APIv1_Controller
{
$result = $this->LehreinheitgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -68,9 +68,9 @@ class Lehreinheitgruppe extends APIv1_Controller
$this->response();
}
}
private function _validate($lehreinheitgruppe = NULL)
{
return true;
}
}
}
@@ -21,7 +21,7 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
*/
public function __construct()
{
parent::__construct();
parent::__construct(array('Lehreinheitmitarbeiter' => 'basis/lehreinheitmitarbeiter:rw'));
// Load model LehreinheitmitarbeiterModel
$this->load->model('education/Lehreinheitmitarbeiter_model', 'LehreinheitmitarbeiterModel');
}
@@ -33,11 +33,11 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
{
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
$lehreinheit_id = $this->get('lehreinheit_id');
if (isset($mitarbeiter_uid) && isset($lehreinheit_id))
{
$result = $this->LehreinheitmitarbeiterModel->load(array($mitarbeiter_uid, $lehreinheit_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -61,7 +61,7 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
{
$result = $this->LehreinheitmitarbeiterModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
@@ -69,9 +69,9 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
$this->response();
}
}
private function _validate($lehreinheitmitarbeiter = NULL)
{
return true;
}
}
}

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