Compare commits

..

83 Commits

Author SHA1 Message Date
Andreas Moik 93da6868a9 outgoing changed for eine_uid 2016-07-26 14:07:31 +02:00
Andreas Moik 5f07058338 more changes for eine_uid 2016-06-29 12:02:49 +02:00
Andreas Moik 78c4481ab3 changed tbl_prestudent JOIN tbl_benutzer and reverse from person_id to uid 2016-06-23 13:55:27 +02:00
Andreas Moik 89a1353df7 bugfix 2016-06-23 13:43:30 +02:00
Andreas Moik 1376d98631 Merge branch 'master' into eine_uid 2016-06-23 13:27:18 +02:00
Andreas Moik b6f936608a more new student calls modified 2016-06-23 12:53:38 +02:00
Andreas Moik 57ca955efa delete_studentlehrverband, save_studentlehrverband and getUid copied to prestudent.class.php 2016-06-22 13:31:57 +02:00
Andreas Moik e86fda71f4 Merge branch 'master' into eine_uid 2016-06-22 12:04:14 +02:00
Andreas Moik 42d3b5bfa8 added missing db parameters to prestudent->load_studentlehrverband 2016-06-22 12:02:12 +02:00
Andreas Moik cfa4439c00 more new student -> prestudent changes
ported student->getTab to prestudent->getTab
ported student->getStudents to prestudent->getPrestudents
2016-06-22 11:25:08 +02:00
Andreas Moik 6e157bd746 Merge branch 'master' into eine_uid 2016-06-20 16:18:28 +02:00
Andreas Moik f6358f92ed more TODO EINE comments modified 2016-06-20 15:04:51 +02:00
Andreas Moik c431303b43 studentDBDM changes 2016-06-13 12:47:08 +02:00
Andreas Moik b4e93ecfe0 bugfixes in studentDBDML.php
added prestudent_id to cis/private/pdfExport.php
2016-06-10 14:39:57 +02:00
Andreas Moik 27e5b1cdb6 cis/private/profile/studienerfolgsbestaetigung.php: added dropdown to choose prestudent 2016-06-10 13:11:30 +02:00
Andreas Moik 96c9882f8a legesamtnoteeintragen _GET["uid"] -> _GET["prestudent_id"] 2016-06-10 12:24:50 +02:00
Andreas Moik aedd895b94 added TODO EINE comment for non-unique $student->prestudent_id 2016-06-10 11:55:43 +02:00
Andreas Moik bcf57fcbf2 cis/private/profile/studienplan.php added an option to choose between prestudents 2016-06-10 11:51:10 +02:00
Andreas Moik b41122e174 TODO EINE fixes
tbl_pruefung.student_uid TO tbl_pruefung.prestuent_id
2016-06-09 10:01:32 +02:00
Andreas Moik 9d12a47486 multiple TODO EINE comments fixed 2016-06-07 14:07:49 +02:00
Andreas Moik 1c2f8e126f Merge branch 'master' into eine_uid 2016-06-03 12:48:57 +02:00
Andreas Moik b6d9f2a4ce param changes for rdfs 2016-06-03 12:30:53 +02:00
Andreas Moik 4c3d0bf5aa TODO-tags for non-unique student->prestudent_id 2016-06-01 14:37:10 +02:00
Andreas Moik 3cba596571 student-io-detail-textbox-uid removed
abschlusspruefung.rdf.php chages for eine_uid
2016-05-30 16:34:19 +02:00
Andreas Moik 0e0f762fc4 bugfix for bug "L is NULL" 2016-05-30 14:15:10 +02:00
Andreas Moik d136937aa0 pruefungsanmeldung.json.php changed for eine_uid 2016-05-30 14:03:13 +02:00
Andreas Moik 6214ad3a66 multiple rdfs changed from student_uid to prestudent_id _GET and return 2016-05-23 10:52:47 +02:00
Andreas Moik 7115ef2443 Merge branch 'master' into eine_uid 2016-05-19 15:56:36 +02:00
Andreas Moik 92ee653ae4 tbl_student to tbl_prestudent finished 2016-05-19 15:55:49 +02:00
Andreas Moik 5f9aa4474e Merge branch 'master' into eine_uid 2016-05-18 11:03:13 +02:00
Andreas Moik c2512a5755 div 2016-05-18 10:32:35 +02:00
Andreas Moik 4cdd47669a cleanups 2016-05-18 09:50:23 +02:00
Andreas Moik 81a1b35ee6 cleanups 2016-05-18 09:31:04 +02:00
Andreas Moik 249076bfcc tbl_student changed to tbl_prestudent 2016-05-18 09:11:17 +02:00
Andreas Moik 1aa2756ea8 tbl_student changes for vilesci/personen 2016-05-13 12:02:00 +02:00
Andreas Moik 6e97ba92aa vilesci/statistik: replaced tbl_student 2016-05-11 11:24:41 +02:00
Andreas Moik 2eb0df0716 replaced tbl_student 2016-05-11 11:16:57 +02:00
Andreas Moik 068bcddb07 mlists: tbl_student replaced 2016-05-10 14:17:27 +02:00
Andreas Moik 1185c68fb6 content/statistik/oeh_beitraege.xls.php 2016-05-09 17:04:15 +02:00
Andreas Moik a63be15c8b removed two obsolete files 2016-05-09 16:59:26 +02:00
Andreas Moik 3258b23c0a bewerberstatistik changes 2016-05-09 16:47:26 +02:00
Andreas Moik 02c787df3f checkStudenten: tbl_student removed 2016-05-09 14:26:27 +02:00
Andreas Moik 8d9a038e2d changed studentDBDML.php to take a prestudent_id instead of a uid 2016-05-02 14:31:54 +02:00
Andreas Moik b5a4645540 changes for tbl_zeugnisnote 2016-04-27 18:01:25 +02:00
Andreas Moik 5d3032e5de many bugfixes
changed some tbl_student to tbl_prestudent
2016-04-27 13:42:29 +02:00
Andreas Moik bda7a51ab2 changes for lehre.tbl_zeugnis 2016-04-25 14:34:16 +02:00
Andreas Moik dd4b14fe99 changes for lehre.tbl_pruefung 2016-04-25 14:02:26 +02:00
Andreas Moik 958ec7f81a lehre.tbl_pruefung - db changes 2016-04-22 14:22:30 +02:00
Andreas Moik 975ab02d74 Merge branch 'master' into eine_uid 2016-04-21 14:08:44 +02:00
Andreas Moik a9f19fd7e2 cleanups 2016-04-20 17:05:03 +02:00
Andreas Moik 3f74f253a7 fue.tbl_ressource.student_uid to uid 2016-04-20 11:18:58 +02:00
Andreas Moik a4b67c5072 changes for tbl_projektarbeit student_uid to prestudent_id 2016-04-20 10:38:48 +02:00
Andreas Moik 8c475139e4 db-changes for lehre.tbl_projektarbeit 2016-04-19 16:04:21 +02:00
Andreas Moik 01eab769ec bugfix 2016-04-19 16:04:08 +02:00
Andreas Moik b3a77052f7 db changes for eine_uid
-lehre.tbl_abschlusspruefung.student_uid -> prestudent_id
	-public.tbl_studentlehrverband.student_uid -> prestudent_id
2016-04-19 15:31:15 +02:00
Andreas Moik 48e0ea2124 removed echo 2016-04-06 15:58:06 +02:00
Andreas Moik 17cd4e4f16 bugfix 2016-04-06 15:57:05 +02:00
Andreas Moik d9a22b7642 angular-tablesort for eine_uid 2016-04-06 15:17:54 +02:00
Andreas Moik fe7840a803 Merge branch 'eine_uid' of https://github.com/FH-Complete/FHC-Core into eine_uid 2016-04-06 11:26:07 +02:00
Andreas Moik 9db228b9d0 Merge branch 'master' into eine_uid 2016-04-06 11:25:46 +02:00
Andreas Moik 24f1bc6068 fixed variable names 2016-04-06 11:03:35 +02:00
Andreas Moik b2805920c2 check for CREATE/DROP view 2016-04-06 10:31:11 +02:00
Andreas Moik 3b22c6bd07 bugfix 2016-04-06 10:14:52 +02:00
Andreas Moik 5b678f5fa6 benotungstool changed for uid 2016-04-06 09:17:03 +02:00
Andreas Moik 0963969c5e changed prestudent_id to uid(tbl_benutzer):
-campus.tbl_studentbeispiel
	-campus.tbl_studentuebung
2016-04-05 16:35:15 +02:00
Andreas Moik 7cda05f4f9 legesamtnoteeintragen and legesamtnoteverwalten changed request from student_uid to prestudent_id 2016-04-05 12:08:42 +02:00
Andreas Moik 3af78fa550 legesamtnoteverwalten now needs a prestudent_id instead of a student_uid 2016-04-05 11:28:13 +02:00
Andreas Moik 1f900e7d22 removed test-button in dbupdate_eine_uid 2016-04-05 10:28:55 +02:00
Andreas Moik 4ee0ba73c4 indices and primary keys will be recreated 2016-04-04 17:30:14 +02:00
Andreas Moik 11844a5739 bugfixes 2016-03-31 10:18:00 +02:00
Andreas Moik b55ae03e1e bugfixes 2016-03-31 09:48:50 +02:00
Andreas Moik e6117fd686 dbupdate_eine_uid entry for campus.tbl_legesamtnote 2016-03-30 16:36:54 +02:00
Andreas Moik 683a881fe7 changed campus.tbl_legesamtnote for eine_uid 2016-03-30 16:35:20 +02:00
Andreas Moik 6006cfd424 campus.tbl_studentuebung changed for eine_uid 2016-03-30 16:21:50 +02:00
Andreas Moik 9896d527e3 tbl_studentbeispiel changed for eine_uid 2016-03-30 11:50:52 +02:00
Andreas Moik 2f3513245f fixed typo 2016-03-29 17:02:55 +02:00
Andreas Moik 472849b92d more modularization for dbupdate_eine_uid 2016-03-29 17:02:00 +02:00
Andreas Moik ddad088249 cleanups 2016-03-24 11:17:09 +01:00
Andreas Moik 8d43fdc90f updated campus.tbl_lvgesamtnote to prestudent_id 2016-03-23 16:12:48 +01:00
Andreas Moik c9e2bb9abb dbupdate_eine_uid: added campus.tbl_lvgesamtnote 2016-03-22 09:38:27 +01:00
Andreas Moik 68099d2a1b bugfix 2016-03-22 09:08:48 +01:00
Andreas Moik 42685a5689 dbupdate für eine_uid 2016-01-14 10:56:54 +01:00
Andreas Moik dbe6746abe bisio mit allen nötigen Abhängigkeiten für "eine UID" geändert 2016-01-14 09:59:23 +01:00
2495 changed files with 141123 additions and 258540 deletions
+10 -23
View File
@@ -1,23 +1,10 @@
.htaccess
.htaccessbak
bin
/nbproject/
/vendor/*
!/vendor/FHC-vendor
/.idea/
documents/
.settings
.project
.buildpath
application/config/development/
tests/codeception/_output/*
!/tests/codeception/_output/.placeholder
tests/codeception/codeception.yml
tests/codeception/tests/api.suite.yml
tests/codeception/tests/functional.suite.yml
tests/codeception/tests/acceptance.suite.yml
tests/codeception/tests/unit.suite.yml
/submodules/d3
bin
/application/logs/
/sparks/*
.htaccess
/nbproject/
/vendor/*
!/vendor/FHC-vendor
/.idea/
documents/
.settings
.project
.buildpath
bin
+1 -40
View File
@@ -1,35 +1,9 @@
# Change Log
## [3.2]
## [Unreleased]
### Added
- **[FAS]** Unterstützung für gemeinsame Studien hinzugefügt
- **[FAS]** Inaktive Mitarbeiter sind jetzt ausgegraut
- **[FAS]** Anmerkungsfeld bei Konto-Buchungen hinzugefügt
- **[CIS]** Lehrveranstaltung Menü auf Studienplan Basis und Modularisiert
- **[CIS]** Ampeln koennen nun verpflichtend sein und Sperren die GUI
- **[FAS]** Bei Mitarbeitern können Notizen erfasst werden
- **[FAS]** Im FAS gibt es einen neuen Karteireiter Messages. Hier können Nachrichten an Studierende übermittelt werden. Die Kommunikation des Aufnahme Addons wird über Messages abgewickelt.
- **[FAS]** Neuer Karteireiter Aufnahmetermine ersetzt die Reihungstestauswahl im Karteireiter Prestudent
- **[CORE]** Es können nun beliebig viele Reihungstests pro Person gespeichert werden.
- **[CORE]** Reihungstests können mehrere Räume zugeteilt werden. Die angemeldeten Studierenden können auf diese Räume aufgeteilt werden. Es gibt dann getrennte Anwesenheitslisten für jeden Raum
- **[CORE]** Reihungstests haben jetzt verschiedene Stufen
- **[CORE]** Reihungstests können Studiensemestern zugeordnet werden
- **[CORE]** Reihungstests können Studienpläne zugeordnet werden. Dies legt fest welche Personen sich zu diesen Reihungstests anmelden können.
- **[CORE]** Es gibt eine Anmeldefrist für Reihungstests
- **[CORE]** Codeigniter Framework wird als neue Basis verwendet.
- **[CORE]** REST API für Zugriff auf alle Daten
- **[CORE]** Neues Phrasenmodul für Orgform spezifische Phrasen
- **[CORE]** Der Zugriff auf Reports kann mitgeloggt werden
- **[CORE]** Der Zugriff auf CMS Seiten kann mitgeloggt werden
- **[FAS]** Es ist möglich bei Statusänderungen im FAS automatisierte Nachrichten an die Studierenden zu senden
- **[FAS]** Bewerberakt - Erstellung eines Akts mit allen hochgeladenen Dokumenten einer Person
- **[FAS]** Bewerbungsfristen für einzelen Studienpläne
- **[FAS]** Beim Statuswechsel kann ein Statusgrund hinterlegt werden.
- **[FAS]** Es kann pro Studiengang hinterlegt werden ob ein Dokument nachreichbar ist oder nicht
- **[FAS]** Arbeitsplätze bei Räumen (zB für EDV Säle mit 50 Plätzen aber nur 25 PCs)
- **[FAS]** Zuteilung von Prestudenten zu Aufnahmegruppen
- **[FAS]** Zusätzliches Feld für Uhrzeit bei Abschlussprüfung
- **[FAS]** Reihungstest Dropdown zeigt verfügbare/belegte Plätze an
- **[CORE]** Reihungstest Punkteübernahme oder Prozentpunkte ist konfigurierbar
@@ -48,23 +22,10 @@
- **[CORE]** Removed NOT NULL constraint on 'verfasser\_uid' from public.tbl\_notiz
- **[CIS]** Studienplanansicht: Wenn eine LV nicht benotet ist, aber eine kompatible LV mit vorhandener Anrechnung benotet ist wird diese Note angezeigt.
- **[FAS]** Die RDF-Schnittstelle für das Zeugnis prüft bei Anrechnungen ob, die ECTS-Punkte übereinstimmen und wählt bei ungleichen Werten jene der angerechneten LV.
- **[FAS]** Der Ausbildungsvertrag kann nun jederzeit erstellt werden, auch wenn eine Person noch kein Student ist. Wenn in der Vorlage des Ausbildungsvertrags ein Attribut des Studenten-Datensatzen (zB Personenkennzeichen) abgefragt wird und eine Person noch nicht Student ist, kann dieses nicht angedruckt werden und sollte aus der Vorlage entfernt werden.
- **[CORE]** Check Constraint in der Datenbank für SVNR - Diese muss 10, 12 oder 16 Zeichen lang sein
### Updateinfo
- **[FAS]** Für Lehraufträge muss eine Unoconv-Vorlage erstellt werden, da der für xsl-fo notwendige Seitenumbruch-Tag aus dem RDF entfernt wurde.
- **[FAS]** Mehrsprachigkeitsspalte tbl_status.bezeichnung_mehrsprachig wird durch das Updatescript automatisch in den ersten beiden Sprachen mit der status_kurzbz vorbefüllt. Übersetzungen sind anzupassen.
- **[MOODLE]** Neue Webservicefunktion core_user_update_users wird benötigt
- **[CORE]** Kommune wurde aus Core entfernt
- **[DEPRECATED]]** WaWi wurde in ein Addon (FHC-ADDON-WAWI) ausgelagert. Die Funktionalität im Core wird demnächst entfernt.
- **[DEPRECATED]]** LV-Informationen (FHC-ADDON-LVINFO) wurde in ein Addon ausgelagert. Die Funktionalität im Core wird demnächst entfernt
- **[DEPRECATED]]** Punkte1, Punkte2 und Punkte3 in tbl_prestudent werden nicht mehr verwendet und in zukünftigen Versionen entfernt. Diese werden jetzt in tbl_rt_person gespeichert
- **[DEPRECATED]]** anmeldungreihungstest in tbl_prestudent wird nicht mehr verwendet und in zukünftigen Versionen entfernt
- **[CORE]** Spalte php und r wurde aus tbl_statistik entfernt
- **[DEPRECATED]** Spalte ort_kurzbz in tbl_reihungstest wird nicht mehr verwendet und in zukünftigen Versionen entfernt
Zum Update auf diese Version folgen Sie den Anweisungen auf folgender Seite:
http://fhcomplete.technikum-wien.at/dokuwiki/doku.php?id=fh-complete:codeigniter
## [3.1.0] - 2015-11-12
### Added
+23
View File
@@ -0,0 +1,23 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<h1 style="text-align: center;"><br>
</h1>
<h1 style="text-align: center;"><br>
</h1>
<h1 style="text-align: center;"><big>System-Umstellung</big></h1>
<br>
<h2 style="text-align: center;">Ende der Umstellung ist vorraussichtlich <big><span style="text-decoration: underline;">
Dienstag 6.2.2007 19:00 Uhr</span></big></h2>
<br>
<div style="text-align: right;">
<h3><br>
</h3>
<h3><br>
</h3>
<h3>Wir bitten um Ihr Verst&auml;ndnis!</h3>
</div>
</body>
</html>
-11
View File
@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
-132
View File
@@ -1,132 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Drivers
| 4. Helper files
| 5. Custom config files
| 6. Language files
| 7. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packages
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'email', 'session');
|
| You can also supply an alternative library name to be assigned
| in the controller:
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
//$autoload['libraries'] = array();
$autoload['libraries'] = array('Session', 'FHC_Auth', 'TemplateLib');
/*
| -------------------------------------------------------------------
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['drivers'] = array('cache');
*/
$autoload['drivers'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
//$autoload['helper'] = array();
$autoload['helper'] = array('url', 'language');
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array('fhcomplete');
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array('fhcomplete');
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/
$autoload['model'] = array();
-517
View File
@@ -1,517 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will try guess the protocol, domain
| and path to your installation. However, you should always configure this
| explicitly and never rely on auto-guessing, especially in production
| environments.
|
*/
$config['base_url'] = 'http://phpci.fhcomplete.org/build/fhcomplete/';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.ci.php';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'de-AT';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'FHC_';
/*
|--------------------------------------------------------------------------
| Composer auto-loading
|--------------------------------------------------------------------------
|
| Enabling this setting will tell CodeIgniter to look for a Composer
| package auto-loader script in application/vendor/autoload.php.
|
| $config['composer_autoload'] = TRUE;
|
| Or if you have your vendor/ directory located somewhere else, you
| can opt to set a specific path as well:
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
| For more information about Composer, please visit http://getcomposer.org/
|
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = FALSE;
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| The configured value is actually a regular expression character group
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 1;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ directory. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Log File Extension
|--------------------------------------------------------------------------
|
| The default filename extension for log files. The default 'php' allows for
| protecting the log files via basic scripting, when they are to be stored
| under a publicly accessible directory.
|
| Note: Leaving it blank will default to 'php'.
|
*/
$config['log_file_extension'] = 'log';
/*
|--------------------------------------------------------------------------
| Log File Permissions
|--------------------------------------------------------------------------
|
| The file system permissions to be applied on newly created log files.
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
| integer notation (i.e. 0700, 0644, etc.)
*/
$config['log_file_permissions'] = 0644;
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Error Views Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/views/errors/ directory. Use a full server path with trailing slash.
|
*/
$config['error_views_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Include Query String
|--------------------------------------------------------------------------
|
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| http://codeigniter.com/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = '';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_driver'
|
| The storage driver to use: files, database, redis, memcached
|
| 'sess_cookie_name'
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
|
| For the 'database' driver, it's a table name.
| Please read up the manual for the format with other session drivers.
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
|
| 'sess_regenerate_destroy'
|
| Whether to destroy session data associated with the old session ID
| when auto-regenerating the session ID. When set to FALSE, the data
| will be later deleted by the garbage collector.
|
| Other session cookie settings are shared with the rest of the application,
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
*/
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
| Note: These settings (with the exception of 'cookie_prefix' and
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
/*
|--------------------------------------------------------------------------
| Standardize newlines
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| This is particularly useful for portability between UNIX-based OSes,
| (usually \n) and Windows (\r\n).
|
*/
$config['standardize_newlines'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| Only used if zlib.output_compression is turned off in your php.ini.
| Please do not use it together with httpd-level output compression.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or any PHP supported timezone. This preference tells
| the system whether to use your server's local time as the master 'now'
| reference, or convert it to the configured one timezone. See the 'date
| helper' page of the user guide for information regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy
| IP addresses from which CodeIgniter should trust headers such as
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
| the visitor's IP address.
|
| You can use both an array or a comma-separated list of proxy addresses,
| as well as specifying whole subnets. Here are a few examples:
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';
/*
|--------------------------------------------------------------------------
| Autoload Custom Controllers
|--------------------------------------------------------------------------
|
| It's working, so don't delete this :D
*/
spl_autoload_register(function ($class) {
if (substr($class,0,3) !== 'CI_' && substr($class,0,4) !== 'FHC_')
if (file_exists($file = APPPATH . 'core/' . $class . '.php'))
require_once $file;
});
-105
View File
@@ -1,105 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| FH-Complete Constants
|--------------------------------------------------------------------------
|
| These constants are used for internal messages. It are also be used
| and translated in the language files.
|
*/
define('FHC_SUCCESS', 0); // General Success Message
define('FHC_ERROR', 1); // General Error Message
define('FHC_MODEL_ERROR', 2); // Model Error
define('FHC_DB_ERROR', 3); // Database Error
define('FHC_NODBTABLE', 4); // No DB-Table is set
define('FHC_NORIGHT', 5); // No rights
define('FHC_INVALIDID', 6); // Invalid or no ID (key)
define('FHC_NOPK', 7); // No primary key
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0755);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
define('SHOW_DEBUG_BACKTRACE', TRUE);
/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
define('EXIT_SUCCESS', 0); // no errors
define('EXIT_ERROR', 1); // generic error
define('EXIT_MODEL', 2); // model error
define('EXIT_CONFIG', 3); // configuration error
define('EXIT_UNKNOWN_FILE', 4); // file not found
define('EXIT_UNKNOWN_CLASS', 5); // unknown class
define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
define('EXIT_USER_INPUT', 7); // invalid user input
define('EXIT_DATABASE', 8); // database error
define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
-122
View File
@@ -1,122 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
defined('DB_HOST') OR require_once './config/system.config.inc.php'; // For CLI-Migrations
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['dsn'] The full DSN string describe a connection to the database.
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database driver. e.g.: mysqli.
| Currently supported:
| cubrid, ibase, mssql, mysql, mysqli, oci8,
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Query Builder class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| NOTE: For MySQL and MySQLi databases, this setting is only used
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
| (and in table creation queries made with DB Forge).
| There is an incompatibility in PHP with mysql_real_escape_string() which
| can make your site vulnerable to SQL injection if you are using a
| multi-byte character set and are running versions lower than these.
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['encrypt'] Whether or not to use an encrypted connection.
|
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
| 'ssl_key' - Path to the private key file
| 'ssl_cert' - Path to the public key certificate file
| 'ssl_ca' - Path to the certificate authority file
| 'ssl_capath' - Path to a directory containing trusted CA certificats in PEM format
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not ('mysqli' only)
|
| ['compress'] Whether or not to use client compression (MySQL only)
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
| NOTE: Disabling this will also effectively disable both
| $this->db->last_query() and profiling of DB queries.
| When you run a query, with this setting set to TRUE (default),
| CodeIgniter will store the SQL statement for debugging purposes.
| However, this may cause high memory usage, especially if you run
| a lot of SQL queries ... disable this to avoid that problem.
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $query_builder variables lets you determine whether or not to load
| the query builder class.
*/
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => DB_HOST,
'username' => DB_USER,
'password' => DB_PASSWORD,
'port' => DB_PORT,
'database' => DB_NAME,
'dbdriver' => 'postgre',
'dbprefix' => '',
'pconnect' => DB_CONNECT_PERSISTENT,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
$db['system'] = array(
'dsn' => '',
'hostname' => DB_HOST,
'username' => 'fhcomplete',
'password' => 'fhcomplete',
'database' => DB_NAME,
'port' => DB_PORT,
'dbschema' => 'public',
'dbdriver' => 'postgre',
'dbprefix' => '',
'pconnect' => DB_CONNECT_PERSISTENT,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
-24
View File
@@ -1,24 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
'html5' => '<!DOCTYPE html>',
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
);
-246
View File
@@ -1,246 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
$config['fhc_version'] = '3.2';
$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_resturlaub' => 'basis/resturlaub',
'campus.tbl_studentbeispiel' => 'basis/studentbeispiel',
'campus.tbl_studentuebung' => 'basis/studentuebung',
'campus.tbl_template' => 'basis/template',
'campus.tbl_uebung' => 'basis/uebung',
'campus.tbl_veranstaltung' => 'basis/veranstaltung',
'campus.tbl_veranstaltungskategorie' => 'basis/veranstaltungskategorie',
'campus.tbl_zeitaufzeichnung' => 'basis/zeitaufzeichnung',
'campus.tbl_zeitsperre' => 'basis/zeitsperre',
'campus.tbl_zeitsperretyp' => 'basis/zeitsperretyp',
'campus.tbl_zeitwunsch' => 'basis/zeitwunsch',
'fue.tbl_aktivitaet' => 'basis/aktivitaet',
'fue.tbl_aufwandstyp' => 'basis/aufwandstyp',
'fue.tbl_projekt' => 'basis/projekt',
'fue.tbl_projekt_ressource' => 'basis/projekt_ressource',
'fue.tbl_projektphase' => 'basis/projektphase',
'fue.tbl_projekttask' => 'basis/projekttask',
'fue.tbl_ressource' => 'basis/ressource',
'fue.tbl_scrumsprint' => 'basis/scrumsprint',
'fue.tbl_scrumteam' => 'basis/scrumteam',
'lehre.tbl_abschlussbeurteilung' => 'basis/abschlussbeurteilung',
'lehre.tbl_abschlusspruefung' => 'basis/abschlusspruefung',
'lehre.tbl_akadgrad' => 'basis/akadgrad',
'lehre.tbl_anrechnung' => 'basis/anrechnung',
'lehre.tbl_betreuerart' => 'basis/betreuerart',
'lehre.tbl_ferien' => 'basis/ferien',
'lehre.tbl_lehreinheit' => 'basis/lehreinheit',
'lehre.tbl_lehreinheitgruppe' => 'basis/lehreinheitgruppe',
'lehre.tbl_lehreinheitmitarbeiter' => 'basis/lehreinheitmitarbeiter',
'lehre.tbl_lehrfach' => 'basis/lehrfach',
'lehre.tbl_lehrform' => 'basis/lehrform',
'lehre.tbl_lehrfunktion' => 'basis/lehrfunktion',
'lehre.tbl_lehrmittel' => 'basis/lehrmittel',
'lehre.tbl_lehrtyp' => 'basis/lehrtyp',
'lehre.tbl_lehrveranstaltung' => 'basis/lehrveranstaltung',
'lehre.tbl_lvangebot' => 'basis/lvangebot',
'lehre.tbl_lvregel' => 'basis/lvregel',
'lehre.tbl_lvregeltyp' => 'basis/lvregeltyp',
'lehre.tbl_moodle' => 'basis/moodle',
'lehre.tbl_note' => 'basis/note',
'lehre.tbl_notenschluessel' => 'basis/notenschluessel',
'lehre.tbl_notenschluesselaufteilung' => 'basis/notenschluesselaufteilung',
'lehre.tbl_notenschluesselzuordnung' => 'basis/notenschluesselzuordnung',
'lehre.tbl_projektarbeit' => 'basis/projektarbeit',
'lehre.tbl_projektbetreuer' => 'basis/projektbetreuer',
'lehre.tbl_projekttyp' => 'basis/projekttyp',
'lehre.tbl_pruefung' => 'basis/pruefung',
'lehre.tbl_pruefungstyp' => 'basis/pruefungstyp',
'lehre.tbl_studienordnung' => '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_zeitfenster' => 'basis/zeitfenster',
'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_aufnahmetermin' => 'basis/aufnahmetermin',
'public.tbl_aufnahmetermintyp' => 'basis/aufnahmetermintyp',
'public.tbl_bankverbindung' => 'basis/bankverbindung',
'public.tbl_benutzer' => 'basis/benutzer',
'public.tbl_benutzerfunktion' => 'basis/benutzerfunktion',
'public.tbl_benutzergruppe' => 'basis/benutzergruppe',
'public.tbl_bewerbungstermine' => 'basis/bewerbungstermine',
'public.tbl_buchungstyp' => 'basis/buchungstyp',
'public.tbl_dokument' => 'basis/dokument',
'public.tbl_dokumentprestudent' => 'basis/dokumentprestudent',
'public.tbl_dokumentstudiengang' => 'basis/dokumentstudiengang',
'public.tbl_erhalter' => 'basis/erhalter',
'public.tbl_fachbereich' => 'basis/fachbereich',
'public.tbl_filter' => 'basis/filter',
'public.tbl_firma' => 'basis/firma',
'public.tbl_firmatag' => 'basis/firmatag',
'public.tbl_firmentyp' => 'basis/firmentyp',
'public.tbl_fotostatus' => 'basis/fotostatus',
'public.tbl_funktion' => 'basis/funktion',
'public.tbl_geschaeftsjahr' => 'basis/geschaeftsjahr',
'public.tbl_gruppe' => 'basis/gruppe',
'public.tbl_kontakt' => 'basis/kontakt',
'public.tbl_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_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',
'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',
DMS_PATH => 'fs/dms',
'public.tbl_sprache' => 'admin',
'PhrasesLib.getPhrase' => 'system/PhrasesLib'
);
$config['addons_aufnahme_url'] = 'http://debian.dev/build/addons/aufnahme/cis/index.php';
-103
View File
@@ -1,103 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conversion used by the Text helper
|
*/
$foreign_characters = array(
'/ä|æ|ǽ/' => 'ae',
'/ö|œ/' => 'oe',
'/ü/' => 'ue',
'/Ä/' => 'Ae',
'/Ü/' => 'Ue',
'/Ö/' => 'Oe',
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
'/Б/' => 'B',
'/б/' => 'b',
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
'/ç|ć|ĉ|ċ|č/' => 'c',
'/Д/' => 'D',
'/д/' => 'd',
'/Ð|Ď|Đ|Δ/' => 'Dj',
'/ð|ď|đ|δ/' => 'dj',
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
'/Ф/' => 'F',
'/ф/' => 'f',
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
'/Ĥ|Ħ/' => 'H',
'/ĥ|ħ/' => 'h',
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
'/Ĵ/' => 'J',
'/ĵ/' => 'j',
'/Ķ|Κ|К/' => 'K',
'/ķ|κ|к/' => 'k',
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
'/М/' => 'M',
'/м/' => 'm',
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
'/П/' => 'P',
'/п/' => 'p',
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
'/ŕ|ŗ|ř|ρ|р/' => 'r',
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
'/ț|ţ|ť|ŧ|т/' => 't',
'/Þ|þ/' => 'th',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
'/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
'/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
'/В/' => 'V',
'/в/' => 'v',
'/Ŵ/' => 'W',
'/ŵ/' => 'w',
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
'/ź|ż|ž|ζ|з/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/' => 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f',
'/ξ/' => 'ks',
'/π/' => 'p',
'/β/' => 'v',
'/μ/' => 'm',
'/ψ/' => 'ps',
'/Ё/' => 'Yo',
'/ё/' => 'yo',
'/Є/' => 'Ye',
'/є/' => 'ye',
'/Ї/' => 'Yi',
'/Ж/' => 'Zh',
'/ж/' => 'zh',
'/Х/' => 'Kh',
'/х/' => 'kh',
'/Ц/' => 'Ts',
'/ц/' => 'ts',
'/Ч/' => 'Ch',
'/ч/' => 'ch',
'/Ш/' => 'Sh',
'/ш/' => 'sh',
'/Щ/' => 'Shch',
'/щ/' => 'shch',
'/Ъ|ъ|Ь|ь/' => '',
'/Ю/' => 'Yu',
'/ю/' => 'yu',
'/Я/' => 'Ya',
'/я/' => 'ya'
);
-35
View File
@@ -1,35 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//For view all the languages go to the folder assets/grocery_crud/languages/
$config['grocery_crud_default_language'] = 'english';
// There are only three choices: "uk-date" (dd/mm/yyyy), "us-date" (mm/dd/yyyy) or "sql-date" (yyyy-mm-dd)
$config['grocery_crud_date_format'] = 'uk-date';
// The default per page when a user firstly see a list page
$config['grocery_crud_default_per_page'] = 10;
$config['grocery_crud_file_upload_allow_file_types'] = 'gif|jpeg|jpg|png|tiff|doc|docx|txt|odt|xls|xlsx|pdf|ppt|pptx|pps|ppsx|mp3|m4a|ogg|wav|mp4|m4v|mov|wmv|flv|avi|mpg|ogv|3gp|3g2';
$config['grocery_crud_file_upload_max_file_size'] = '20MB'; //ex. '10MB' (Mega Bytes), '1067KB' (Kilo Bytes), '5000B' (Bytes)
//You can choose 'ckeditor','tinymce' or 'markitup'
$config['grocery_crud_default_text_editor'] = 'ckeditor';
//You can choose 'minimal' or 'full'
$config['grocery_crud_text_editor_type'] = 'full';
//The character limiter at the list page, zero(0) value if you don't want character limiter at your list page
$config['grocery_crud_character_limiter'] = 30;
//All the forms are opening with dialog forms without refreshing the page once again.
//IMPORTANT: PLease be aware that this functionality is still in BETA phase and it is
//not suggested to use this in production mode
$config['grocery_crud_dialog_forms'] = false;
//Having some options at the list paging. This is the default one that all the websites are using.
//Make sure that the number of grocery_crud_default_per_page variable is included to this array.
$config['grocery_crud_paging_options'] = array('10','25','50','100');
//Default theme for grocery CRUD
$config['grocery_crud_default_theme'] = 'flexigrid';
//The environment is important so we can have specific configurations for specific environments
$config['grocery_crud_environment'] = 'production';
-13
View File
@@ -1,13 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
-11
View File
@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
-31
View File
@@ -1,31 +0,0 @@
<?php
// Define constants
define('EMAIL_CONFIG_INDEX', 'mail');
// Define configuration parameters
$config['email_number_to_sent'] = 1000; // Number of emails to sent each time sendAll is called
$config['email_number_per_time_range'] = 1; // Number of emails to sent before pause
$config['email_time_range'] = 1; // Length of the pause in seconds
$config['email_from_system'] = 'no-reply@technikum-wien.at';
// Smtp: if the CI email library has to connect to a smtp server
// Mail: if the system is setup to send emails with the standard php mail function
// Sendmail: if the system is setup to send email via Sendmail (or similar)
$config['protocol'] = ''; // mail, sendmail, or smtp
// If protocol is set to sendmail
$config['mailpath'] = ''; // SThe server path to Sendmail (or similar)
// If protocol is set to smtp
$config['smtp_host'] = 'localhost'; // SMTP Server Address
$config['smtp_port'] = 25;
$config['smtp_timeout'] = 5; // in seconds
$config['smtp_keepalive'] = false; // Enable persistent SMTP connections
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
$config['wordwrap'] = true; // {unwrap}http://example.com/a_long_link_that_should_not_be_wrapped.html{/unwrap}
$config['wrapchars'] = 76; // Character count to wrap at.
$config['mailtype'] = 'html'; // html or text
$config['priority'] = 3; // Email Priority. 1 = highest. 5 = lowest. 3 = normal
$config['validate'] = false; // If true then the email address will be validated
-19
View File
@@ -1,19 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Memcached settings
| -------------------------------------------------------------------------
| Your Memcached servers can be specified below.
|
| See: http://codeigniter.com/user_guide/libraries/caching.html#memcached
|
*/
$config = array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
),
);
-65
View File
@@ -1,65 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
$config['msg_delivery'] = true; // Default true
$config['send_immediately'] = false; // If the message should be sent immediately. Default false
$config['system_person_id'] = 1; // Dummy sender, used for sending messages from the system
$config['redirect_view_message_url'] = 'index.ci.php/Redirect/redirectByToken/'; //
$config['message_html_view_url'] = 'index.ci.php/ViewMessage/toHTML/';
$config['assistent_function'] = 'ass';
define('EMAIL_KONTAKT_TYPE', 'email'); // Email kontakt type
define('SENT_INFO_NEWLINE', '\n'); // tbl_msg_recipient->sentInfo separator
/*
|--------------------------------------------------------------------------
| Constants for Messaging System
|--------------------------------------------------------------------------
|
| Statuses
| Priority
| Return Codes
|
*/
// Message statuses
define('MSG_STATUS_UNREAD', 0);
define('MSG_STATUS_READ', 1);
define('MSG_STATUS_ARCHIVED', 2);
define('MSG_STATUS_DELETED', 3);
// Priority
define('PRIORITY_LOW', 1);
define('PRIORITY_NORMAL', 2);
define('PRIORITY_HIGH', 3);
define('PRIORITY_URGENT', 4);
// Status return message codes
define('MSG_SUCCESS', 0);
define('MSG_ERROR', 1);
define('MSG_MESSAGE_SENT', 10);
define('MSG_STATUS_UPDATE', 11);
define('MSG_PARTICIPANT_ADDED', 30);
define('MSG_ERR_PARTICIPANT_EXISTS', 31);
define('MSG_ERR_PARTICIPANT_NONSYSTEM', 32);
define('MSG_PARTICIPANT_REMOVED', 33);
define('MSG_ERR_SUBJECT_EMPTY', 40);
define('MSG_ERR_BODY_EMPTY', 41);
define('MSG_ERR_TEMPLATE_NOT_FOUND', 42);
define('MSG_ERR_DELIVERY_MESSAGE', 43);
define('MSG_ERR_CONTACT_NOT_FOUND', 44);
define('MSG_ERR_OU_CONTACTS_NOT_FOUND', 45);
define('MSG_ERR_INVALID_USER_ID', 100);
define('MSG_ERR_INVALID_MSG_ID', 101);
define('MSG_ERR_INVALID_THREAD_ID', 102);
define('MSG_ERR_INVALID_STATUS_ID', 103);
define('MSG_ERR_INVALID_SENDER_ID', 104);
define('MSG_ERR_INVALID_RECIPIENTS', 105);
define('MSG_ERR_INVALID_RECEIVER_ID', 106);
define('MSG_ERR_INVALID_OU', 107);
define('MSG_ERR_INVALID_TEMPLATE', 108);
define('MSG_ERR_INVALID_TOKEN', 109);
-85
View File
@@ -1,85 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default for security reasons.
| You should enable migrations whenever you intend to do a schema migration
| and disable it back when you're done.
|
*/
$config['migration_enabled'] = TRUE;
/*
|--------------------------------------------------------------------------
| Migrations version
|--------------------------------------------------------------------------
|
| This is used to set migration version that the file system should be on.
| If you run $this->migration->current() this is the version that schema will
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = '014';
/*
|--------------------------------------------------------------------------
| Migration Type
|--------------------------------------------------------------------------
|
| Migration file names may be based on a sequential identifier or on
| a timestamp. Options are:
|
| 'sequential' = Sequential migration naming (001_add_blog.php)
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
| Use timestamp format YYYYMMDDHHIISS.
|
| Note: If this configuration value is missing the Migration library
| defaults to 'sequential' for backward compatibility with CI2.
|
*/
$config['migration_type'] = 'sequential';
/*
|--------------------------------------------------------------------------
| Migrations table
|--------------------------------------------------------------------------
|
| This is the name of the table that will store the current migrations state.
| When migrations runs it will store in a database table which migration
| level the system is at. It then compares the migration level in this
| table to the $config['migration_version'] if they are not the same it
| will migrate up. This must be set.
|
*/
//$config['migration_table'] = 'system.ci_migrations'; // A missing feature or a bug cannot use another schema than public. Bug: tableExists only looks in the public schema.
$config['migration_table'] = 'ci_migrations';
/*
|--------------------------------------------------------------------------
| Auto Migrate To Latest
|--------------------------------------------------------------------------
|
| If this is set to TRUE when you load the migrations class and have
| $config['migration_enabled'] set to TRUE the system will auto migrate
| to your latest migration (whatever $config['migration_version'] is
| set to). This way you do not have to call migrations anywhere else
| in your code to have the latest migration.
|
*/
$config['migration_auto_latest'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migrations Path
|--------------------------------------------------------------------------
|
| Path to your migrations folder.
| Typically, it will be within your application path.
| Also, writing permission is required within the migrations path.
|
*/
$config['migration_path'] = APPPATH.'migrations/';
-158
View File
@@ -1,158 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to help identify allowed file types.
|
*/
return array(
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
'exe' => array('application/octet-stream', 'application/x-msdownload'),
'class' => 'application/octet-stream',
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
'ai' => array('application/pdf', 'application/postscript'),
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dxr' => 'application/x-director',
'dvi' => 'application/x-dvi',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'gzip' => 'application/x-gzip',
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => array('application/x-javascript', 'text/plain'),
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'z' => 'application/x-compress',
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => array('audio/x-aiff', 'audio/aiff'),
'aiff' => array('audio/x-aiff', 'audio/aiff'),
'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => array('text/css', 'text/plain'),
'html' => array('text/html', 'text/plain'),
'htm' => array('text/html', 'text/plain'),
'shtml' => array('text/html', 'text/plain'),
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => array('application/xml', 'text/xml', 'text/plain'),
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
'movie' => 'video/x-sgi-movie',
'doc' => array('application/msword', 'application/vnd.ms-office'),
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
'dot' => array('application/msword', 'application/vnd.ms-office'),
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json'),
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
'p12' => 'application/x-pkcs12',
'p7a' => 'application/x-pkcs7-signature',
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7r' => 'application/x-pkcs7-certreqresp',
'p7s' => 'application/pkcs7-signature',
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
'der' => 'application/x-x509-ca-cert',
'kdb' => 'application/octet-stream',
'pgp' => 'application/pgp',
'gpg' => 'application/gpg-keys',
'sst' => 'application/octet-stream',
'csr' => 'application/octet-stream',
'rsa' => 'application/x-pkcs7',
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
'3g2' => 'video/3gpp2',
'3gp' => array('video/3gp', 'video/3gpp'),
'mp4' => 'video/mp4',
'm4a' => 'audio/x-m4a',
'f4v' => 'video/mp4',
'webm' => 'video/webm',
'aac' => 'audio/x-acc',
'm4u' => 'application/vnd.mpegurl',
'm3u' => 'text/plain',
'xspf' => 'application/xspf+xml',
'vlc' => 'application/videolan',
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
'au' => 'audio/x-au',
'ac3' => 'audio/ac3',
'flac' => 'audio/x-flac',
'ogg' => 'audio/ogg',
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
'ics' => 'text/calendar',
'ical' => 'text/calendar',
'zsh' => 'text/x-scriptzsh',
'7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
'vcf' => 'text/x-vcard',
'srt' => array('text/srt', 'text/plain'),
'vtt' => array('text/vtt', 'text/plain'),
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon')
);
-37
View File
@@ -1,37 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* Pagination Config Bootstrap 3 CSS Style
* harviacode.com
*/
$config['query_string_segment'] = 'start';
$config['full_tag_open'] = '<nav><ul class="pagination" style="margin-top:0px">';
$config['full_tag_close'] = '</ul></nav>';
$config['first_link'] = 'First';
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['last_link'] = 'Last';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['next_link'] = 'Next';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['prev_link'] = 'Prev';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class="active"><a>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
/* End of file pagination.php */
/* Location: ./application/config/pagination.php */
-14
View File
@@ -1,14 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
-519
View File
@@ -1,519 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| HTTP protocol
|--------------------------------------------------------------------------
|
| Set to force the use of HTTPS for REST API calls
|
*/
$config['force_https'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST Output Format
|--------------------------------------------------------------------------
|
| The default format of the response
|
| 'array': Array data structure
| 'csv': Comma separated file
| 'json': Uses json_encode(). Note: If a GET query string
| called 'callback' is passed, then jsonp will be returned
| 'html' HTML using the table library in CodeIgniter
| 'php': Uses var_export()
| 'serialized': Uses serialize()
| 'xml': Uses simplexml_load_string()
|
*/
$config['rest_default_format'] = 'json';
/*
|--------------------------------------------------------------------------
| REST Supported Output Formats
|--------------------------------------------------------------------------
|
| The following setting contains a list of the supported/allowed formats.
| You may remove those formats that you don't want to use.
| If the default format $config['rest_default_format'] is missing within
| $config['rest_supported_formats'], it will be added silently during
| REST_Controller initialization.
|
*/
$config['rest_supported_formats'] = [
'json',
'array',
'csv',
'html',
'jsonp',
'php',
'serialized',
'xml',
];
/*
|--------------------------------------------------------------------------
| REST Status Field Name
|--------------------------------------------------------------------------
|
| The field name for the status inside the response
|
*/
$config['rest_status_field_name'] = 'status';
/*
|--------------------------------------------------------------------------
| REST Message Field Name
|--------------------------------------------------------------------------
|
| The field name for the message inside the response
|
*/
$config['rest_message_field_name'] = 'error';
/*
|--------------------------------------------------------------------------
| Enable Emulate Request
|--------------------------------------------------------------------------
|
| Should we enable emulation of the request (e.g. used in Mootools request)
|
*/
$config['enable_emulate_request'] = TRUE;
/*
|--------------------------------------------------------------------------
| REST Realm
|--------------------------------------------------------------------------
|
| Name of the password protected REST API displayed on login dialogs
|
| e.g: My Secret REST API
|
*/
$config['rest_realm'] = 'FHC REST API';
/*
|--------------------------------------------------------------------------
| REST Login
|--------------------------------------------------------------------------
|
| Set to specify the REST API requires to be logged in
|
| FALSE No login required
| 'basic' Unsecure login
| 'digest' More secure login
| 'session' Check for a PHP session variable. See 'auth_source' to set the
| authorization key
|
*/
$config['rest_auth'] = 'basic';
/*
|--------------------------------------------------------------------------
| REST Login Source
|--------------------------------------------------------------------------
|
| Is login required and if so, the user store to use
|
| '' Use config based users or wildcard testing, only for testing purpose
| it would be very unsecure to let unset in a production environment
| 'ldap' Use LDAP authentication
| 'library' Use a authentication library
|
| Note: If 'rest_auth' is set to 'session' then change 'auth_source' to the name of the session variable
|
*/
$config['auth_source'] = 'library';
/*
|--------------------------------------------------------------------------
| REST Login Class and Function
|--------------------------------------------------------------------------
|
| If library authentication is used define the class and function name
|
| The function should accept two parameters: class->function($username, $password)
| In other cases override the function _perform_library_auth in your controller
|
| For digest authentication the library function should return already a stored
| password for that username, even if it is hashed
|
*/
$config['auth_library_class'] = 'FHC_Auth';
// rest_auth is basic
$config['auth_library_function'] = 'basicAuthentication';
// rest_auth is digest
//$config['auth_library_function'] = 'digestAuthentication';
/*
|--------------------------------------------------------------------------
| Override auth types for specific class/method
|--------------------------------------------------------------------------
|
| Set specific authentication types for methods within a class (controller)
|
| Set as many config entries as needed. Any methods not set will use the default 'rest_auth' config value.
|
| e.g:
|
| $config['auth_override_class_method']['deals']['view'] = 'none';
| $config['auth_override_class_method']['deals']['insert'] = 'digest';
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
| $config['auth_override_class_method']['dashboard']['*'] = 'none|digest|basic';
|
| Here 'deals', 'accounts' and 'dashboard' are controller names, 'view', 'insert' and 'user' are methods within.
* An asterisk may also be used to specify an authentication method for an entire classes methods.
* Ex: $config['auth_override_class_method']['dashboard']['*'] = 'basic'; (NOTE: leave off the '_get' or '_post' from the end
* of the method name)
| Acceptable values are; 'none', 'digest' and 'basic'.
|
*/
// $config['auth_override_class_method']['deals']['view'] = 'none';
// $config['auth_override_class_method']['deals']['insert'] = 'digest';
// $config['auth_override_class_method']['accounts']['user'] = 'basic';
// $config['auth_override_class_method']['dashboard']['*'] = 'basic';
// ---Uncomment list line for the wildard unit test
// $config['auth_override_class_method']['wildcard_test_cases']['*'] = 'basic';
/*
|--------------------------------------------------------------------------
| Override auth types for specfic 'class/method/HTTP method'
|--------------------------------------------------------------------------
|
| example:
|
| $config['auth_override_class_method_http']['deals']['view']['get'] = 'none';
| $config['auth_override_class_method_http']['deals']['insert']['post'] = 'none';
| $config['auth_override_class_method_http']['deals']['*']['options'] = 'none';
*/
// ---Uncomment list line for the wildard unit test
// $config['auth_override_class_method_http']['wildcard_test_cases']['*']['options'] = 'basic';
/*
|--------------------------------------------------------------------------
| REST Login Usernames
|--------------------------------------------------------------------------
|
| Array of usernames and passwords for login, if ldap (even library) is configured this is ignored
|
*/
//$config['rest_valid_logins'] = ['admin' => '1234', 'test' => 'test'];
/*
|--------------------------------------------------------------------------
| Global IP Whitelisting
|--------------------------------------------------------------------------
|
| Limit connections to your REST server to whitelisted IP addresses
|
| Usage:
| 1. Set to TRUE and select an auth option for extreme security (client's IP
| address must be in whitelist and they must also log in)
| 2. Set to TRUE with auth set to FALSE to allow whitelisted IPs access with no login
| 3. Set to FALSE but set 'auth_override_class_method' to 'whitelist' to
| restrict certain methods to IPs in your whitelist
|
*/
$config['rest_ip_whitelist_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST IP Whitelist
|--------------------------------------------------------------------------
|
| Limit connections to your REST server with a comma separated
| list of IP addresses
|
| e.g: '123.456.789.0, 987.654.32.1'
|
| 127.0.0.1 and 0.0.0.0 are allowed by default
|
*/
$config['rest_ip_whitelist'] = '';
/*
|--------------------------------------------------------------------------
| Global IP Blacklisting
|--------------------------------------------------------------------------
|
| Prevent connections to the REST server from blacklisted IP addresses
|
| Usage:
| 1. Set to TRUE and add any IP address to 'rest_ip_blacklist'
|
*/
$config['rest_ip_blacklist_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST IP Blacklist
|--------------------------------------------------------------------------
|
| Prevent connections from the following IP addresses
|
| e.g: '123.456.789.0, 987.654.32.1'
|
*/
$config['rest_ip_blacklist'] = '';
/*
|--------------------------------------------------------------------------
| REST Database Group
|--------------------------------------------------------------------------
|
| Connect to a database group for keys, logging, etc. It will only connect
| if you have any of these features enabled
|
*/
$config['rest_database_group'] = 'default';
/*
|--------------------------------------------------------------------------
| REST API Keys Table Name
|--------------------------------------------------------------------------
|
| The table name in your database that stores API keys
|
*/
$config['rest_keys_table'] = 'ci_apikey';
/*
|--------------------------------------------------------------------------
| REST Enable Keys
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will look for a column name called 'key'.
| If no key is provided, the request will result in an error. To override the
| column name see 'rest_key_column'
|
| Default table schema:
| CREATE TABLE `keys` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `key` VARCHAR(40) NOT NULL,
| `level` INT(2) NOT NULL,
| `ignore_limits` TINYINT(1) NOT NULL DEFAULT '0',
| `is_private_key` TINYINT(1) NOT NULL DEFAULT '0',
| `ip_addresses` TEXT NULL DEFAULT NULL,
| `date_created` INT(11) NOT NULL,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_keys'] = TRUE;
/*
|--------------------------------------------------------------------------
| REST Table Key Column Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_keys', specify the
| column name to match e.g. my_key
|
*/
$config['rest_key_column'] = 'key';
/*
|--------------------------------------------------------------------------
| REST API Limits method
|--------------------------------------------------------------------------
|
| Specify the method used to limit the API calls
|
| Available methods are :
| $config['rest_limits_method'] = 'API_KEY'; // Put a limit per api key
| $config['rest_limits_method'] = 'METHOD_NAME'; // Put a limit on method calls
| $config['rest_limits_method'] = 'ROUTED_URL'; // Put a limit on the routed URL
|
*/
$config['rest_limits_method'] = 'ROUTED_URL';
/*
|--------------------------------------------------------------------------
| REST Key Length
|--------------------------------------------------------------------------
|
| Length of the created keys. Check your default database schema on the
| maximum length allowed
|
| Note: The maximum length is 40
|
*/
$config['rest_key_length'] = 40;
/*
|--------------------------------------------------------------------------
| REST API Key Variable
|--------------------------------------------------------------------------
|
| Custom header to specify the API key
| Note: Custom headers with the X- prefix are deprecated as of
| 2012/06/12. See RFC 6648 specification for more details
|
*/
$config['rest_key_name'] = 'FHC-API-KEY';
/*
|--------------------------------------------------------------------------
| REST Enable Logging
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will log actions based on the column names 'key', 'date',
| 'time' and 'ip_address'. This is a general rule that can be overridden in the
| $this->method array for each controller
|
| Default table schema:
| CREATE TABLE `logs` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `uri` VARCHAR(255) NOT NULL,
| `method` VARCHAR(6) NOT NULL,
| `params` TEXT DEFAULT NULL,
| `api_key` VARCHAR(40) NOT NULL,
| `ip_address` VARCHAR(45) NOT NULL,
| `time` INT(11) NOT NULL,
| `rtime` FLOAT DEFAULT NULL,
| `authorized` VARCHAR(1) NOT NULL,
| `response_code` smallint(3) DEFAULT '0',
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_logging'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST API Logs Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_logging', specify the
| table name to match e.g. my_logs
|
*/
$config['rest_logs_table'] = 'logs';
/*
|--------------------------------------------------------------------------
| REST Method Access Control
|--------------------------------------------------------------------------
| When set to TRUE, the REST API will check the access table to see if
| the API key can access that controller. 'rest_enable_keys' must be enabled
| to use this
|
| Default table schema:
| CREATE TABLE `access` (
| `id` INT(11) unsigned NOT NULL AUTO_INCREMENT,
| `key` VARCHAR(40) NOT NULL DEFAULT '',
| `controller` VARCHAR(50) NOT NULL DEFAULT '',
| `date_created` DATETIME DEFAULT NULL,
| `date_modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
*/
$config['rest_enable_access'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST API Access Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_access', specify the
| table name to match e.g. my_access
|
*/
$config['rest_access_table'] = 'access';
/*
|--------------------------------------------------------------------------
| REST API Param Log Format
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API log parameters will be stored in the database as JSON
| Set to FALSE to log as serialized PHP
|
*/
$config['rest_logs_json_params'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST Enable Limits
|--------------------------------------------------------------------------
|
| When set to TRUE, the REST API will count the number of uses of each method
| by an API key each hour. This is a general rule that can be overridden in the
| $this->method array in each controller
|
| Default table schema:
| CREATE TABLE `limits` (
| `id` INT(11) NOT NULL AUTO_INCREMENT,
| `uri` VARCHAR(255) NOT NULL,
| `count` INT(10) NOT NULL,
| `hour_started` INT(11) NOT NULL,
| `api_key` VARCHAR(40) NOT NULL,
| PRIMARY KEY (`id`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| To specify the limits within the controller's __construct() method, add per-method
| limits with:
|
| $this->method['METHOD_NAME']['limit'] = [NUM_REQUESTS_PER_HOUR];
|
| See application/controllers/api/example.php for examples
*/
$config['rest_enable_limits'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST API Limits Table Name
|--------------------------------------------------------------------------
|
| If not using the default table schema in 'rest_enable_limits', specify the
| table name to match e.g. my_limits
|
*/
$config['rest_limits_table'] = 'limits';
/*
|--------------------------------------------------------------------------
| REST Ignore HTTP Accept
|--------------------------------------------------------------------------
|
| Set to TRUE to ignore the HTTP Accept and speed up each request a little.
| Only do this if you are using the $this->rest_format or /format/xml in URLs
|
*/
$config['rest_ignore_http_accept'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST AJAX Only
|--------------------------------------------------------------------------
|
| Set to TRUE to allow AJAX requests only. Set to FALSE to accept HTTP requests
|
| Note: If set to TRUE and the request is not AJAX, a 505 response with the
| error message 'Only AJAX requests are accepted.' will be returned.
|
| Hint: This is good for production environments
|
*/
$config['rest_ajax_only'] = FALSE;
/*
|--------------------------------------------------------------------------
| REST Language File
|--------------------------------------------------------------------------
|
| Language file to load from the language directory
|
*/
$config['rest_language'] = 'en-US';
-51
View File
@@ -1,51 +0,0 @@
<?php
if (! defined('BASEPATH'))
exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Standard ROLES in FH-Complete and their persmissions
| -------------------------------------------------------------------------
|
*/
$config['roles'] = array
(
array
(
'rolle_kurzbz' => 'admin',
'berechtigung' => array
(
'admin', 'assistenz', 'basis/addon', 'basis/ampel', 'basis/ampeluebersicht',
'basis/benutzer', 'basis/berechtigung', 'basis/betriebsmittel', 'basis/cms',
'basis/cms_review', 'basis/cms_sperrfreigabe', 'basis/cronjob', 'basis/dms',
'basis/fas', 'basis/ferien', 'basis/fhausweis','basis/firma',
'basis/infoscreen', 'basis/moodle', 'basis/moodle','basis/news', 'basis/notiz',
'basis/organisationseinheit', 'basis/ort', 'basis/person', 'basis/planner',
'basis/service', 'basis/statistik', 'basis/studiengang', 'basis/studiensemester', 'basis/tempus',
'basis/testtool', 'basis/variable', 'basis/vilesci', 'buchung/typen',
'buchung/mitarbeiter', 'inout/incoming', 'inout/outgoing', 'inout/uebersicht',
'lehre', 'lehre/abgabetool', 'lehre/freifach', 'lehre/lehrfach',
'lehre/lehrveranstaltung', 'lehre/lvplan', 'lehre/lvinfo',
'lehre/pruefungsanmeldungAdmin', 'lehre/pruefungsbeurteilung',
'lehre/pruefungsbeurteilungAdmin', 'lehre/pruefungsterminAdmin',
'lehre/pruefungsfenster', 'lehre/reihungstest', 'lehre/reservierung',
'lehre/studienordnung', 'lehre/studienordnungInaktiv', 'lehre/studienplan',
'lehre/vorrueckung', 'lv-plan', 'lv-plan/gruppenentfernen',
'lv-plan/lektorentfernen', 'mitarbeiter', 'mitarbeiter/bankdaten',
'mitarbeiter/personalnummer', 'mitarbeiter/stammdaten', 'mitarbeiter/urlaube',
'mitarbeiter/zeitsperre', 'news', 'planner', 'preinteressent', 'raumres',
'reihungstest', 'sdTools', 'soap/lv', 'soap/lvplan', 'soap/mitarbeiter',
'soap/ort', 'soap/pruefungsfenster', 'soap/student', 'soap/studienordnung',
'soap/benutzer', 'soap/buchungen', 'student/bankdaten', 'student/anrechnung',
'student/anwesenheit', 'student/dokumente', 'student/noten', 'system/phrase',
'system/vorlage', 'system/vorlagestudiengang', 'student/stammdaten',
'student/vorrueckung', 'system/developer', 'system/loginasuser',
'user', 'veranstaltung', 'vertrag/mitarbeiter', 'vertrag/typen',
'wawi/berichte', 'wawi/bestellung', 'wawi/bestellung_advanced', 'wawi/budget',
'wawi/delete_advanced', 'wawi/firma', 'wawi/freigabe',
'wawi/freigabe_advanced', 'wawi/inventar', 'wawi/konto', 'wawi/kostenstelle',
'wawi/rechnung', 'wawi/rechnung_freigeben', 'wawi/rechnung_transfer',
'wawi/storno'
)
)
);
-62
View File
@@ -1,62 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
| $route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['default_controller'] = 'Vilesci';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
// Class name conflicts
$route['api/v1/organisation/[S|s]tudiengang/(:any)'] = 'api/v1/organisation/studiengang2/$1';
$route['api/v1/organisation/[F|f]achbereich/(:any)'] = 'api/v1/organisation/fachbereich2/$1';
$route['api/v1/organisation/[G|g]eschaeftsjahr/(:any)'] = 'api/v1/organisation/geschaeftsjahr2/$1';
$route['api/v1/organisation/[O|o]rganisationseinheit/(:any)'] = 'api/v1/organisation/organisationseinheit2/$1';
$route['api/v1/ressource/[B|b]etriebsmittelperson/(:any)'] = 'api/v1/ressource/betriebsmittelperson2/$1';
$route['api/v1/system/[S|s]prache/(:any)'] = 'api/v1/system/sprache2/$1';
-64
View File
@@ -1,64 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| SMILEYS
| -------------------------------------------------------------------
| This file contains an array of smileys for use with the emoticon helper.
| Individual images can be used to replace multiple smileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| http://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
':question:' => array('question.gif', '19', '19', 'question')
);
-15
View File
@@ -1,15 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Template configuration
|--------------------------------------------------------------------------
| This file will contain the settings for the template library.
|
| 'parser' = if you want your main template file to be parsed, set to TRUE
| 'template' = the filename of the default template file
| 'cache_ttl' = the time all partials should be cache in seconds, 0 means no global caching
*/
$config['parser'] = TRUE;
$config['template'] = 'templates/vilesci';
$config['cache_ttl'] = 0;
-211
View File
@@ -1,211 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Agent Class to help identify browser, platform, robot, and
| mobile device data. The array keys are used to identify the device
| and the array values are used to set the actual name of the item.
*/
$platforms = array(
'windows nt 10.0' => 'Windows 10',
'windows nt 6.3' => 'Windows 8.1',
'windows nt 6.2' => 'Windows 8',
'windows nt 6.1' => 'Windows 7',
'windows nt 6.0' => 'Windows Vista',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.1' => 'Windows XP',
'windows nt 5.0' => 'Windows 2000',
'windows nt 4.0' => 'Windows NT 4.0',
'winnt4.0' => 'Windows NT 4.0',
'winnt 4.0' => 'Windows NT',
'winnt' => 'Windows NT',
'windows 98' => 'Windows 98',
'win98' => 'Windows 98',
'windows 95' => 'Windows 95',
'win95' => 'Windows 95',
'windows phone' => 'Windows Phone',
'windows' => 'Unknown Windows OS',
'android' => 'Android',
'blackberry' => 'BlackBerry',
'iphone' => 'iOS',
'ipad' => 'iOS',
'ipod' => 'iOS',
'os x' => 'Mac OS X',
'ppc mac' => 'Power PC Mac',
'freebsd' => 'FreeBSD',
'ppc' => 'Macintosh',
'linux' => 'Linux',
'debian' => 'Debian',
'sunos' => 'Sun Solaris',
'beos' => 'BeOS',
'apachebench' => 'ApacheBench',
'aix' => 'AIX',
'irix' => 'Irix',
'osf' => 'DEC OSF',
'hp-ux' => 'HP-UX',
'netbsd' => 'NetBSD',
'bsdi' => 'BSDi',
'openbsd' => 'OpenBSD',
'gnu' => 'GNU/Linux',
'unix' => 'Unknown Unix OS',
'symbian' => 'Symbian OS'
);
// The order of this array should NOT be changed. Many browsers return
// multiple browser types so we want to identify the sub-type first.
$browsers = array(
'OPR' => 'Opera',
'Flock' => 'Flock',
'Edge' => 'Spartan',
'Chrome' => 'Chrome',
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
'Opera.*?Version' => 'Opera',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => 'Internet Explorer',
'Trident.* rv' => 'Internet Explorer',
'Shiira' => 'Shiira',
'Firefox' => 'Firefox',
'Chimera' => 'Chimera',
'Phoenix' => 'Phoenix',
'Firebird' => 'Firebird',
'Camino' => 'Camino',
'Netscape' => 'Netscape',
'OmniWeb' => 'OmniWeb',
'Safari' => 'Safari',
'Mozilla' => 'Mozilla',
'Konqueror' => 'Konqueror',
'icab' => 'iCab',
'Lynx' => 'Lynx',
'Links' => 'Links',
'hotjava' => 'HotJava',
'amaya' => 'Amaya',
'IBrowse' => 'IBrowse',
'Maxthon' => 'Maxthon',
'Ubuntu' => 'Ubuntu Web Browser'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => 'Motorola',
'nokia' => 'Nokia',
'palm' => 'Palm',
'iphone' => 'Apple iPhone',
'ipad' => 'iPad',
'ipod' => 'Apple iPod Touch',
'sony' => 'Sony Ericsson',
'ericsson' => 'Sony Ericsson',
'blackberry' => 'BlackBerry',
'cocoon' => 'O2 Cocoon',
'blazer' => 'Treo',
'lg' => 'LG',
'amoi' => 'Amoi',
'xda' => 'XDA',
'mda' => 'MDA',
'vario' => 'Vario',
'htc' => 'HTC',
'samsung' => 'Samsung',
'sharp' => 'Sharp',
'sie-' => 'Siemens',
'alcatel' => 'Alcatel',
'benq' => 'BenQ',
'ipaq' => 'HP iPaq',
'mot-' => 'Motorola',
'playstation portable' => 'PlayStation Portable',
'playstation 3' => 'PlayStation 3',
'playstation vita' => 'PlayStation Vita',
'hiptop' => 'Danger Hiptop',
'nec-' => 'NEC',
'panasonic' => 'Panasonic',
'philips' => 'Philips',
'sagem' => 'Sagem',
'sanyo' => 'Sanyo',
'spv' => 'SPV',
'zte' => 'ZTE',
'sendo' => 'Sendo',
'nintendo dsi' => 'Nintendo DSi',
'nintendo ds' => 'Nintendo DS',
'nintendo 3ds' => 'Nintendo 3DS',
'wii' => 'Nintendo Wii',
'open web' => 'Open Web',
'openweb' => 'OpenWeb',
// Operating Systems
'android' => 'Android',
'symbian' => 'Symbian',
'SymbianOS' => 'SymbianOS',
'elaine' => 'Palm',
'series60' => 'Symbian S60',
'windows ce' => 'Windows CE',
// Browsers
'obigo' => 'Obigo',
'netfront' => 'Netfront Browser',
'openwave' => 'Openwave Browser',
'mobilexplorer' => 'Mobile Explorer',
'operamini' => 'Opera Mini',
'opera mini' => 'Opera Mini',
'opera mobi' => 'Opera Mobile',
'fennec' => 'Firefox Mobile',
// Other
'digital paths' => 'Digital Paths',
'avantgo' => 'AvantGo',
'xiino' => 'Xiino',
'novarra' => 'Novarra Transcoder',
'vodafone' => 'Vodafone',
'docomo' => 'NTT DoCoMo',
'o2' => 'O2',
// Fallback
'mobile' => 'Generic Mobile',
'wireless' => 'Generic Mobile',
'j2me' => 'Generic Mobile',
'midp' => 'Generic Mobile',
'cldc' => 'Generic Mobile',
'up.link' => 'Generic Mobile',
'up.browser' => 'Generic Mobile',
'smartphone' => 'Generic Mobile',
'cellphone' => 'Generic Mobile'
);
// There are hundreds of bots but these are the most common.
$robots = array(
'googlebot' => 'Googlebot',
'msnbot' => 'MSNBot',
'baiduspider' => 'Baiduspider',
'bingbot' => 'Bing',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'ask jeeves' => 'Ask Jeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos',
'yandex' => 'YandexBot',
'mediapartners-google' => 'MediaPartners Google',
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
'adsbot-google' => 'AdsBot Google',
'feedfetcher-google' => 'Feedfetcher Google',
'curious george' => 'Curious George'
);
-571
View File
@@ -1,571 +0,0 @@
<?php
if (! defined('BASEPATH'))
exit('No direct script access allowed');
/**
* Database Class
*
*/
class DBTools extends FHC_Controller
{
private $cli = false;
/**
* Path to seed classes
*
* @var string
*/
protected $seed_path;
/**
* Seed basename regex
*
* @var string
*/
protected $seed_regex = '/^\d{3}_(\w+)$/';
/**
* Initialize DB-Tools Class
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->seed_path = APPPATH.'seeds/';
if ($this->input->is_cli_request())
{
$cli = true;
}
else
{
//$this->output->set_status_header(403, 'Migrations must be run from the CLI');
//exit;
}
// can only be run in the development environment
if (ENVIRONMENT == 'production')
exit('Wowsers! You don\'t want to do that!');
$this->load->database('system'); //Use the system-Connection for DB-Manipulation
$this->config->load('migration');
$this->load->library('migration');
// If not set, set it
$this->seed_path !== '' OR $this->seed_path = APPPATH.'seeds/';
// Add trailing slash if not set
$this->seed_path = rtrim($this->seed_path, '/').'/';
// Load seed language
$this->lang->load('seed');
// initiate faker
$this->faker = \Faker\Factory::create();
// load any required models
//$this->load->model('person/Person_model');
log_message('info', 'DB-Tools Controller Initialized');
}
/**
* Main function index as help
*
* @return void
*/
public function index()
{
$result = "The following are the available command line interface commands\n\n";
$result .= "php index.ci.php DBTools migrate [\"version_number\"] Run migrations. (latest/current) ";
$result .= "The version number is optional.\n";
$result .= "php index.ci.php DBTools seed [\"file_name\"] Run the specified seed (Name of Seed. expl: 'Organisation').\n";
echo $result.PHP_EOL;
}
/**
* Migrate to latest or current version
*
* @param string $version [optional] One of either "latest" or "current"
* @return void
*/
public function migrate($version = 'latest')
{
echo 'DB-Migration';
if ($version != 'latest' && $version != 'current')
{
$this->__failed('Migration version must be either latest or current');
}
elseif ($this->cli && !$this->migration->$version())
{
show_error($this->migration->error_string());
}
elseif (!$this->migration->$version())
{
$this->__failed();
}
$this->__succeeded();
}
/**
* Migrate to a specific version
*
* @return void
*/
public function version()
{
if ($version == 'latest' || $version == 'current')
{
$this->index($version);
exit;
}
if (!$this->migrate->version($version))
{
$this->__failed();
}
$this->__succeeded();
}
/**
* Roll-back to the last version before current
*
* @param int $version The migration to rollback to, defaults to previous
* @return void
*/
public function rollback($version = null)
{
if (is_null($version))
{
$version = $this->__getVersion() ?: 1;
$version--;
}
// Check it's definitely false, we could be rolling back to v0
if (false === $this->migration->version($version))
{
$this->__failed();
}
$this->__succeeded('rolled back');
}
/**
* ROLLBACK ALL THE THINGS!
*
* @return void
*/
public function uninstall()
{
$this->rollback(0);
}
/**
* Seeds DB with Testdata
*
* @param string $name Name of the seed file.
* @return bool
*/
public function seed($name = null)
{
$seeds = $this->findSeeds();
if (empty($seeds))
{
$this->_error_string = $this->lang->line('seed_none_found');
return false;
}
$method = 'seed';
$pending = array();
foreach ($seeds as $number => $file)
{
include_once($file);
$class = 'Seed_'.ucfirst(strtolower($this->_getSeedName(basename($file, '.php'))));
// Validate the seed file structure
if (! class_exists($class, false))
{
$this->_error_string = sprintf($this->lang->line('seed_class_doesnt_exist'), $class);
return false;
}
// method_exists() returns true for non-public methods,
// while is_callable() can't be used without instantiating.
// Only get_class_methods() satisfies both conditions.
elseif (! in_array($method, array_map('strtolower', get_class_methods($class))))
{
$this->_error_string = sprintf($this->lang->line('seed_missing_'.$method.'_method'), $class);
return false;
}
$pending[$number] = array($class, $method);
}
// Now just run the necessary seeds
foreach ($pending as $number => $seed)
{
if (is_null($name))
{
log_message('debug', 'Seeding '.$method);
$seed[0] = new $seed[0];
call_user_func($seed);
}
elseif ($seed[0] == 'Seed_'.$name)
{
log_message('debug', 'Seeding '.$method);
$seed[0] = new $seed[0];
call_user_func($seed);
}
}
}
/**
* Retrieves list of available seed files
*
* @return array list of seed file paths sorted by version
*/
public function findSeeds()
{
$seeds = array();
// Load all *_*.php files in the seeds path
foreach (glob($this->seed_path.'*_*.php') as $file)
{
$name = basename($file, '.php');
// Filter out non-seed files
if (preg_match($this->seed_regex, $name))
{
$number = $this->_getSeedNumber($name);
// There cannot be duplicate seed numbers
if (isset($seeds[$number]))
{
$this->_error_string = sprintf($this->lang->line('seed_multiple_version'), $number);
show_error($this->_error_string);
}
$seeds[$number] = $file;
}
}
ksort($seeds);
return $seeds;
}
/**
* Truncate DB from Testdata
*
* @param string $name Name of the seed file.
* @return bool
*/
public function truncate($name)
{
$seeds = $this->findSeeds();
if (empty($name))
{
$this->_error_string = $this->lang->line('seed_none_found');
return false;
}
$method = 'truncate';
$pending = array();
foreach ($seeds as $number => $file)
{
include_once($file);
$class = 'Seed_'.ucfirst(strtolower($this->_getSeedName(basename($file, '.php'))));
// Validate the seed file structure
if (! class_exists($class, false))
{
$this->_error_string = sprintf($this->lang->line('seed_class_doesnt_exist'), $class);
return false;
}
// method_exists() returns true for non-public methods,
// while is_callable() can't be used without instantiating.
// Only get_class_methods() satisfies both conditions.
elseif (! in_array($method, array_map('strtolower', get_class_methods($class))))
{
$this->_error_string = sprintf($this->lang->line('seed_missing_'.$method.'_method'), $class);
return false;
}
$pending[$number] = array($class, $method);
}
// Now just run the necessary seeds
foreach ($pending as $number => $seed)
{
if (is_null($name))
{
log_message('debug', 'Seeding '.$method);
$seed[0] = new $seed[0];
call_user_func($seed);
}
elseif ($seed[0] == 'Seed_'.$name)
{
log_message('debug', 'Seeding '.$method);
$seed[0] = new $seed[0];
call_user_func($seed);
}
}
}
/**
* Extracts the seed number from a filename
*
* @param string $seed Filename of the seed.
* @return string Numeric portion of a seed filename
*/
protected function _getSeedNumber($seed)
{
return sscanf($seed, '%[0-9]+', $number)
? $number : '0';
}
/**
* Extracts the seed class name from a filename
*
* @param string $seed Filename of the seed.
* @return string text portion of a migration filename
*/
protected function _getSeedName($seed)
{
$parts = explode('_', $seed);
array_shift($parts);
return implode('_', $parts);
}
/**
* Yay, it worked! Tell the user.
*
* @param string $task What did we just do? We...
* @return void
*/
private function __succeeded($task = 'migrated')
{
$version = $this->__getVersion();
exit('Successfully '.$task.' to version '.$version);
}
/**
* Output an error message when it all goes tits up
*
* @param string $message Error to output (default to CI's migration error)
* @return void
*/
private function __failed($message = null)
{
$message = $message ?: $this->migration->error_string();
show_error($message);
}
/**
* Carbon copy of parent::__getVersion, but that's protected.
*
* @return int Currently installed migration number
*/
private function __getVersion()
{
$row = $this->db->get($this->config->item('migration_table'))->row();
return $row ? $row->version : 0;
}
/**
* Check DB for different things like permissions or roles
*
* @param string $action What to check.
* @return void
*/
public function check($action = 'schema')
{
echo 'DB-Check';
switch ($action)
{
// **** Permission ****
// ToDo: Check Persmissions in the bottom of this file
case 'permissions':
//var_dump($this->config->item('fhc_acl'));
echo ' Permissions!';
//$this->config->load('roles');
foreach ($this->config->item('fhc_acl') as $b)
{
$qry = "SELECT * FROM system.tbl_berechtigung
WHERE berechtigung_kurzbz='".$b."';";
if($result = $this->db->query($qry))
{
if($result->num_rows($result)==0)
{
// Nicht vorhanden -> anlegen
$qry_insert="INSERT INTO system.tbl_berechtigung (berechtigung_kurzbz) VALUES('".$b."');";
if($this->db->query($qry_insert))
{
echo '<br>Recht '.$b.' <b>hinzugefügt</b>';
$neue=true;
}
else
echo '<br><span class="error">Fehler: Recht '.$b.' hinzufügen nicht möglich</span>';
}
else
echo "- $b -";
}
}
break;
// **** Roles ****
case 'roles':
echo ' Roles!';
$this->config->load('roles');
foreach ($this->config->item('roles') as $role)
foreach ($role['berechtigung'] as $b)
{
$qry = "SELECT * FROM system.tbl_rolleberechtigung
WHERE rolle_kurzbz='".$role['rolle_kurzbz']."'
AND berechtigung_kurzbz='".$b."';";
if($result = $this->db->query($qry))
{
if($result->num_rows($result)==0)
{
// Nicht vorhanden -> anlegen
$qry_insert="INSERT INTO system.tbl_rolleberechtigung (rolle_kurzbz, berechtigung_kurzbz, art) VALUES ('".$role['rolle_kurzbz']."','".$b."', 'suid');";
if($this->db->query($qry_insert))
{
echo '<br>'.$role['rolle_kurzbz'].' -> '.$b.' <b>hinzugefügt</b>';
$neue=true;
}
else
echo '<br><span class="error">Fehler: '.$role['rolle_kurzbz'].' -> '.$b.' hinzufügen nicht möglich</span>';
}
else
echo "- $b -";
}
}
break;
// **** Default ****
default: echo ' what? roles or permisssions?';
exit();
}
exit('Succesfully checked!');
}
/**
* Create User in DB
*
* @param string $action What to check.
* @return void
*/
public function createadminuser($uid, $person_id = 1)
{
echo 'Create User!';
$qry = "SELECT * FROM public.tbl_benutzer
WHERE uid='".$uid."';";
if ($result = $this->db->query($qry))
{
if ($result->num_rows($result)==0)
{
// Nicht vorhanden -> anlegen
$qry_insert="INSERT INTO public.tbl_benutzer (uid, person_id) VALUES('".$uid."', ".$person_id.");";
if($this->db->query($qry_insert))
echo '<br>User '.$uid.' <b>angelegt</b>';
else
echo '<br><span class="error">Fehler: User '.$uid.' anlegen nicht möglich!</span>';
// Join Role Admin
$qry_insert="INSERT INTO system.tbl_benutzerrolle (rolle_kurzbz, uid) VALUES('admin','".$uid."');";
if($this->db->query($qry_insert))
echo '<br>Rolle Admin für User '.$uid.' <b>hinzugefügt</b>';
else
echo '<br><span class="error">Rolle Admin hinzufügen für User '.$b.' hinzufügen nicht möglich</span>';
}
}
exit('Succesfully created User!');
}
}
/* Check also this permissions:
basis/fhausweis -> Verwaltungstools für FH Ausweis Kartentausch, Bildpruefung, Druck hinzugefügt
buchung/typen -> Verwaltung von Buchungstypen hinzugefügt
buchung/mitarbeiter -> Verwaltung von Buchungen fuer Mitarbeiter hinzugefügt
inout/incoming -> Incomingverwaltung hinzugefügt
inout/outgoing -> Outgoingverwaltung hinzugefügt
inout/uebersicht -> Verbandsanzeige fuer Incoming/Outgoing im FAS hinzugefügt
lehre/lehrfach:begrenzt -> Lehrfachverwaltung - nur aktiv aenderbar, nur aktive LF werden angezeigt hinzugefügt
lehre/pruefungsanmeldungAdmin -> Erlaubt die Verwaltung der Prüfungsanmeldungen. hinzugefügt
lehre/pruefungsbeurteilung -> Erlaubt dem Benutzer Beurteilungen zu Prüfungen einzutragen. hinzugefügt
lehre/pruefungsbeurteilungAdmin -> Erlaubt dem Benutzer für alle Prüfungen Beurteilungen einzutragen. hinzugefügt
lehre/pruefungsterminAdmin -> Recht für jeden Lektor eine Prüfung anzulegen hinzugefügt
lehre/pruefungsfenster -> Erlaubt dem Benutzer Prüfungsfenster anzulegen. hinzugefügt
lv-plan/gruppenentfernen -> Erlaut das Entfernen von Gruppen aus LVPlan vom FAS aus hinzugefügt
lv-plan/lektorentfernen -> Erlaut das Entfernen von Lektoren aus LVPlan vom FAS aus hinzugefügt
mitarbeiter/bankdaten -> Bankdaten für Mitarbeiter und Studierende anzeigen hinzugefügt
mitarbeiter/personalnummer -> Editieren der Personalnummer im FAS hinzugefügt
mitarbeiter/urlaube -> Mit diesem Recht werden im CIS die Urlaube von allen Mitarbeiter sichtbar hinzugefügt
planner -> Planner Verwaltung hinzugefügt
reihungstest -> Recht für Anzeige des Reihungstests im Vilesci hinzugefügt
sdTools -> Recht für Anzeige der SD-Tools im Vilesci hinzugefügt
soap/lv -> Recht für LV Webservice hinzugefügt
soap/lvplan -> Recht für LV-Plan Webservice hinzugefügt
soap/mitarbeiter -> Recht für Mitarbeiter-Webservice hinzugefügt
soap/ort -> Recht für Ort Webservice hinzugefügt
soap/pruefungsfenster -> Recht für Pruefungsfenster Webservice hinzugefügt
soap/student -> Recht für Student Webservice hinzugefügt
soap/studienordnung -> Recht für Studienordnung Webservice hinzugefügt
soap/benutzer -> Berechtigung für Bentutzerabfrage Addon Kontoimport hinzugefügt
soap/buchungen -> Berechtigung für Buchungsabfrage Addon Kontoimport hinzugefügt
student/bankdaten -> Bankdaten des Studenten hinzugefügt
student/anrechnung -> Anrechnungen des Studenten hinzugefügt
student/anwesenheit -> Anwesenheiten im FAS hinzugefügt
system/developer -> Anzeige zusätzlicher Developerinfos hinzugefügt
system/loginasuser -> Berechtigung zum Einloggen als anderer User hinzugefügt
vertrag/mitarbeiter -> Verwalten von Vertraegen hinzugefügt
vertrag/typen -> Verwalten von Vertragstypen hinzugefügt
wawi/berichte -> Alle Berichte anzeigen hinzugefügt
wawi/delete_advanced -> Loeschen von freigegebenen Bestellungen hinzugefügt
Webservice Berechtigungen pruefen
soap/studienordnung/load_lva_oe->lehrveranstaltung hinzugefügt
soap/studienordnung/load->lehrveranstaltung hinzugefügt
soap/studienordnung/deleteStudienplanLehrveranstaltung->studienplan hinzugefügt
soap/studienordnung/containsLehrveranstaltung->studienplan hinzugefügt
soap/studienordnung/loadStudienplanLehrveranstaltung->studienplan hinzugefügt
soap/studienordnung/saveStudienplanLehrveranstaltung->studienplan hinzugefügt
soap/studienordnung/loadStudienordnung->studienordnung hinzugefügt
soap/studienordnung/delete->lvregel hinzugefügt
soap/studienordnung/save->lvregel hinzugefügt
soap/studienordnung/load->lvregel hinzugefügt
soap/studienordnung/loadLVRegelTypen->lvregel hinzugefügt
soap/studienordnung/load_lva->lehrveranstaltung hinzugefügt
soap/studienordnung/getAll->lehrtyp hinzugefügt
soap/studienordnung/getAll->organisationseinheit hinzugefügt
soap/studienordnung/getLVRegelTree->lvregel hinzugefügt
soap/studienordnung/save->studienplan hinzugefügt
soap/studienordnung/save->studienordnung hinzugefügt
soap/studienordnung/loadStudienplanSTO->studienplan hinzugefügt
soap/studienordnung/loadStudienordnungSTG->studienordnung hinzugefügt
soap/studienordnung/loadStudienordnungSTGInaktiv->studienordnung hinzugefügt
soap/studienordnung/loadStudienplan->studienplan hinzugefügt
soap/studienordnung/saveSemesterZuordnung->studienordnung hinzugefügt
soap/studienordnung/deleteSemesterZuordnung->studienordnung hinzugefügt
soap/studienordnung/getLVkompatibel->lehrveranstaltung hinzugefügt
soap/studienordnung/getLvTree->lehrveranstaltung hinzugefügt
soap/pruefungsfenster/getByStudiensemester->pruefungsfenster hinzugefügt
soap/studienordnung/exists->lvregel hinzugefügt
soap/studienordnung/saveSortierung->studienplan hinzugefügt
soap/benutzer/search->benutzer hinzugefügt
soap/buchungen/getBuchungen-> */
-34
View File
@@ -1,34 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined("BASEPATH")) exit("No direct script access allowed");
class MailJob extends FHC_Controller
{
/**
* API constructor
*/
public function __construct()
{
parent::__construct();
// Loads MessageLib
$this->load->library("MessageLib");
}
public function sendMessages($numberToSent = null, $numberPerTimeRange = null, $email_time_range = null, $email_from_system = null)
{
$this->messagelib->sendAll($numberToSent, $numberPerTimeRange, $email_time_range, $email_from_system);
}
}
-37
View File
@@ -1,37 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Redirect extends FHC_Controller
{
/**
* API constructor
*/
public function __construct()
{
parent::__construct();
// Loads config file fhcomplete
$this->config->load('fhcomplete');
}
public function redirectByToken($token)
{
if (isset($token))
{
redirect($this->config->item('addons_aufnahme_url') . '?token=' . $token);
}
}
}
-52
View File
@@ -1,52 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class ViewMessage extends CI_Controller
{
/**
* API constructor
*/
public function __construct()
{
parent::__construct();
// Loading config file message
$this->config->load('message');
// Load model MessageToken_model
$this->load->model('system/MessageToken_model', 'MessageTokenModel');
}
public function toHTML($token)
{
$msg = $this->MessageTokenModel->getMessageByToken($token);
if ($msg->error)
{
show_error($msg->retval);
}
if (is_array($msg->retval) && count($msg->retval) > 0)
{
$data = array (
'message' => $msg->retval[0],
'href' => APP_ROOT . $this->config->item('redirect_view_message_url') . $token
);
$this->load->view('system/messageHTML.php', $data);
}
}
}
-29
View File
@@ -1,29 +0,0 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
class Vilesci extends FHC_Controller
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
* @return void
*/
public function index()
{
$this->load->view('templates/header');
$this->load->view('vilesci_frameset');
$this->load->view('templates/footer');
}
}
-11
View File
@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
@@ -1,44 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class CheckUserAuth extends APIv1_Controller
{
/**
* Course API constructor.
*/
public function __construct()
{
parent::__construct();
$this->load->model('CheckUserAuth_model', 'CheckUserAuthModel');
}
public function getCheckByUsernamePassword()
{
$username = $this->get("username");
$password = $this->get("password");
if (isset($username) && isset($password))
{
$result = $this->CheckUserAuthModel->checkByUsernamePassword($username, $password);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
}
-52
View File
@@ -1,52 +0,0 @@
<?php
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
{
public function __construct()
{
parent::__construct();
}
/**
* Test HTTP GET method
* It responses whith the HTTP status 200 and prints this JSON string
* {"success":true,"message":"API HTTP GET call test succeed"}
*
* @return void
*/
public function getTest()
{
$payload = [
'success' => TRUE,
'message' => 'API HTTP GET call test succeed',
'error' => 0
];
$httpstatus = REST_Controller::HTTP_OK;
$this->response($payload, $httpstatus);
}
/**
* Test HTTP POST method
* * It responses whith the HTTP status 200 and prints this JSON string
* {"success":true,"message":"API HTTP POST call test succeed"}
*
* @return void
*/
public function postTest()
{
$payload = [
'success' => TRUE,
'message' => 'API HTTP POST call test succeed',
'error' => 0
];
$httpstatus = REST_Controller::HTTP_OK;
$this->response($payload, $httpstatus);
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufteilung extends APIv1_Controller
{
/**
* Aufteilung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufteilungModel
$this->load->model('accounting/aufteilung_model', 'AufteilungModel');
}
/**
* @return void
*/
public function getAufteilung()
{
$aufteilungID = $this->get('aufteilung_id');
if (isset($aufteilungID))
{
$result = $this->AufteilungModel->load($aufteilungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufteilung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['aufteilung_id']))
{
$result = $this->AufteilungModel->update($this->post()['aufteilung_id'], $this->post());
}
else
{
$result = $this->AufteilungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufteilung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestelldetail extends APIv1_Controller
{
/**
* Bestelldetail API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestelldetailModel
$this->load->model('accounting/bestelldetail_model', 'BestelldetailModel');
}
/**
* @return void
*/
public function getBestelldetail()
{
$bestelldetailID = $this->get('bestelldetail_id');
if (isset($bestelldetailID))
{
$result = $this->BestelldetailModel->load($bestelldetailID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestelldetail()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bestelldetail_id']))
{
$result = $this->BestelldetailModel->update($this->post()['bestelldetail_id'], $this->post());
}
else
{
$result = $this->BestelldetailModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestelldetail = NULL)
{
return true;
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestelldetailtag extends APIv1_Controller
{
/**
* Bestelldetailtag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestelldetailtagModel
$this->load->model('accounting/bestelldetailtag_model', 'BestelldetailtagModel');
}
/**
* @return void
*/
public function getBestelldetailtag()
{
$bestelldetail_id = $this->get('bestelldetail_id');
$tag = $this->get('tag');
if (isset($bestelldetail_id) && isset($tag))
{
$result = $this->BestelldetailtagModel->load(array($bestelldetail_id, $tag));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestelldetailtag()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bestelldetailtag_id']))
{
$result = $this->BestelldetailtagModel->update($this->post()['bestelldetailtag_id'], $this->post());
}
else
{
$result = $this->BestelldetailtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestelldetailtag = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellstatus extends APIv1_Controller
{
/**
* Bestellstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellstatusModel
$this->load->model('accounting/bestellstatus_model', 'BestellstatusModel');
}
/**
* @return void
*/
public function getBestellstatus()
{
$bestellstatus_kurzbz = $this->get('bestellstatus_kurzbz');
if (isset($bestellstatus_kurzbz))
{
$result = $this->BestellstatusModel->load($bestellstatus_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellstatus()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bestellstatus_kurzbz']))
{
$result = $this->BestellstatusModel->update($this->post()['bestellstatus_kurzbz'], $this->post());
}
else
{
$result = $this->BestellstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellstatus = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellung extends APIv1_Controller
{
/**
* Bestellung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellungModel
$this->load->model('accounting/bestellung_model', 'BestellungModel');
}
/**
* @return void
*/
public function getBestellung()
{
$bestellungID = $this->get('bestellung_id');
if (isset($bestellungID))
{
$result = $this->BestellungModel->load($bestellungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bestellung_id']))
{
$result = $this->BestellungModel->update($this->post()['bestellung_id'], $this->post());
}
else
{
$result = $this->BestellungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellung = NULL)
{
return true;
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellungtag extends APIv1_Controller
{
/**
* Bestellungtag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BestellungtagModel
$this->load->model('accounting/bestellungtag_model', 'BestellungtagModel');
}
/**
* @return void
*/
public function getBestellungtag()
{
$bestellung_id = $this->get('bestellung_id');
$tag = $this->get('tag');
if (isset($bestellung_id) && isset($tag))
{
$result = $this->BestellungtagModel->load(array($bestellung_id, $tag));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBestellungtag()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bestellungtag_id']))
{
$result = $this->BestellungtagModel->update($this->post()['bestellungtag_id'], $this->post());
}
else
{
$result = $this->BestellungtagModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bestellungtag = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchung extends APIv1_Controller
{
/**
* Buchung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungModel
$this->load->model('accounting/buchung_model', 'BuchungModel');
}
/**
* @return void
*/
public function getBuchung()
{
$buchungID = $this->get('buchung_id');
if (isset($buchungID))
{
$result = $this->BuchungModel->load($buchungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['buchung_id']))
{
$result = $this->BuchungModel->update($this->post()['buchung_id'], $this->post());
}
else
{
$result = $this->BuchungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchungstyp extends APIv1_Controller
{
/**
* Buchungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungstypModel
$this->load->model('accounting/buchungstyp_model', 'BuchungstypModel');
}
/**
* @return void
*/
public function getBuchungstyp()
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchungstyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['buchungstyp_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $this->post());
}
else
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchungstyp = NULL)
{
return true;
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Budget extends APIv1_Controller
{
/**
* Budget API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BudgetModel
$this->load->model('accounting/budget_model', 'BudgetModel');
}
/**
* @return void
*/
public function getBudget()
{
$kostenstelle_id = $this->get('kostenstelle_id');
$geschaeftsjahr_kurzbz = $this->get('geschaeftsjahr_kurzbz');
if (isset($kostenstelle_id) && isset($geschaeftsjahr_kurzbz))
{
$result = $this->BudgetModel->load(array($kostenstelle_id, $geschaeftsjahr_kurzbz));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBudget()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['budget_id']) && isset($this->post()['geschaeftsjahr_kurzbz']))
{
$result = $this->BudgetModel->update(array($this->post()['budget_id'], $this->post()['geschaeftsjahr_kurzbz']), $this->post());
}
else
{
$result = $this->BudgetModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($budget = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Konto extends APIv1_Controller
{
/**
* Konto API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KontoModel
$this->load->model('accounting/konto_model', 'KontoModel');
}
/**
* @return void
*/
public function getKonto()
{
$kontoID = $this->get('konto_id');
if (isset($kontoID))
{
$result = $this->KontoModel->load($kontoID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKonto()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['konto_id']))
{
$result = $this->KontoModel->update($this->post()['konto_id'], $this->post());
}
else
{
$result = $this->KontoModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($konto = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kostenstelle extends APIv1_Controller
{
/**
* Kostenstelle API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model KostenstelleModel
$this->load->model('accounting/kostenstelle_model', 'KostenstelleModel');
}
/**
* @return void
*/
public function getKostenstelle()
{
$kostenstelleID = $this->get('kostenstelle_id');
if (isset($kostenstelleID))
{
$result = $this->KostenstelleModel->load($kostenstelleID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postKostenstelle()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['kostenstelle_id']))
{
$result = $this->KostenstelleModel->update($this->post()['kostenstelle_id'], $this->post());
}
else
{
$result = $this->KostenstelleModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($kostenstelle = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnung extends APIv1_Controller
{
/**
* Rechnung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungModel
$this->load->model('accounting/rechnung_model', 'RechnungModel');
}
/**
* @return void
*/
public function getRechnung()
{
$rechnungID = $this->get('rechnung_id');
if (isset($rechnungID))
{
$result = $this->RechnungModel->load($rechnungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['rechnung_id']))
{
$result = $this->RechnungModel->update($this->post()['rechnung_id'], $this->post());
}
else
{
$result = $this->RechnungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnungsbetrag extends APIv1_Controller
{
/**
* Rechnungsbetrag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungsbetragModel
$this->load->model('accounting/rechnungsbetrag_model', 'RechnungsbetragModel');
}
/**
* @return void
*/
public function getRechnungsbetrag()
{
$rechnungsbetragID = $this->get('rechnungsbetrag_id');
if (isset($rechnungsbetragID))
{
$result = $this->RechnungsbetragModel->load($rechnungsbetragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnungsbetrag()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['rechnungsbetrag_id']))
{
$result = $this->RechnungsbetragModel->update($this->post()['rechnungsbetrag_id'], $this->post());
}
else
{
$result = $this->RechnungsbetragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnungsbetrag = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnungstyp extends APIv1_Controller
{
/**
* Rechnungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model RechnungstypModel
$this->load->model('accounting/rechnungstyp_model', 'RechnungstypModel');
}
/**
* @return void
*/
public function getRechnungstyp()
{
$rechnungstyp_kurzbz = $this->get('rechnungstyp_kurzbz');
if (isset($rechnungstyp_kurzbz))
{
$result = $this->RechnungstypModel->load($rechnungstyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postRechnungstyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['rechnungstyp_kurzbz']))
{
$result = $this->RechnungstypModel->update($this->post()['rechnungstyp_kurzbz'], $this->post());
}
else
{
$result = $this->RechnungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($rechnungstyp = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertrag extends APIv1_Controller
{
/**
* Vertrag API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragModel
$this->load->model('accounting/vertrag_model', 'VertragModel');
}
/**
* @return void
*/
public function getVertrag()
{
$vertragID = $this->get('vertrag_id');
if (isset($vertragID))
{
$result = $this->VertragModel->load($vertragID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertrag()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['vertrag_id']))
{
$result = $this->VertragModel->update($this->post()['vertrag_id'], $this->post());
}
else
{
$result = $this->VertragModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertrag = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertragsstatus extends APIv1_Controller
{
/**
* Vertragsstatus API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragsstatusModel
$this->load->model('accounting/vertragsstatus_model', 'VertragsstatusModel');
}
/**
* @return void
*/
public function getVertragsstatus()
{
$vertragsstatus_kurzbz = $this->get('vertragsstatus_kurzbz');
if (isset($vertragsstatus_kurzbz))
{
$result = $this->VertragsstatusModel->load($vertragsstatus_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertragsstatus()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['vertragsstatus_kurzbz']))
{
$result = $this->VertragsstatusModel->update($this->post()['vertragsstatus_kurzbz'], $this->post());
}
else
{
$result = $this->VertragsstatusModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertragsstatus = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertragstyp extends APIv1_Controller
{
/**
* Vertragstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VertragstypModel
$this->load->model('accounting/vertragstyp_model', 'VertragstypModel');
}
/**
* @return void
*/
public function getVertragstyp()
{
$vertragstyp_kurzbz = $this->get('vertragstyp_kurzbz');
if (isset($vertragstyp_kurzbz))
{
$result = $this->VertragstypModel->load($vertragstyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVertragstyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['vertragstyp_kurzbz']))
{
$result = $this->VertragstypModel->update($this->post()['vertragstyp_kurzbz'], $this->post());
}
else
{
$result = $this->VertragstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($vertragstyp = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zahlungstyp extends APIv1_Controller
{
/**
* Zahlungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZahlungstypModel
$this->load->model('accounting/zahlungstyp_model', 'ZahlungstypModel');
}
/**
* @return void
*/
public function getZahlungstyp()
{
$zahlungstyp_kurzbz = $this->get('zahlungstyp_kurzbz');
if (isset($zahlungstyp_kurzbz))
{
$result = $this->ZahlungstypModel->load($zahlungstyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZahlungstyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zahlungstyp_kurzbz']))
{
$result = $this->ZahlungstypModel->update($this->post()['zahlungstyp_kurzbz'], $this->post());
}
else
{
$result = $this->ZahlungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zahlungstyp = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Akadgrad extends APIv1_Controller
{
/**
* Akadgrad API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AkadgradModel
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
}
/**
* @return void
*/
public function getAkadgrad()
{
$akadgradID = $this->get('akadgrad_id');
if (isset($akadgradID))
{
$result = $this->AkadgradModel->load($akadgradID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAkadgrad()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['akadgrad_id']))
{
$result = $this->AkadgradModel->update($this->post()['akadgrad_id'], $this->post());
}
else
{
$result = $this->AkadgradModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($akadgrad = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Archiv extends APIv1_Controller
{
/**
* Archiv API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ArchivModel
$this->load->model('codex/archiv_model', 'ArchivModel');
}
/**
* @return void
*/
public function getArchiv()
{
$archivID = $this->get('archiv_id');
if (isset($archivID))
{
$result = $this->ArchivModel->load($archivID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postArchiv()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['archiv_id']))
{
$result = $this->ArchivModel->update($this->post()['archiv_id'], $this->post());
}
else
{
$result = $this->ArchivModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($archiv = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufmerksamdurch extends APIv1_Controller
{
/**
* Aufmerksamdurch API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufmerksamdurchModel
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
}
/**
* @return void
*/
public function getAufmerksamdurch()
{
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
if (isset($aufmerksamdurch_kurzbz))
{
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufmerksamdurch()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['aufmerksamdurch_kurzbz']))
{
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_kurzbz'], $this->post());
}
else
{
$result = $this->AufmerksamdurchModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufmerksamdurch = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ausbildung extends APIv1_Controller
{
/**
* Ausbildung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AusbildungModel
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
}
/**
* @return void
*/
public function getAusbildung()
{
$ausbildungcode = $this->get('ausbildungcode');
if (isset($ausbildungcode))
{
$result = $this->AusbildungModel->load($ausbildungcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAusbildung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['ausbildungcode']))
{
$result = $this->AusbildungModel->update($this->post()['ausbildungcode'], $this->post());
}
else
{
$result = $this->AusbildungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($ausbildung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Berufstaetigkeit extends APIv1_Controller
{
/**
* Berufstaetigkeit API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BerufstaetigkeitModel
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
}
/**
* @return void
*/
public function getBerufstaetigkeit()
{
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
if (isset($berufstaetigkeit_code))
{
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBerufstaetigkeit()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['berufstaetigkeit_code']))
{
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_code'], $this->post());
}
else
{
$result = $this->BerufstaetigkeitModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($berufstaetigkeit = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Beschaeftigungsausmass extends APIv1_Controller
{
/**
* Beschaeftigungsausmass API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BeschaeftigungsausmassModel
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
}
/**
* @return void
*/
public function getBeschaeftigungsausmass()
{
$beschausmasscode = $this->get('beschausmasscode');
if (isset($beschausmasscode))
{
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBeschaeftigungsausmass()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['beschausmasscode']))
{
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschausmasscode'], $this->post());
}
else
{
$result = $this->BeschaeftigungsausmassModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($beschaeftigungsausmass = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Besqual extends APIv1_Controller
{
/**
* Besqual API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BesqualModel
$this->load->model('codex/besqual_model', 'BesqualModel');
}
/**
* @return void
*/
public function getBesqual()
{
$besqualcode = $this->get('besqualcode');
if (isset($besqualcode))
{
$result = $this->BesqualModel->load($besqualcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBesqual()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['besqualcode']))
{
$result = $this->BesqualModel->update($this->post()['besqualcode'], $this->post());
}
else
{
$result = $this->BesqualModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($besqual = NULL)
{
return true;
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisfunktion extends APIv1_Controller
{
/**
* Bisfunktion API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BisfunktionModel
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
}
/**
* @return void
*/
public function getBisfunktion()
{
$studiengang_kz = $this->get('studiengang_kz');
$bisverwendung_id = $this->get('bisverwendung_id');
if (isset($studiengang_kz) && isset($bisverwendung_id))
{
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBisfunktion()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['studiengang_kz']) && isset($this->post()['bisverwendung_id']))
{
$result = $this->BisfunktionModel->update(array($this->post()['studiengang_kz'], $this->post()['bisverwendung_id']), $this->post());
}
else
{
$result = $this->BisfunktionModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bisfunktion = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisio extends APIv1_Controller
{
/**
* Bisio API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BisioModel
$this->load->model('codex/bisio_model', 'BisioModel');
}
/**
* @return void
*/
public function getBisio()
{
$bisioID = $this->get('bisio_id');
if (isset($bisioID))
{
$result = $this->BisioModel->load($bisioID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBisio()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bisio_id']))
{
$result = $this->BisioModel->update($this->post()['bisio_id'], $this->post());
}
else
{
$result = $this->BisioModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bisio = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisorgform extends APIv1_Controller
{
/**
* Bisorgform API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BisorgformModel
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
}
/**
* @return void
*/
public function getBisorgform()
{
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
if (isset($bisorgform_kurzbz))
{
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBisorgform()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bisorgform_kurzbz']))
{
$result = $this->BisorgformModel->update($this->post()['bisorgform_kurzbz'], $this->post());
}
else
{
$result = $this->BisorgformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bisorgform = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisverwendung extends APIv1_Controller
{
/**
* Bisverwendung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BisverwendungModel
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
}
/**
* @return void
*/
public function getBisverwendung()
{
$bisverwendungID = $this->get('bisverwendung_id');
if (isset($bisverwendungID))
{
$result = $this->BisverwendungModel->load($bisverwendungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBisverwendung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bisverwendung_id']))
{
$result = $this->BisverwendungModel->update($this->post()['bisverwendung_id'], $this->post());
}
else
{
$result = $this->BisverwendungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bisverwendung = NULL)
{
return true;
}
}
@@ -1,35 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bundesland extends APIv1_Controller
{
/**
* Course API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model PersonModel
$this->load->model('codex/bundesland_model', 'BundeslandModel');
}
public function getAll()
{
$result = $this->BundeslandModel->load();
$this->response($result, REST_Controller::HTTP_OK);
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Entwicklungsteam extends APIv1_Controller
{
/**
* Entwicklungsteam API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model EntwicklungsteamModel
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
}
/**
* @return void
*/
public function getEntwicklungsteam()
{
$studiengang_kz = $this->get('studiengang_kz');
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
if (isset($studiengang_kz) && isset($mitarbeiter_uid))
{
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postEntwicklungsteam()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['studiengang_kz']) && isset($this->post()['mitarbeiter_uid']))
{
$result = $this->EntwicklungsteamModel->update(array($this->post()['entwicklungsteam_id'], $this->post()['mitarbeiter_uid']), $this->post());
}
else
{
$result = $this->EntwicklungsteamModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($entwicklungsteam = NULL)
{
return true;
}
}
@@ -1,96 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined("BASEPATH")) exit("No direct script access allowed");
class Gemeinde extends APIv1_Controller
{
/**
* Gemeinde API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model GemeindeModel
$this->load->model("codex/gemeinde_model", "GemeindeModel");
}
/**
* @return void
*/
public function getGemeinde()
{
$gemeindeID = $this->get("gemeinde_id");
$this->GemeindeModel->addOrder("plz");
if (isset($gemeindeID))
{
$result = $this->GemeindeModel->load($gemeindeID);
}
else
{
$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
{
$this->response();
}
}
/**
* @return void
*/
public function postGemeinde()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()["gemeinde_id"]))
{
$result = $this->GemeindeModel->update($this->post()["gemeinde_id"], $this->post());
}
else
{
$result = $this->GemeindeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($gemeinde = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Hauptberuf extends APIv1_Controller
{
/**
* Hauptberuf API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model HauptberufModel
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
}
/**
* @return void
*/
public function getHauptberuf()
{
$hauptberufcode = $this->get('hauptberufcode');
if (isset($hauptberufcode))
{
$result = $this->HauptberufModel->load($hauptberufcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postHauptberuf()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['hauptberufcode']))
{
$result = $this->HauptberufModel->update($this->post()['hauptberufcode'], $this->post());
}
else
{
$result = $this->HauptberufModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($hauptberuf = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrform extends APIv1_Controller
{
/**
* Lehrform API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model LehrformModel
$this->load->model('codex/lehrform_model', 'LehrformModel');
}
/**
* @return void
*/
public function getLehrform()
{
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
if (isset($lehrform_kurzbz))
{
$result = $this->LehrformModel->load($lehrform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postLehrform()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['lehrform_kurzbz']))
{
$result = $this->LehrformModel->update($this->post()['lehrform_kurzbz'], $this->post());
}
else
{
$result = $this->LehrformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($lehrform = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lgartcode extends APIv1_Controller
{
/**
* Lgartcode API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model LgartcodeModel
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
}
/**
* @return void
*/
public function getLgartcode()
{
$lgartcode = $this->get('lgartcode');
if (isset($lgartcode))
{
$result = $this->LgartcodeModel->load($lgartcode);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postLgartcode()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['lgartcode']))
{
$result = $this->LgartcodeModel->update($this->post()['lgartcode'], $this->post());
}
else
{
$result = $this->LgartcodeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($lgartcode = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Mobilitaetsprogramm extends APIv1_Controller
{
/**
* Mobilitaetsprogramm API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model MobilitaetsprogrammModel
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
}
/**
* @return void
*/
public function getMobilitaetsprogramm()
{
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
if (isset($mobilitaetsprogramm_code))
{
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postMobilitaetsprogramm()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['mobilitaetsprogramm_code']))
{
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_code'], $this->post());
}
else
{
$result = $this->MobilitaetsprogrammModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($mobilitaetsprogramm = NULL)
{
return true;
}
}
@@ -1,70 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Nation extends APIv1_Controller
{
/**
* Course API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model NationModel
$this->load->model('codex/nation_model', 'NationModel');
}
public function getNation()
{
$nation_code = $this->get("nation_code");
if (isset($nation_code))
{
$result = $this->NationModel->loadWhere(array('nation_code' => $nation_code));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
public function getAll()
{
if (!$this->get('orderEnglish'))
{
$result = $this->NationModel->addOrder('kurztext');
}
else
{
$result = $this->NationModel->addOrder('engltext');
}
if (isSuccess($result))
{
if ($this->get('ohnesperre'))
{
$result = $this->NationModel->loadWhere('sperre IS NULL');
}
else
{
$result = $this->NationModel->load();
}
}
$this->response($result, REST_Controller::HTTP_OK);
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Note extends APIv1_Controller
{
/**
* Note API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model NoteModel
$this->load->model('codex/note_model', 'NoteModel');
}
/**
* @return void
*/
public function getNote()
{
$note = $this->get('note');
if (isset($note))
{
$result = $this->NoteModel->load($note);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postNote()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['note']))
{
$result = $this->NoteModel->update($this->post()['note'], $this->post());
}
else
{
$result = $this->NoteModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($note = NULL)
{
return true;
}
}
@@ -1,96 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Orgform extends APIv1_Controller
{
/**
* Orgform API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model OrgformModel
$this->load->model('codex/orgform_model', 'OrgformModel');
}
/**
* @return void
*/
public function getOrgform()
{
$orgform_kurzbz = $this->get('orgform_kurzbz');
if (isset($orgform_kurzbz))
{
$result = $this->OrgformModel->load($orgform_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function 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);
}
/**
* @return void
*/
public function postOrgform()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['orgform_kurzbz']))
{
$result = $this->OrgformModel->update($this->post()['orgform_kurzbz'], $this->post());
}
else
{
$result = $this->OrgformModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($orgform = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Verwendung extends APIv1_Controller
{
/**
* Verwendung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VerwendungModel
$this->load->model('codex/verwendung_model', 'VerwendungModel');
}
/**
* @return void
*/
public function getVerwendung()
{
$verwendung_code = $this->get('verwendung_code');
if (isset($verwendung_code))
{
$result = $this->VerwendungModel->load($verwendung_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVerwendung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['verwendung_code']))
{
$result = $this->VerwendungModel->update($this->post()['verwendung_code'], $this->post());
}
else
{
$result = $this->VerwendungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($verwendung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgv extends APIv1_Controller
{
/**
* Zgv API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZgvModel
$this->load->model('codex/zgv_model', 'ZgvModel');
}
/**
* @return void
*/
public function getZgv()
{
$zgv_code = $this->get('zgv_code');
if (isset($zgv_code))
{
$result = $this->ZgvModel->load($zgv_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZgv()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zgv_code']))
{
$result = $this->ZgvModel->update($this->post()['zgv_code'], $this->post());
}
else
{
$result = $this->ZgvModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zgv = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvdoktor extends APIv1_Controller
{
/**
* Zgvdoktor API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZgvdoktorModel
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
}
/**
* @return void
*/
public function getZgvdoktor()
{
$zgvdoktor_code = $this->get('zgvdoktor_code');
if (isset($zgvdoktor_code))
{
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZgvdoktor()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zgvdoktor_code']))
{
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_code'], $this->post());
}
else
{
$result = $this->ZgvdoktorModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zgvdoktor = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvgruppe extends APIv1_Controller
{
/**
* Zgvgruppe API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZgvgruppeModel
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
}
/**
* @return void
*/
public function getZgvgruppe()
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
if (isset($gruppe_kurzbz))
{
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZgvgruppe()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zgvgruppe_id']))
{
$result = $this->ZgvgruppeModel->update($this->post()['zgvgruppe_id'], $this->post());
}
else
{
$result = $this->ZgvgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zgvgruppe = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvmaster extends APIv1_Controller
{
/**
* Zgvmaster API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZgvmasterModel
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
}
/**
* @return void
*/
public function getZgvmaster()
{
$zgvmas_code = $this->get('zgvmas_code');
if (isset($zgvmas_code))
{
$result = $this->ZgvmasterModel->load($zgvmas_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZgvmaster()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zgvmas_code']))
{
$result = $this->ZgvmasterModel->update($this->post()['zgvmas_code'], $this->post());
}
else
{
$result = $this->ZgvmasterModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zgvmaster = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zweck extends APIv1_Controller
{
/**
* Zweck API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ZweckModel
$this->load->model('codex/zweck_model', 'ZweckModel');
}
/**
* @return void
*/
public function getZweck()
{
$zweck_code = $this->get('zweck_code');
if (isset($zweck_code))
{
$result = $this->ZweckModel->load($zweck_code);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postZweck()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['zweck_code']))
{
$result = $this->ZweckModel->update($this->post()['zweck_code'], $this->post());
}
else
{
$result = $this->ZweckModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($zweck = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ampel extends APIv1_Controller
{
/**
* Ampel API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AmpelModel
$this->load->model('content/ampel_model', 'AmpelModel');
}
/**
* @return void
*/
public function getAmpel()
{
$ampelID = $this->get('ampel_id');
if (isset($ampelID))
{
$result = $this->AmpelModel->load($ampelID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAmpel()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['ampel_id']))
{
$result = $this->AmpelModel->update($this->post()['ampel_id'], $this->post());
}
else
{
$result = $this->AmpelModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($ampel = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Content extends APIv1_Controller
{
/**
* Content API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentModel
$this->load->model('content/content_model', 'ContentModel');
}
/**
* @return void
*/
public function getContent()
{
$contentID = $this->get('content_id');
if (isset($contentID))
{
$result = $this->ContentModel->load($contentID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContent()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['content_id']))
{
$result = $this->ContentModel->update($this->post()['content_id'], $this->post());
}
else
{
$result = $this->ContentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($content = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentchild extends APIv1_Controller
{
/**
* Contentchild API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentchildModel
$this->load->model('content/contentchild_model', 'ContentchildModel');
}
/**
* @return void
*/
public function getContentchild()
{
$contentchildID = $this->get('contentchild_id');
if (isset($contentchildID))
{
$result = $this->ContentchildModel->load($contentchildID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentchild()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['contentchild_id']))
{
$result = $this->ContentchildModel->update($this->post()['contentchild_id'], $this->post());
}
else
{
$result = $this->ContentchildModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentchild = NULL)
{
return true;
}
}
@@ -1,77 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentgruppe extends APIv1_Controller
{
/**
* Contentgruppe API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentgruppeModel
$this->load->model('content/contentgruppe_model', 'ContentgruppeModel');
}
/**
* @return void
*/
public function getContentgruppe()
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
$content_id = $this->get('content_id');
if (isset($gruppe_kurzbz) && isset($content_id))
{
$result = $this->ContentgruppeModel->load(array($gruppe_kurzbz, $content_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentgruppe()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['gruppe_kurzbz']) && isset($this->post()['content_id']))
{
$result = $this->ContentgruppeModel->update(array($this->post()['gruppe_kurzbz'], $this->post()['content_id']), $this->post());
}
else
{
$result = $this->ContentgruppeModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentgruppe = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentlog extends APIv1_Controller
{
/**
* Contentlog API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentlogModel
$this->load->model('content/contentlog_model', 'ContentlogModel');
}
/**
* @return void
*/
public function getContentlog()
{
$contentlogID = $this->get('contentlog_id');
if (isset($contentlogID))
{
$result = $this->ContentlogModel->load($contentlogID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentlog()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['contentlog_id']))
{
$result = $this->ContentlogModel->update($this->post()['contentlog_id'], $this->post());
}
else
{
$result = $this->ContentlogModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentlog = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentsprache extends APIv1_Controller
{
/**
* Contentsprache API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model ContentspracheModel
$this->load->model('content/contentsprache_model', 'ContentspracheModel');
}
/**
* @return void
*/
public function getContentsprache()
{
$contentspracheID = $this->get('contentsprache_id');
if (isset($contentspracheID))
{
$result = $this->ContentspracheModel->load($contentspracheID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postContentsprache()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['contentsprache_id']))
{
$result = $this->ContentspracheModel->update($this->post()['contentsprache_id'], $this->post());
}
else
{
$result = $this->ContentspracheModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($contentsprache = NULL)
{
return true;
}
}
@@ -1,142 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dms extends APIv1_Controller
{
/**
*
*/
public function __construct()
{
parent::__construct();
// 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
{
$this->response();
}
}
/**
*
*/
public function getAktenAcceptedDms()
{
$person_id = $this->get('person_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($person_id))
{
$result = $this->dmslib->getAktenAcceptedDms($person_id, $dokument_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$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
{
$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
{
$this->response();
}
}
private function _validatePost($dms = null)
{
if (!isset($dms))
{
return false;
}
if (!isset($dms['file_content']) || (isset($dms['file_content']) && $dms['file_content'] == ''))
{
return false;
}
if (!isset($dms['name']) || (isset($dms['name']) && $dms['name'] == ''))
{
return false;
}
return true;
}
private function _validateDelete($dms = null)
{
if (!isset($dms))
{
return false;
}
if (!isset($dms['person_id']) || !is_numeric($dms['person_id']))
{
return false;
}
if (!isset($dms['dms_id']) || !is_numeric($dms['dms_id']))
{
return false;
}
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Infoscreen extends APIv1_Controller
{
/**
* Infoscreen API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model InfoscreenModel
$this->load->model('content/infoscreen_model', 'InfoscreenModel');
}
/**
* @return void
*/
public function getInfoscreen()
{
$infoscreenID = $this->get('infoscreen_id');
if (isset($infoscreenID))
{
$result = $this->InfoscreenModel->load($infoscreenID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postInfoscreen()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['infoscreen_id']))
{
$result = $this->InfoscreenModel->update($this->post()['infoscreen_id'], $this->post());
}
else
{
$result = $this->InfoscreenModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($infoscreen = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class News extends APIv1_Controller
{
/**
* News API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model NewsModel
$this->load->model('content/news_model', 'NewsModel');
}
/**
* @return void
*/
public function getNews()
{
$newsID = $this->get('news_id');
if (isset($newsID))
{
$result = $this->NewsModel->load($newsID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postNews()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['news_id']))
{
$result = $this->NewsModel->update($this->post()['news_id'], $this->post());
}
else
{
$result = $this->NewsModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($news = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Template extends APIv1_Controller
{
/**
* Template API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model TemplateModel
$this->load->model('content/template_model', 'TemplateModel');
}
/**
* @return void
*/
public function getTemplate()
{
$template_kurzbz = $this->get('template_kurzbz');
if (isset($template_kurzbz))
{
$result = $this->TemplateModel->load($template_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postTemplate()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['template_kurzbz']))
{
$result = $this->TemplateModel->update($this->post()['template_kurzbz'], $this->post());
}
else
{
$result = $this->TemplateModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($template = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Veranstaltung extends APIv1_Controller
{
/**
* Veranstaltung API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VeranstaltungModel
$this->load->model('content/veranstaltung_model', 'VeranstaltungModel');
}
/**
* @return void
*/
public function getVeranstaltung()
{
$veranstaltungID = $this->get('veranstaltung_id');
if (isset($veranstaltungID))
{
$result = $this->VeranstaltungModel->load($veranstaltungID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVeranstaltung()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['veranstaltung_id']))
{
$result = $this->VeranstaltungModel->update($this->post()['veranstaltung_id'], $this->post());
}
else
{
$result = $this->VeranstaltungModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($veranstaltung = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Veranstaltungskategorie extends APIv1_Controller
{
/**
* Veranstaltungskategorie API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model VeranstaltungskategorieModel
$this->load->model('content/veranstaltungskategorie_model', 'VeranstaltungskategorieModel');
}
/**
* @return void
*/
public function getVeranstaltungskategorie()
{
$veranstaltungskategorie_kurzbz = $this->get('veranstaltungskategorie_kurzbz');
if (isset($veranstaltungskategorie_kurzbz))
{
$result = $this->VeranstaltungskategorieModel->load($veranstaltungskategorie_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postVeranstaltungskategorie()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['veranstaltungskategorie_kurzbz']))
{
$result = $this->VeranstaltungskategorieModel->update($this->post()['veranstaltungskategorie_kurzbz'], $this->post());
}
else
{
$result = $this->VeranstaltungskategorieModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($veranstaltungskategorie = NULL)
{
return true;
}
}
-122
View File
@@ -1,122 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Akte extends APIv1_Controller
{
/**
* Akte API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AkteModel
$this->load->model('crm/akte_model', 'AkteModel');
}
/**
* @return void
*/
public function getAkte()
{
$akteID = $this->get('akte_id');
if (isset($akteID))
{
$result = $this->AkteModel->load($akteID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function getAkten()
{
$person_id = $this->get('person_id');
$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
{
$this->response();
}
}
/**
* @return void
*/
public function getAktenAccepted()
{
$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
{
$this->response();
}
}
/**
* @return void
*/
public function postAkte()
{
if ($akte = $this->_validate($this->post()))
{
if (isset($akte['akte_id']))
{
$result = $this->AkteModel->update($akte['akte_id'], $akte);
}
else
{
$result = $this->AkteModel->insert($akte);
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($akte = null)
{
unset($akte['accepted']);
return $akte;
}
}
@@ -1,78 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmeschluessel extends APIv1_Controller
{
/**
* Aufnahmeschluessel API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmeschluesselModel
$this->load->model('crm/aufnahmeschluessel_model', 'AufnahmeschluesselModel');
}
/**
* @return void
*/
public function getAufnahmeschluessel()
{
$aufnahmeschluessel = $this->get('aufnahmeschluessel');
if (isset($aufnahmeschluessel))
{
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluessel);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmeschluessel()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['aufnahmeschluessel']))
{
$result = $this->AufnahmeschluesselModel->update($this->post()['aufnahmeschluessel'], $this->post());
}
else
{
$result = $this->AufnahmeschluesselModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmeschluessel = NULL)
{
return true;
}
}
@@ -1,78 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmetermin extends APIv1_Controller
{
/**
* Aufnahmetermin API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmeterminModel
$this->load->model('crm/aufnahmetermin_model', 'AufnahmeterminModel');
}
/**
* @return void
*/
public function getAufnahmetermin()
{
$aufnahmeterminID = $this->get('aufnahmetermin_id');
if (isset($aufnahmeterminID))
{
$result = $this->AufnahmeterminModel->load($aufnahmeterminID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmetermin()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['aufnahmetermin_id']))
{
$result = $this->AufnahmeterminModel->update($this->post()['aufnahmetermin_id'], $this->post());
}
else
{
$result = $this->AufnahmeterminModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmetermin = NULL)
{
return true;
}
}
@@ -1,78 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmetermintyp extends APIv1_Controller
{
/**
* Aufnahmetermintyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model AufnahmetermintypModel
$this->load->model('crm/aufnahmetermintyp_model', 'AufnahmetermintypModel');
}
/**
* @return void
*/
public function getAufnahmetermintyp()
{
$aufnahmetermintyp_kurzbz = $this->get('aufnahmetermintyp_kurzbz');
if (isset($aufnahmetermintyp_kurzbz))
{
$result = $this->AufnahmetermintypModel->load($aufnahmetermintyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postAufnahmetermintyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['aufnahmetermintyp_kurzbz']))
{
$result = $this->AufnahmetermintypModel->update($this->post()['aufnahmetermintyp_kurzbz'], $this->post());
}
else
{
$result = $this->AufnahmetermintypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($aufnahmetermintyp = NULL)
{
return true;
}
}
@@ -1,135 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bewerbungstermine extends APIv1_Controller
{
/**
* Bewerbungstermine API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BewerbungstermineModel
$this->load->model('crm/bewerbungstermine_model', 'BewerbungstermineModel');
}
/**
* @return void
*/
public function getBewerbungstermine()
{
$bewerbungstermineID = $this->get('bewerbungstermine_id');
if (isset($bewerbungstermineID))
{
$result = $this->BewerbungstermineModel->load($bewerbungstermineID);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function getByStudiengangStudiensemester()
{
$studiengang_kz = $this->get('studiengang_kz');
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
if (isset($studiengang_kz) && isset($studiensemester_kurzbz))
{
$result = $this->BewerbungstermineModel->loadWhere(array(
'studiengang_kz' => $studiengang_kz,
'studiensemester_kurzbz' => $studiensemester_kurzbz,
));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function getByStudienplan()
{
$studienplan_id = $this->get('studienplan_id');
if (isset($studienplan_id))
{
$result = $this->BewerbungstermineModel->loadWhere(array(
'studienplan_id' => $studienplan_id
));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function getCurrent()
{
$result = $this->BewerbungstermineModel->loadWhere(array(
'beginn <=' => 'now()',
'ende >=' => 'now()',
));
$this->response($result, REST_Controller::HTTP_OK);
}
/**
* @return void
*/
public function postBewerbungstermine()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['bewerbungstermine_id']))
{
$result = $this->BewerbungstermineModel->update($this->post()['bewerbungstermine_id'], $this->post());
}
else
{
$result = $this->BewerbungstermineModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($bewerbungstermine = NULL)
{
return true;
}
}
@@ -1,78 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchungstyp extends APIv1_Controller
{
/**
* Buchungstyp API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model BuchungstypModel
$this->load->model('crm/buchungstyp_model', 'BuchungstypModel');
}
/**
* @return void
*/
public function getBuchungstyp()
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postBuchungstyp()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['buchungstyp_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $this->post());
}
else
{
$result = $this->BuchungstypModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($buchungstyp = NULL)
{
return true;
}
}
@@ -1,76 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dokument extends APIv1_Controller
{
/**
* Dokument API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model DokumentModel
$this->load->model('crm/dokument_model', 'DokumentModel');
}
/**
* @return void
*/
public function getDokument()
{
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($dokument_kurzbz))
{
$result = $this->DokumentModel->load($dokument_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokument()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentModel->update($this->post()['dokument_kurzbz'], $this->post());
}
else
{
$result = $this->DokumentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
private function _validate($dokument = NULL)
{
return true;
}
}
@@ -1,111 +0,0 @@
<?php
/**
* FH-Complete
*
* @package FHC-API
* @author FHC-Team
* @copyright Copyright (c) 2016, fhcomplete.org
* @license GPLv3
* @link http://fhcomplete.org
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dokumentprestudent extends APIv1_Controller
{
/**
* Dokumentprestudent API constructor.
*/
public function __construct()
{
parent::__construct();
// Load model DokumentprestudentModel
$this->load->model('crm/dokumentprestudent_model', 'DokumentprestudentModel');
}
/**
* @return void
*/
public function getDokumentprestudent()
{
$prestudent_id = $this->get('prestudent_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($prestudent_id) && isset($dokument_kurzbz))
{
$result = $this->DokumentprestudentModel->load(array($prestudent_id, $dokument_kurzbz));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postDokumentprestudent()
{
if ($this->_validate($this->post()))
{
if (isset($this->post()['prestudent_id']) && isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentprestudentModel->update(array($this->post()['prestudent_id'], $this->post()['dokument_kurzbz']), $this->post());
}
else
{
$result = $this->DokumentprestudentModel->insert($this->post());
}
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
*/
public function postSetAccepted()
{
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
{
$this->response();
}
}
/**
* @return void
*/
public function postSetAcceptedDocuments()
{
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
{
$this->response();
}
}
private function _validate($dokumentprestudent = null)
{
return true;
}
}

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