mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-25 16:09:28 +00:00
Added permissions array to every controller that extends APIv1_Controller
CheckUserAuth and Test controllers now extends directly the REST_Controller
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class CheckUserAuth extends APIv1_Controller
|
||||
require_once APPPATH.'/libraries/REST_Controller.php';
|
||||
|
||||
class CheckUserAuth extends REST_Controller
|
||||
{
|
||||
/**
|
||||
* Course API constructor.
|
||||
|
||||
@@ -2,14 +2,19 @@
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once APPPATH.'/libraries/REST_Controller.php';
|
||||
|
||||
/**
|
||||
* Testing class for REST calls and authentication
|
||||
*/
|
||||
class Test extends APIv1_Controller
|
||||
class Test extends REST_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Loads return messages
|
||||
$this->load->helper('message');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,7 @@ class Aufteilung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufteilung' => 'basis/aufteilung:rw'));
|
||||
// Load model AufteilungModel
|
||||
$this->load->model('accounting/aufteilung_model', 'AufteilungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Aufteilung extends APIv1_Controller
|
||||
public function getAufteilung()
|
||||
{
|
||||
$aufteilungID = $this->get('aufteilung_id');
|
||||
|
||||
|
||||
if (isset($aufteilungID))
|
||||
{
|
||||
$result = $this->AufteilungModel->load($aufteilungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Aufteilung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufteilungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Aufteilung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufteilung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bestelldetail extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bestelldetail' => 'basis/bestelldetail:rw'));
|
||||
// Load model BestelldetailModel
|
||||
$this->load->model('accounting/bestelldetail_model', 'BestelldetailModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bestelldetail extends APIv1_Controller
|
||||
public function getBestelldetail()
|
||||
{
|
||||
$bestelldetailID = $this->get('bestelldetail_id');
|
||||
|
||||
|
||||
if (isset($bestelldetailID))
|
||||
{
|
||||
$result = $this->BestelldetailModel->load($bestelldetailID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bestelldetail extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BestelldetailModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bestelldetail extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bestelldetail = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bestelldetailtag extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bestelldetailtag' => 'basis/bestelldetailtag:rw'));
|
||||
// Load model BestelldetailtagModel
|
||||
$this->load->model('accounting/bestelldetailtag_model', 'BestelldetailtagModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Bestelldetailtag extends APIv1_Controller
|
||||
{
|
||||
$bestelldetail_id = $this->get('bestelldetail_id');
|
||||
$tag = $this->get('tag');
|
||||
|
||||
|
||||
if (isset($bestelldetail_id) && isset($tag))
|
||||
{
|
||||
$result = $this->BestelldetailtagModel->load(array($bestelldetail_id, $tag));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Bestelldetailtag extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BestelldetailtagModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Bestelldetailtag extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bestelldetailtag = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bestellstatus extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bestellstatus' => 'basis/bestellstatus:rw'));
|
||||
// Load model BestellstatusModel
|
||||
$this->load->model('accounting/bestellstatus_model', 'BestellstatusModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bestellstatus extends APIv1_Controller
|
||||
public function getBestellstatus()
|
||||
{
|
||||
$bestellstatus_kurzbz = $this->get('bestellstatus_kurzbz');
|
||||
|
||||
|
||||
if (isset($bestellstatus_kurzbz))
|
||||
{
|
||||
$result = $this->BestellstatusModel->load($bestellstatus_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bestellstatus extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BestellstatusModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bestellstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bestellstatus = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bestellung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bestellung' => 'basis/bestellung:rw'));
|
||||
// Load model BestellungModel
|
||||
$this->load->model('accounting/bestellung_model', 'BestellungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bestellung extends APIv1_Controller
|
||||
public function getBestellung()
|
||||
{
|
||||
$bestellungID = $this->get('bestellung_id');
|
||||
|
||||
|
||||
if (isset($bestellungID))
|
||||
{
|
||||
$result = $this->BestellungModel->load($bestellungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bestellung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BestellungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bestellung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bestellung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bestellungtag extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bestellungtag' => 'basis/bestellungtag:rw'));
|
||||
// Load model BestellungtagModel
|
||||
$this->load->model('accounting/bestellungtag_model', 'BestellungtagModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Bestellungtag extends APIv1_Controller
|
||||
{
|
||||
$bestellung_id = $this->get('bestellung_id');
|
||||
$tag = $this->get('tag');
|
||||
|
||||
|
||||
if (isset($bestellung_id) && isset($tag))
|
||||
{
|
||||
$result = $this->BestellungtagModel->load(array($bestellung_id, $tag));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Bestellungtag extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BestellungtagModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Bestellungtag extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bestellungtag = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Buchung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Buchung' => 'basis/buchung:r'));
|
||||
// Load model BuchungModel
|
||||
$this->load->model('accounting/buchung_model', 'BuchungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Buchung extends APIv1_Controller
|
||||
public function getBuchung()
|
||||
{
|
||||
$buchungID = $this->get('buchung_id');
|
||||
|
||||
|
||||
if (isset($buchungID))
|
||||
{
|
||||
$result = $this->BuchungModel->load($buchungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Buchung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BuchungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Buchung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($buchung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Buchungstyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Buchungstyp' => 'basis/buchungstyp:rw'));
|
||||
// Load model BuchungstypModel
|
||||
$this->load->model('accounting/buchungstyp_model', 'BuchungstypModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Buchungstyp extends APIv1_Controller
|
||||
public function getBuchungstyp()
|
||||
{
|
||||
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($buchungstyp_kurzbz))
|
||||
{
|
||||
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Buchungstyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BuchungstypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Buchungstyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($buchungstyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Budget extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Budget' => 'basis/budget:rw'));
|
||||
// Load model BudgetModel
|
||||
$this->load->model('accounting/budget_model', 'BudgetModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Budget extends APIv1_Controller
|
||||
{
|
||||
$kostenstelle_id = $this->get('kostenstelle_id');
|
||||
$geschaeftsjahr_kurzbz = $this->get('geschaeftsjahr_kurzbz');
|
||||
|
||||
|
||||
if (isset($kostenstelle_id) && isset($geschaeftsjahr_kurzbz))
|
||||
{
|
||||
$result = $this->BudgetModel->load(array($kostenstelle_id, $geschaeftsjahr_kurzbz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Budget extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BudgetModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Budget extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($budget = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Konto extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Konto' => 'basis/konto:rw'));
|
||||
// Load model KontoModel
|
||||
$this->load->model('accounting/konto_model', 'KontoModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Konto extends APIv1_Controller
|
||||
public function getKonto()
|
||||
{
|
||||
$kontoID = $this->get('konto_id');
|
||||
|
||||
|
||||
if (isset($kontoID))
|
||||
{
|
||||
$result = $this->KontoModel->load($kontoID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Konto extends APIv1_Controller
|
||||
{
|
||||
$result = $this->KontoModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Konto extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($konto = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Kostenstelle extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Kostenstelle' => 'basis/kostenstelle:rw'));
|
||||
// Load model KostenstelleModel
|
||||
$this->load->model('accounting/kostenstelle_model', 'KostenstelleModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Kostenstelle extends APIv1_Controller
|
||||
public function getKostenstelle()
|
||||
{
|
||||
$kostenstelleID = $this->get('kostenstelle_id');
|
||||
|
||||
|
||||
if (isset($kostenstelleID))
|
||||
{
|
||||
$result = $this->KostenstelleModel->load($kostenstelleID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Kostenstelle extends APIv1_Controller
|
||||
{
|
||||
$result = $this->KostenstelleModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Kostenstelle extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($kostenstelle = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Rechnung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Rechnung' => 'basis/rechnung:rw'));
|
||||
// Load model RechnungModel
|
||||
$this->load->model('accounting/rechnung_model', 'RechnungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Rechnung extends APIv1_Controller
|
||||
public function getRechnung()
|
||||
{
|
||||
$rechnungID = $this->get('rechnung_id');
|
||||
|
||||
|
||||
if (isset($rechnungID))
|
||||
{
|
||||
$result = $this->RechnungModel->load($rechnungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Rechnung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->RechnungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Rechnung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($rechnung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Rechnungsbetrag extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Rechnungsbetrag' => 'basis/rechnungsbetrag:rw'));
|
||||
// Load model RechnungsbetragModel
|
||||
$this->load->model('accounting/rechnungsbetrag_model', 'RechnungsbetragModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Rechnungsbetrag extends APIv1_Controller
|
||||
public function getRechnungsbetrag()
|
||||
{
|
||||
$rechnungsbetragID = $this->get('rechnungsbetrag_id');
|
||||
|
||||
|
||||
if (isset($rechnungsbetragID))
|
||||
{
|
||||
$result = $this->RechnungsbetragModel->load($rechnungsbetragID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Rechnungsbetrag extends APIv1_Controller
|
||||
{
|
||||
$result = $this->RechnungsbetragModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Rechnungsbetrag extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($rechnungsbetrag = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Rechnungstyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Rechnungstyp' => 'basis/rechnungstyp:rw'));
|
||||
// Load model RechnungstypModel
|
||||
$this->load->model('accounting/rechnungstyp_model', 'RechnungstypModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Rechnungstyp extends APIv1_Controller
|
||||
public function getRechnungstyp()
|
||||
{
|
||||
$rechnungstyp_kurzbz = $this->get('rechnungstyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($rechnungstyp_kurzbz))
|
||||
{
|
||||
$result = $this->RechnungstypModel->load($rechnungstyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Rechnungstyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->RechnungstypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Rechnungstyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($rechnungstyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Vertrag extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Vertrag' => 'basis/vertrag:rw'));
|
||||
// Load model VertragModel
|
||||
$this->load->model('accounting/vertrag_model', 'VertragModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Vertrag extends APIv1_Controller
|
||||
public function getVertrag()
|
||||
{
|
||||
$vertragID = $this->get('vertrag_id');
|
||||
|
||||
|
||||
if (isset($vertragID))
|
||||
{
|
||||
$result = $this->VertragModel->load($vertragID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Vertrag extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VertragModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Vertrag extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($vertrag = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Vertragsstatus extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Vertragsstatus' => 'basis/vertragsstatus:rw'));
|
||||
// Load model VertragsstatusModel
|
||||
$this->load->model('accounting/vertragsstatus_model', 'VertragsstatusModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Vertragsstatus extends APIv1_Controller
|
||||
public function getVertragsstatus()
|
||||
{
|
||||
$vertragsstatus_kurzbz = $this->get('vertragsstatus_kurzbz');
|
||||
|
||||
|
||||
if (isset($vertragsstatus_kurzbz))
|
||||
{
|
||||
$result = $this->VertragsstatusModel->load($vertragsstatus_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Vertragsstatus extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VertragsstatusModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Vertragsstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($vertragsstatus = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Vertragstyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Vertragstyp' => 'basis/vertragstyp:rw'));
|
||||
// Load model VertragstypModel
|
||||
$this->load->model('accounting/vertragstyp_model', 'VertragstypModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Vertragstyp extends APIv1_Controller
|
||||
public function getVertragstyp()
|
||||
{
|
||||
$vertragstyp_kurzbz = $this->get('vertragstyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($vertragstyp_kurzbz))
|
||||
{
|
||||
$result = $this->VertragstypModel->load($vertragstyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Vertragstyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VertragstypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Vertragstyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($vertragstyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zahlungstyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zahlungstyp' => 'basis/zahlungstyp:rw'));
|
||||
// Load model ZahlungstypModel
|
||||
$this->load->model('accounting/zahlungstyp_model', 'ZahlungstypModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zahlungstyp extends APIv1_Controller
|
||||
public function getZahlungstyp()
|
||||
{
|
||||
$zahlungstyp_kurzbz = $this->get('zahlungstyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($zahlungstyp_kurzbz))
|
||||
{
|
||||
$result = $this->ZahlungstypModel->load($zahlungstyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zahlungstyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZahlungstypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zahlungstyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zahlungstyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Akadgrad extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Akadgrad' => 'basis/akadgrad:rw'));
|
||||
// Load model AkadgradModel
|
||||
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Akadgrad extends APIv1_Controller
|
||||
public function getAkadgrad()
|
||||
{
|
||||
$akadgradID = $this->get('akadgrad_id');
|
||||
|
||||
|
||||
if (isset($akadgradID))
|
||||
{
|
||||
$result = $this->AkadgradModel->load($akadgradID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Akadgrad extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AkadgradModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Akadgrad extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($akadgrad = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Archiv extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Archiv' => 'basis/archiv:rw'));
|
||||
// Load model ArchivModel
|
||||
$this->load->model('codex/archiv_model', 'ArchivModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Archiv extends APIv1_Controller
|
||||
public function getArchiv()
|
||||
{
|
||||
$archivID = $this->get('archiv_id');
|
||||
|
||||
|
||||
if (isset($archivID))
|
||||
{
|
||||
$result = $this->ArchivModel->load($archivID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Archiv extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ArchivModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Archiv extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($archiv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufmerksamdurch' => 'basis/aufmerksamdurch:rw'));
|
||||
// Load model AufmerksamdurchModel
|
||||
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
public function getAufmerksamdurch()
|
||||
{
|
||||
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
|
||||
|
||||
|
||||
if (isset($aufmerksamdurch_kurzbz))
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufmerksamdurchModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Aufmerksamdurch extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufmerksamdurch = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Ausbildung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Ausbildung' => 'basis/ausbildung:rw'));
|
||||
// Load model AusbildungModel
|
||||
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Ausbildung extends APIv1_Controller
|
||||
public function getAusbildung()
|
||||
{
|
||||
$ausbildungcode = $this->get('ausbildungcode');
|
||||
|
||||
|
||||
if (isset($ausbildungcode))
|
||||
{
|
||||
$result = $this->AusbildungModel->load($ausbildungcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Ausbildung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AusbildungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Ausbildung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($ausbildung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Berufstaetigkeit' => 'basis/berufstaetigkeit:rw'));
|
||||
// Load model BerufstaetigkeitModel
|
||||
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
public function getBerufstaetigkeit()
|
||||
{
|
||||
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
|
||||
|
||||
|
||||
if (isset($berufstaetigkeit_code))
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BerufstaetigkeitModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Berufstaetigkeit extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($berufstaetigkeit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Beschaeftigungsausmass' => 'basis/beschaeftigungsausmass:rw'));
|
||||
// Load model BeschaeftigungsausmassModel
|
||||
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
public function getBeschaeftigungsausmass()
|
||||
{
|
||||
$beschausmasscode = $this->get('beschausmasscode');
|
||||
|
||||
|
||||
if (isset($beschausmasscode))
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BeschaeftigungsausmassModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Beschaeftigungsausmass extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($beschaeftigungsausmass = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Besqual extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Besqual' => 'basis/besqual:rw'));
|
||||
// Load model BesqualModel
|
||||
$this->load->model('codex/besqual_model', 'BesqualModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Besqual extends APIv1_Controller
|
||||
public function getBesqual()
|
||||
{
|
||||
$besqualcode = $this->get('besqualcode');
|
||||
|
||||
|
||||
if (isset($besqualcode))
|
||||
{
|
||||
$result = $this->BesqualModel->load($besqualcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Besqual extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BesqualModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Besqual extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($besqual = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisfunktion extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisfunktion' => 'basis/bisfunktion:rw'));
|
||||
// Load model BisfunktionModel
|
||||
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$bisverwendung_id = $this->get('bisverwendung_id');
|
||||
|
||||
|
||||
if (isset($studiengang_kz) && isset($bisverwendung_id))
|
||||
{
|
||||
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Bisfunktion extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisfunktionModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Bisfunktion extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisfunktion = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisio extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisio' => 'basis/bisio:rw'));
|
||||
// Load model BisioModel
|
||||
$this->load->model('codex/bisio_model', 'BisioModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisio extends APIv1_Controller
|
||||
public function getBisio()
|
||||
{
|
||||
$bisioID = $this->get('bisio_id');
|
||||
|
||||
|
||||
if (isset($bisioID))
|
||||
{
|
||||
$result = $this->BisioModel->load($bisioID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisio extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisioModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisio extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisio = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisorgform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisorgform' => 'basis/bisorgform:rw'));
|
||||
// Load model BisorgformModel
|
||||
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisorgform extends APIv1_Controller
|
||||
public function getBisorgform()
|
||||
{
|
||||
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
|
||||
|
||||
|
||||
if (isset($bisorgform_kurzbz))
|
||||
{
|
||||
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisorgform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisorgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisorgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisorgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bisverwendung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Bisverwendung' => 'basis/bisverwendung:rw'));
|
||||
// Load model BisverwendungModel
|
||||
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Bisverwendung extends APIv1_Controller
|
||||
public function getBisverwendung()
|
||||
{
|
||||
$bisverwendungID = $this->get('bisverwendung_id');
|
||||
|
||||
|
||||
if (isset($bisverwendungID))
|
||||
{
|
||||
$result = $this->BisverwendungModel->load($bisverwendungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Bisverwendung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BisverwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Bisverwendung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($bisverwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Bundesland extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('All' => 'basis/bundesland:r'));
|
||||
// Load model PersonModel
|
||||
$this->load->model('codex/bundesland_model', 'BundeslandModel');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Entwicklungsteam' => 'basis/entwicklungsteam:rw'));
|
||||
// Load model EntwicklungsteamModel
|
||||
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
|
||||
|
||||
if (isset($studiengang_kz) && isset($mitarbeiter_uid))
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
{
|
||||
$result = $this->EntwicklungsteamModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Entwicklungsteam extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($entwicklungsteam = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Gemeinde extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Gemeinde' => 'basis/gemeinde:rw', 'GemeindeByPlz' => 'basis/gemeinde:r'));
|
||||
// Load model GemeindeModel
|
||||
$this->load->model("codex/gemeinde_model", "GemeindeModel");
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class Gemeinde extends APIv1_Controller
|
||||
public function getGemeinde()
|
||||
{
|
||||
$gemeindeID = $this->get("gemeinde_id");
|
||||
|
||||
|
||||
$this->GemeindeModel->addOrder("plz");
|
||||
if (isset($gemeindeID))
|
||||
{
|
||||
@@ -42,21 +42,21 @@ class Gemeinde extends APIv1_Controller
|
||||
{
|
||||
$result = $this->GemeindeModel->load();
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getGemeindeByPlz()
|
||||
{
|
||||
$plz = $this->get("plz");
|
||||
|
||||
|
||||
if (is_numeric($plz))
|
||||
{
|
||||
$result = $this->GemeindeModel->getGemeindeByPlz($plz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -80,7 +80,7 @@ class Gemeinde extends APIv1_Controller
|
||||
{
|
||||
$result = $this->GemeindeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -88,9 +88,9 @@ class Gemeinde extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($gemeinde = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Hauptberuf extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Hauptberuf' => 'basis/hauptberuf:rw'));
|
||||
// Load model HauptberufModel
|
||||
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Hauptberuf extends APIv1_Controller
|
||||
public function getHauptberuf()
|
||||
{
|
||||
$hauptberufcode = $this->get('hauptberufcode');
|
||||
|
||||
|
||||
if (isset($hauptberufcode))
|
||||
{
|
||||
$result = $this->HauptberufModel->load($hauptberufcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Hauptberuf extends APIv1_Controller
|
||||
{
|
||||
$result = $this->HauptberufModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Hauptberuf extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($hauptberuf = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrform' => 'basis/lehrform:rw'));
|
||||
// Load model LehrformModel
|
||||
$this->load->model('codex/lehrform_model', 'LehrformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrform extends APIv1_Controller
|
||||
public function getLehrform()
|
||||
{
|
||||
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
|
||||
|
||||
|
||||
if (isset($lehrform_kurzbz))
|
||||
{
|
||||
$result = $this->LehrformModel->load($lehrform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lgartcode extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lgartcode' => 'basis/lgartcode:rw'));
|
||||
// Load model LgartcodeModel
|
||||
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lgartcode extends APIv1_Controller
|
||||
public function getLgartcode()
|
||||
{
|
||||
$lgartcode = $this->get('lgartcode');
|
||||
|
||||
|
||||
if (isset($lgartcode))
|
||||
{
|
||||
$result = $this->LgartcodeModel->load($lgartcode);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lgartcode extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LgartcodeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lgartcode extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lgartcode = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Mobilitaetsprogramm' => 'basis/mobilitaetsprogramm:rw'));
|
||||
// Load model MobilitaetsprogrammModel
|
||||
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
public function getMobilitaetsprogramm()
|
||||
{
|
||||
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
|
||||
|
||||
|
||||
if (isset($mobilitaetsprogramm_code))
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
{
|
||||
$result = $this->MobilitaetsprogrammModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Mobilitaetsprogramm extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($mobilitaetsprogramm = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Nation extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Nation' => 'basis/nation:r', 'All' => 'basis/nation:r'));
|
||||
// Load model NationModel
|
||||
$this->load->model('codex/nation_model', 'NationModel');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Note extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Note' => 'basis/note:rw'));
|
||||
// Load model NoteModel
|
||||
$this->load->model('codex/note_model', 'NoteModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Note extends APIv1_Controller
|
||||
public function getNote()
|
||||
{
|
||||
$note = $this->get('note');
|
||||
|
||||
|
||||
if (isset($note))
|
||||
{
|
||||
$result = $this->NoteModel->load($note);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Note extends APIv1_Controller
|
||||
{
|
||||
$result = $this->NoteModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Note extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($note = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Orgform extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Orgform' => 'basis/orgform:rw', 'All' => 'basis/orgform:r', 'OrgformLV' => 'basis/orgform:r'));
|
||||
// Load model OrgformModel
|
||||
$this->load->model('codex/orgform_model', 'OrgformModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Orgform extends APIv1_Controller
|
||||
public function getOrgform()
|
||||
{
|
||||
$orgform_kurzbz = $this->get('orgform_kurzbz');
|
||||
|
||||
|
||||
if (isset($orgform_kurzbz))
|
||||
{
|
||||
$result = $this->OrgformModel->load($orgform_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -44,24 +44,24 @@ class Orgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
$result = $this->OrgformModel->load();
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getOrgformLV()
|
||||
{
|
||||
$result = $this->OrgformModel->getOrgformLV();
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class Orgform extends APIv1_Controller
|
||||
{
|
||||
$result = $this->OrgformModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -88,9 +88,9 @@ class Orgform extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($orgform = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Verwendung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Verwendung' => 'basis/verwendung:rw'));
|
||||
// Load model VerwendungModel
|
||||
$this->load->model('codex/verwendung_model', 'VerwendungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Verwendung extends APIv1_Controller
|
||||
public function getVerwendung()
|
||||
{
|
||||
$verwendung_code = $this->get('verwendung_code');
|
||||
|
||||
|
||||
if (isset($verwendung_code))
|
||||
{
|
||||
$result = $this->VerwendungModel->load($verwendung_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Verwendung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VerwendungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Verwendung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($verwendung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgv extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgv' => 'basis/zgv:rw'));
|
||||
// Load model ZgvModel
|
||||
$this->load->model('codex/zgv_model', 'ZgvModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgv extends APIv1_Controller
|
||||
public function getZgv()
|
||||
{
|
||||
$zgv_code = $this->get('zgv_code');
|
||||
|
||||
|
||||
if (isset($zgv_code))
|
||||
{
|
||||
$result = $this->ZgvModel->load($zgv_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgv extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgv extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgv = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvdoktor extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvdoktor' => 'basis/zgvdoktor:rw'));
|
||||
// Load model ZgvdoktorModel
|
||||
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvdoktor extends APIv1_Controller
|
||||
public function getZgvdoktor()
|
||||
{
|
||||
$zgvdoktor_code = $this->get('zgvdoktor_code');
|
||||
|
||||
|
||||
if (isset($zgvdoktor_code))
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvdoktor extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvdoktorModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvdoktor extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvdoktor = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvgruppe extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvgruppe' => 'basis/zgvgruppe:rw'));
|
||||
// Load model ZgvgruppeModel
|
||||
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvgruppe extends APIv1_Controller
|
||||
public function getZgvgruppe()
|
||||
{
|
||||
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
|
||||
|
||||
|
||||
if (isset($gruppe_kurzbz))
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvgruppe extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvgruppeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvgruppe extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvgruppe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zgvmaster extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zgvmaster' => 'basis/zgvmaster:rw'));
|
||||
// Load model ZgvmasterModel
|
||||
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zgvmaster extends APIv1_Controller
|
||||
public function getZgvmaster()
|
||||
{
|
||||
$zgvmas_code = $this->get('zgvmas_code');
|
||||
|
||||
|
||||
if (isset($zgvmas_code))
|
||||
{
|
||||
$result = $this->ZgvmasterModel->load($zgvmas_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zgvmaster extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZgvmasterModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zgvmaster extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zgvmaster = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Zweck extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Zweck' => 'basis/zweck:rw'));
|
||||
// Load model ZweckModel
|
||||
$this->load->model('codex/zweck_model', 'ZweckModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Zweck extends APIv1_Controller
|
||||
public function getZweck()
|
||||
{
|
||||
$zweck_code = $this->get('zweck_code');
|
||||
|
||||
|
||||
if (isset($zweck_code))
|
||||
{
|
||||
$result = $this->ZweckModel->load($zweck_code);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Zweck extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ZweckModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Zweck extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($zweck = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Ampel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Ampel' => 'basis/ampel:rw'));
|
||||
// Load model AmpelModel
|
||||
$this->load->model('content/ampel_model', 'AmpelModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Ampel extends APIv1_Controller
|
||||
public function getAmpel()
|
||||
{
|
||||
$ampelID = $this->get('ampel_id');
|
||||
|
||||
|
||||
if (isset($ampelID))
|
||||
{
|
||||
$result = $this->AmpelModel->load($ampelID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Ampel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AmpelModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Ampel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($ampel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Content extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Content' => 'basis/content:rw'));
|
||||
// Load model ContentModel
|
||||
$this->load->model('content/content_model', 'ContentModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Content extends APIv1_Controller
|
||||
public function getContent()
|
||||
{
|
||||
$contentID = $this->get('content_id');
|
||||
|
||||
|
||||
if (isset($contentID))
|
||||
{
|
||||
$result = $this->ContentModel->load($contentID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Content extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ContentModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Content extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($content = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Contentchild extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Contentchild' => 'basis/contentchild:rw'));
|
||||
// Load model ContentchildModel
|
||||
$this->load->model('content/contentchild_model', 'ContentchildModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Contentchild extends APIv1_Controller
|
||||
public function getContentchild()
|
||||
{
|
||||
$contentchildID = $this->get('contentchild_id');
|
||||
|
||||
|
||||
if (isset($contentchildID))
|
||||
{
|
||||
$result = $this->ContentchildModel->load($contentchildID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Contentchild extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ContentchildModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Contentchild extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($contentchild = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Contentgruppe extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Contentgruppe' => 'basis/contentgruppe:rw'));
|
||||
// Load model ContentgruppeModel
|
||||
$this->load->model('content/contentgruppe_model', 'ContentgruppeModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Contentgruppe extends APIv1_Controller
|
||||
{
|
||||
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
|
||||
$content_id = $this->get('content_id');
|
||||
|
||||
|
||||
if (isset($gruppe_kurzbz) && isset($content_id))
|
||||
{
|
||||
$result = $this->ContentgruppeModel->load(array($gruppe_kurzbz, $content_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Contentgruppe extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ContentgruppeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Contentgruppe extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($contentgruppe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Contentlog extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Contentlog' => 'basis/contentlog:rw'));
|
||||
// Load model ContentlogModel
|
||||
$this->load->model('content/contentlog_model', 'ContentlogModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Contentlog extends APIv1_Controller
|
||||
public function getContentlog()
|
||||
{
|
||||
$contentlogID = $this->get('contentlog_id');
|
||||
|
||||
|
||||
if (isset($contentlogID))
|
||||
{
|
||||
$result = $this->ContentlogModel->load($contentlogID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Contentlog extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ContentlogModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Contentlog extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($contentlog = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Contentsprache extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Contentsprache' => 'basis/contentsprache:rw'));
|
||||
// Load model ContentspracheModel
|
||||
$this->load->model('content/contentsprache_model', 'ContentspracheModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Contentsprache extends APIv1_Controller
|
||||
public function getContentsprache()
|
||||
{
|
||||
$contentspracheID = $this->get('contentsprache_id');
|
||||
|
||||
|
||||
if (isset($contentspracheID))
|
||||
{
|
||||
$result = $this->ContentspracheModel->load($contentspracheID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Contentsprache extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ContentspracheModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Contentsprache extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($contentsprache = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,27 +17,27 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
class Dms extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Dms' => 'basis/dms:rw', 'AktenAcceptedDms' => 'basis/dms:r', 'DelDms' => 'basis/dms:w'));
|
||||
// Load library DmsLib
|
||||
$this->load->library('DmsLib');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function getDms()
|
||||
{
|
||||
$dms_id = $this->get('dms_id');
|
||||
$version = $this->get('version');
|
||||
|
||||
|
||||
if (isset($dms_id))
|
||||
{
|
||||
$result = $this->dmslib->read($dms_id, $version);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -45,20 +45,20 @@ class Dms extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function getAktenAcceptedDms()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
$no_file = $this->get('no_file');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->dmslib->getAktenAcceptedDms($person_id, $dokument_kurzbz, $no_file);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -66,18 +66,18 @@ class Dms extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function postDms()
|
||||
{
|
||||
$dms = $this->post();
|
||||
|
||||
|
||||
if ($this->_validatePost($dms))
|
||||
{
|
||||
$result = $this->dmslib->save($dms);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -85,18 +85,18 @@ class Dms extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function postDelDms()
|
||||
{
|
||||
$dms = $this->post();
|
||||
|
||||
|
||||
if ($this->_validateDelete($this->post()))
|
||||
{
|
||||
$result = $this->dmslib->delete($dms['person_id'], $dms['dms_id']);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -104,7 +104,7 @@ class Dms extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validatePost($dms = null)
|
||||
{
|
||||
if (!isset($dms))
|
||||
@@ -119,10 +119,10 @@ class Dms extends APIv1_Controller
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private function _validateDelete($dms = null)
|
||||
{
|
||||
if (!isset($dms))
|
||||
@@ -137,7 +137,7 @@ class Dms extends APIv1_Controller
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Infoscreen extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Infoscreen' => 'basis/infoscreen:rw'));
|
||||
// Load model InfoscreenModel
|
||||
$this->load->model('content/infoscreen_model', 'InfoscreenModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Infoscreen extends APIv1_Controller
|
||||
public function getInfoscreen()
|
||||
{
|
||||
$infoscreenID = $this->get('infoscreen_id');
|
||||
|
||||
|
||||
if (isset($infoscreenID))
|
||||
{
|
||||
$result = $this->InfoscreenModel->load($infoscreenID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Infoscreen extends APIv1_Controller
|
||||
{
|
||||
$result = $this->InfoscreenModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Infoscreen extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($infoscreen = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class News extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('News' => 'basis/news:rw'));
|
||||
// Load model NewsModel
|
||||
$this->load->model('content/news_model', 'NewsModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class News extends APIv1_Controller
|
||||
public function getNews()
|
||||
{
|
||||
$newsID = $this->get('news_id');
|
||||
|
||||
|
||||
if (isset($newsID))
|
||||
{
|
||||
$result = $this->NewsModel->load($newsID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class News extends APIv1_Controller
|
||||
{
|
||||
$result = $this->NewsModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class News extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($news = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Template extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Template' => 'basis/template:rw'));
|
||||
// Load model TemplateModel
|
||||
$this->load->model('content/template_model', 'TemplateModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Template extends APIv1_Controller
|
||||
public function getTemplate()
|
||||
{
|
||||
$template_kurzbz = $this->get('template_kurzbz');
|
||||
|
||||
|
||||
if (isset($template_kurzbz))
|
||||
{
|
||||
$result = $this->TemplateModel->load($template_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Template extends APIv1_Controller
|
||||
{
|
||||
$result = $this->TemplateModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Template extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($template = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Veranstaltung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Veranstaltung' => 'basis/veranstaltung:rw'));
|
||||
// Load model VeranstaltungModel
|
||||
$this->load->model('content/veranstaltung_model', 'VeranstaltungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Veranstaltung extends APIv1_Controller
|
||||
public function getVeranstaltung()
|
||||
{
|
||||
$veranstaltungID = $this->get('veranstaltung_id');
|
||||
|
||||
|
||||
if (isset($veranstaltungID))
|
||||
{
|
||||
$result = $this->VeranstaltungModel->load($veranstaltungID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Veranstaltung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VeranstaltungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Veranstaltung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($veranstaltung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Veranstaltungskategorie extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Veranstaltungskategorie' => 'basis/veranstaltungskategorie:rw'));
|
||||
// Load model VeranstaltungskategorieModel
|
||||
$this->load->model('content/veranstaltungskategorie_model', 'VeranstaltungskategorieModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Veranstaltungskategorie extends APIv1_Controller
|
||||
public function getVeranstaltungskategorie()
|
||||
{
|
||||
$veranstaltungskategorie_kurzbz = $this->get('veranstaltungskategorie_kurzbz');
|
||||
|
||||
|
||||
if (isset($veranstaltungskategorie_kurzbz))
|
||||
{
|
||||
$result = $this->VeranstaltungskategorieModel->load($veranstaltungskategorie_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Veranstaltungskategorie extends APIv1_Controller
|
||||
{
|
||||
$result = $this->VeranstaltungskategorieModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Veranstaltungskategorie extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($veranstaltungskategorie = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Akte extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Akte' => 'basis/akte:rw', 'Akten' => 'basis/akte:r', 'AktenAccepted' => 'basis/akte:r'));
|
||||
// Load model AkteModel
|
||||
$this->load->model('crm/akte_model', 'AkteModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Akte extends APIv1_Controller
|
||||
public function getAkte()
|
||||
{
|
||||
$akteID = $this->get('akte_id');
|
||||
|
||||
|
||||
if (isset($akteID))
|
||||
{
|
||||
$result = $this->AkteModel->load($akteID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -46,7 +46,7 @@ class Akte extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -56,11 +56,11 @@ class Akte extends APIv1_Controller
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
$stg_kz = $this->get('stg_kz');
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->AkteModel->getAkten($person_id, $dokument_kurzbz, $stg_kz, $prestudent_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,7 +68,7 @@ class Akte extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -76,11 +76,11 @@ class Akte extends APIv1_Controller
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->AkteModel->getAktenAccepted($person_id, $dokument_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -104,7 +104,7 @@ class Akte extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AkteModel->insert($akte);
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -112,11 +112,11 @@ class Akte extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($akte = null)
|
||||
{
|
||||
unset($akte['accepted']);
|
||||
|
||||
|
||||
return $akte;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Aufnahmeschluessel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufnahmeschluessel' => 'basis/aufnahmeschluessel:rw'));
|
||||
// Load model AufnahmeschluesselModel
|
||||
$this->load->model('crm/aufnahmeschluessel_model', 'AufnahmeschluesselModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Aufnahmeschluessel extends APIv1_Controller
|
||||
public function getAufnahmeschluessel()
|
||||
{
|
||||
$aufnahmeschluessel = $this->get('aufnahmeschluessel');
|
||||
|
||||
|
||||
if (isset($aufnahmeschluessel))
|
||||
{
|
||||
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluessel);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Aufnahmeschluessel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufnahmeschluesselModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Aufnahmeschluessel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufnahmeschluessel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Aufnahmetermin extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufnahmetermin' => 'basis/aufnahmetermin:rw'));
|
||||
// Load model AufnahmeterminModel
|
||||
$this->load->model('crm/aufnahmetermin_model', 'AufnahmeterminModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Aufnahmetermin extends APIv1_Controller
|
||||
public function getAufnahmetermin()
|
||||
{
|
||||
$aufnahmeterminID = $this->get('aufnahmetermin_id');
|
||||
|
||||
|
||||
if (isset($aufnahmeterminID))
|
||||
{
|
||||
$result = $this->AufnahmeterminModel->load($aufnahmeterminID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Aufnahmetermin extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufnahmeterminModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Aufnahmetermin extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufnahmetermin = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Aufnahmetermintyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Aufnahmetermintyp' => 'basis/aufnahmetermintyp:rw'));
|
||||
// Load model AufnahmetermintypModel
|
||||
$this->load->model('crm/aufnahmetermintyp_model', 'AufnahmetermintypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Aufnahmetermintyp extends APIv1_Controller
|
||||
public function getAufnahmetermintyp()
|
||||
{
|
||||
$aufnahmetermintyp_kurzbz = $this->get('aufnahmetermintyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($aufnahmetermintyp_kurzbz))
|
||||
{
|
||||
$result = $this->AufnahmetermintypModel->load($aufnahmetermintyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Aufnahmetermintyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AufnahmetermintypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Aufnahmetermintyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($aufnahmetermintyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,14 @@ class Bewerbungstermine extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Bewerbungstermine' => 'basis/bewerbungstermine:rw',
|
||||
'ByStudiengangStudiensemester' => 'basis/bewerbungstermine:r',
|
||||
'ByStudienplan' => 'basis/bewerbungstermine:r',
|
||||
'Current' => 'basis/bewerbungstermine:r'
|
||||
)
|
||||
);
|
||||
// Load model BewerbungstermineModel
|
||||
$this->load->model('crm/bewerbungstermine_model', 'BewerbungstermineModel');
|
||||
|
||||
@@ -132,4 +139,4 @@ class Bewerbungstermine extends APIv1_Controller
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Buchungstyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Buchungstyp' => 'basis/buchungstyp:rw');
|
||||
// Load model BuchungstypModel
|
||||
$this->load->model('crm/buchungstyp_model', 'BuchungstypModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Buchungstyp extends APIv1_Controller
|
||||
public function getBuchungstyp()
|
||||
{
|
||||
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($buchungstyp_kurzbz))
|
||||
{
|
||||
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Buchungstyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BuchungstypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Buchungstyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($buchungstyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Dokument extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Dokument' => 'basis/dokument:rw'));
|
||||
// Load model DokumentModel
|
||||
$this->load->model('crm/dokument_model', 'DokumentModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Dokument extends APIv1_Controller
|
||||
public function getDokument()
|
||||
{
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
|
||||
|
||||
if (isset($dokument_kurzbz))
|
||||
{
|
||||
$result = $this->DokumentModel->load($dokument_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Dokument extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Dokument extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($dokument = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,13 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Dokumentprestudent' => 'basis/dokumentprestudent:rw',
|
||||
'SetAccepted' => 'basis/dokumentprestudent:w',
|
||||
'SetAcceptedDocuments' => 'basis/dokumentprestudent:w'
|
||||
)
|
||||
);
|
||||
// Load model DokumentprestudentModel
|
||||
$this->load->model('crm/dokumentprestudent_model', 'DokumentprestudentModel');
|
||||
}
|
||||
@@ -33,11 +39,11 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
{
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
|
||||
|
||||
if (isset($prestudent_id) && isset($dokument_kurzbz))
|
||||
{
|
||||
$result = $this->DokumentprestudentModel->load(array($prestudent_id, $dokument_kurzbz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +67,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentprestudentModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,7 +75,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -78,7 +84,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
if (isset($this->post()['prestudent_id']) && isset($this->post()['studiengang_kz']))
|
||||
{
|
||||
$result = $this->DokumentprestudentModel->setAccepted($this->post()['prestudent_id'], $this->post()['studiengang_kz']);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -86,7 +92,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -95,7 +101,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
if (isset($this->post()['prestudent_id']) && is_array($this->post()['dokument_kurzbz']))
|
||||
{
|
||||
$result = $this->DokumentprestudentModel->setAcceptedDocuments($this->post()['prestudent_id'], $this->post()['dokument_kurzbz']);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -103,9 +109,9 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($dokumentprestudent = null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,12 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Dokumentstudiengang' => 'basis/dokumentstudiengang:rw',
|
||||
'DokumentstudiengangByStudiengang_kz' => 'basis/dokumentstudiengang:r'
|
||||
)
|
||||
);
|
||||
// Load model DokumentstudiengangModel
|
||||
$this->load->model('crm/Dokumentstudiengang_model', 'DokumentstudiengangModel');
|
||||
}
|
||||
@@ -33,11 +38,11 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$dokument_kurzbz = $this->get('dokument_kurzbz');
|
||||
|
||||
|
||||
if (isset($studiengang_kz) && isset($dokument_kurzbz))
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->load(array($studiengang_kz, $dokument_kurzbz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -45,7 +50,7 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -55,7 +60,7 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
$onlinebewerbung = $this->get('onlinebewerbung');
|
||||
$pflicht = $this->get('pflicht');
|
||||
$nachreichbar = $this->get('nachreichbar');
|
||||
|
||||
|
||||
if (isset($studiengang_kz))
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->getDokumentstudiengangByStudiengang_kz(
|
||||
@@ -64,7 +69,7 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
$pflicht,
|
||||
$nachreichbar
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -92,7 +97,7 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -100,9 +105,9 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($dokumentstudiengang = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Konto extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Konto' => 'basis/konto:rw'));
|
||||
// Load model KontoModel
|
||||
$this->load->model('crm/konto_model', 'KontoModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Konto extends APIv1_Controller
|
||||
public function getKonto()
|
||||
{
|
||||
$buchungsnr = $this->get('buchungsnr');
|
||||
|
||||
|
||||
if (isset($buchungsnr))
|
||||
{
|
||||
$result = $this->KontoModel->load($buchungsnr);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Konto extends APIv1_Controller
|
||||
{
|
||||
$result = $this->KontoModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Konto extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($konto = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Preincoming extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Preincoming' => 'basis/preincoming:rw'));
|
||||
// Load model PreincomingModel
|
||||
$this->load->model('crm/preincoming_model', 'PreincomingModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Preincoming extends APIv1_Controller
|
||||
public function getPreincoming()
|
||||
{
|
||||
$preincomingID = $this->get('preincoming_id');
|
||||
|
||||
|
||||
if (isset($preincomingID))
|
||||
{
|
||||
$result = $this->PreincomingModel->load($preincomingID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Preincoming extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PreincomingModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Preincoming extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($preincoming = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Preinteressent extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Preinteressent' => 'basis/preinteressent:rw', 'PreinteressentByPersonID' => 'basis/preinteressent:r'));
|
||||
// Load model PersonModel
|
||||
$this->load->model('crm/preinteressent_model', 'PreinteressentModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Preinteressent extends APIv1_Controller
|
||||
public function getPreinteressent()
|
||||
{
|
||||
$preinteressent_id = $this->get('preinteressent_id');
|
||||
|
||||
|
||||
if (isset($preinteressent_id))
|
||||
{
|
||||
$result = $this->PreinteressentModel->load($preinteressent_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -46,18 +46,18 @@ class Preinteressent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getPreinteressentByPersonID()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->PreinteressentModel->load(array('person_id' => $person_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -81,7 +81,7 @@ class Preinteressent extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PreinteressentModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -89,7 +89,7 @@ class Preinteressent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($preinteressent)
|
||||
{
|
||||
if ($preinteressent['person_id'] == '')
|
||||
@@ -97,13 +97,13 @@ class Preinteressent extends APIv1_Controller
|
||||
//$this->errormsg = 'Person_id muss angegeben werden';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ($preinteressent['aufmerksamdurch_kurzbz'] == '')
|
||||
{
|
||||
//$this->errormsg = 'Aufmerksamdurch muss angegeben werden';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Preinteressentstudiengang extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Preinteressentstudiengang' => 'basis/preinteressentstudiengang:rw'));
|
||||
// Load model PreinteressentstudiengangModel
|
||||
$this->load->model('crm/preinteressentstudiengang_model', 'PreinteressentstudiengangModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,11 +35,11 @@ class Preinteressentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$preinteressent_id = $this->get('preinteressent_id');
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
|
||||
|
||||
if (isset($preinteressent_id) && isset($studiengang_kz))
|
||||
{
|
||||
$result = $this->PreinteressentstudiengangModel->load(array($preinteressent_id, $studiengang_kz));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -63,7 +63,7 @@ class Preinteressentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PreinteressentstudiengangModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -71,9 +71,9 @@ class Preinteressentstudiengang extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($preinteressentstudiengang = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Preoutgoing extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Preoutgoing' => 'basis/preoutgoing:rw'));
|
||||
// Load model PreoutgoingModel
|
||||
$this->load->model('crm/preoutgoing_model', 'PreoutgoingModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Preoutgoing extends APIv1_Controller
|
||||
public function getPreoutgoing()
|
||||
{
|
||||
$preoutgoingID = $this->get('preoutgoing_id');
|
||||
|
||||
|
||||
if (isset($preoutgoingID))
|
||||
{
|
||||
$result = $this->PreoutgoingModel->load($preoutgoingID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Preoutgoing extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PreoutgoingModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Preoutgoing extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($preoutgoing = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,18 @@ class Prestudent extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Prestudent' => 'basis/prestudent:rw',
|
||||
'PrestudentByPersonID' => 'basis/prestudent:r',
|
||||
'Specialization' => 'basis/prestudent:rw',
|
||||
'LastStatuses' => 'basis/prestudent:r',
|
||||
'PrestudentsPerStatus' => 'basis/prestudent:r',
|
||||
'RmSpecialization' => 'basis/prestudent:w',
|
||||
'AddReihungstest' => 'basis/prestudent:w',
|
||||
'DelReihungstest' => 'basis/prestudent:w'
|
||||
)
|
||||
);
|
||||
// Load model PrestudentModel
|
||||
$this->load->model('crm/prestudent_model', 'PrestudentModel');
|
||||
// Load library ReihungstestLib
|
||||
|
||||
@@ -21,7 +21,13 @@ class Prestudentstatus extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Prestudentstatus' => 'basis/prestudentstatus:rw',
|
||||
'LastStatus' => 'basis/prestudentstatus:r',
|
||||
'StatusByFilter' => 'basis/prestudentstatus:r'
|
||||
)
|
||||
);
|
||||
// Load model PrestudentstatusModel
|
||||
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,14 @@ class Reihungstest extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(
|
||||
array(
|
||||
'Reihungstest' => 'basis/reihungstest:rw',
|
||||
'ByStudiengangStudiensemester' => 'basis/reihungstest:r',
|
||||
'ReihungstestByPersonID' => 'basis/reihungstest:r',
|
||||
'AvailableReihungstestByPersonId' => 'basis/reihungstest:r'
|
||||
)
|
||||
);
|
||||
// Load model ReihungstestModel
|
||||
$this->load->model('crm/Reihungstest_model', 'ReihungstestModel');
|
||||
// Load library ReihungstestLib
|
||||
@@ -34,11 +41,11 @@ class Reihungstest extends APIv1_Controller
|
||||
public function getReihungstest()
|
||||
{
|
||||
$reihungstestID = $this->get('reihungstest_id');
|
||||
|
||||
|
||||
if (isset($reihungstestID))
|
||||
{
|
||||
$result = $this->ReihungstestModel->load($reihungstestID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -46,7 +53,7 @@ class Reihungstest extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -55,7 +62,7 @@ class Reihungstest extends APIv1_Controller
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$available = $this->get('available');
|
||||
|
||||
|
||||
if (isset($studiengang_kz))
|
||||
{
|
||||
$parametersArray = array('studiengang_kz' => $studiengang_kz);
|
||||
@@ -68,7 +75,7 @@ class Reihungstest extends APIv1_Controller
|
||||
$parametersArray['anmeldefrist >='] = 'NOW()';
|
||||
}
|
||||
$result = $this->ReihungstestModel->loadWhere($parametersArray);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -76,7 +83,7 @@ class Reihungstest extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -84,11 +91,11 @@ class Reihungstest extends APIv1_Controller
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$available = $this->get('available');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->reihungstestlib->getReihungstestByPersonID($person_id, $available);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -96,20 +103,20 @@ class Reihungstest extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAvailableReihungstestByPersonId()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
|
||||
|
||||
|
||||
$result = $this->StudiengangModel->getAvailableReihungstestByPersonId($person_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -133,7 +140,7 @@ class Reihungstest extends APIv1_Controller
|
||||
{
|
||||
$result = $this->ReihungstestModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -141,9 +148,9 @@ class Reihungstest extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($reihungstest = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class RtPerson extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('RtPerson' => 'basis/rtperson:rw'));
|
||||
// Load model StatusModel
|
||||
$this->load->model("crm/RtPerson_model", "RtPersonModel");
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class RtPerson extends APIv1_Controller
|
||||
public function getRtPerson()
|
||||
{
|
||||
$rt_person_id = $this->get("rt_person_id");
|
||||
|
||||
|
||||
if (isset($rt_person_id))
|
||||
{
|
||||
$result = $this->RtPersonModel->load($rt_person_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class RtPerson extends APIv1_Controller
|
||||
{
|
||||
$result = $this->RtPersonModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class RtPerson extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($rtPerson = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Status extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Status' => 'basis/status:rw'));
|
||||
// Load model StatusModel
|
||||
$this->load->model('crm/status_model', 'StatusModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Status extends APIv1_Controller
|
||||
public function getStatus()
|
||||
{
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
|
||||
|
||||
if (isset($status_kurzbz))
|
||||
{
|
||||
$result = $this->StatusModel->load($status_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Status extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StatusModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Status extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($status = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Statusgrund extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Statusgrund' => 'basis/statusgrund:rw'));
|
||||
// Load model StatusModel
|
||||
$this->load->model('crm/Statusgrund_model', 'StatusgrundModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Statusgrund extends APIv1_Controller
|
||||
public function getStatusgrund()
|
||||
{
|
||||
$statusgrund_kurzbz = $this->get('statusgrund_kurzbz');
|
||||
|
||||
|
||||
if (isset($statusgrund_kurzbz))
|
||||
{
|
||||
$result = $this->StatusgrundModel->load($statusgrund_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Statusgrund extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StatusgrundModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Statusgrund extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($statusgrund = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Student extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Student' => 'basis/student:rw'));
|
||||
// Load model StudentModel
|
||||
$this->load->model('crm/student_model', 'StudentModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,11 +34,11 @@ class Student extends APIv1_Controller
|
||||
public function getStudent()
|
||||
{
|
||||
$studentID = $this->get('student_id');
|
||||
|
||||
|
||||
if (isset($studentID))
|
||||
{
|
||||
$result = $this->StudentModel->load($studentID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,7 +62,7 @@ class Student extends APIv1_Controller
|
||||
{
|
||||
$result = $this->StudentModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -70,9 +70,9 @@ class Student extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($student = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Abgabe extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Abgabe' => 'basis/abgabe:rw'));
|
||||
// Load model AbgabeModel
|
||||
$this->load->model('education/Abgabe_model', 'AbgabeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Abgabe extends APIv1_Controller
|
||||
public function getAbgabe()
|
||||
{
|
||||
$abgabe_id = $this->get('abgabe_id');
|
||||
|
||||
|
||||
if (isset($abgabe_id))
|
||||
{
|
||||
$result = $this->AbgabeModel->load($abgabe_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Abgabe extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AbgabeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Abgabe extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($abgabe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Abschlussbeurteilung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Abschlussbeurteilung' => 'basis/abschlussbeurteilung:rw'));
|
||||
// Load model AbschlussbeurteilungModel
|
||||
$this->load->model('education/Abschlussbeurteilung_model', 'AbschlussbeurteilungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Abschlussbeurteilung extends APIv1_Controller
|
||||
public function getAbschlussbeurteilung()
|
||||
{
|
||||
$abschlussbeurteilung_kurzbz = $this->get('abschlussbeurteilung_kurzbz');
|
||||
|
||||
|
||||
if (isset($abschlussbeurteilung_kurzbz))
|
||||
{
|
||||
$result = $this->AbschlussbeurteilungModel->load($abschlussbeurteilung_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Abschlussbeurteilung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AbschlussbeurteilungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Abschlussbeurteilung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($abschlussbeurteilung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Abschlusspruefung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Abschlusspruefung' => 'basis/abschlusspruefung:rw'));
|
||||
// Load model AbschlusspruefungModel
|
||||
$this->load->model('education/Abschlusspruefung_model', 'AbschlusspruefungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Abschlusspruefung extends APIv1_Controller
|
||||
public function getAbschlusspruefung()
|
||||
{
|
||||
$abschlusspruefung_id = $this->get('abschlusspruefung_id');
|
||||
|
||||
|
||||
if (isset($abschlusspruefung_id))
|
||||
{
|
||||
$result = $this->AbschlusspruefungModel->load($abschlusspruefung_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Abschlusspruefung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AbschlusspruefungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Abschlusspruefung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($abschlusspruefung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Anrechnung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Anrechnung' => 'basis/anrechnung:rw'));
|
||||
// Load model AnrechnungModel
|
||||
$this->load->model('education/Anrechnung_model', 'AnrechnungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Anrechnung extends APIv1_Controller
|
||||
public function getAnrechnung()
|
||||
{
|
||||
$anrechnung_id = $this->get('anrechnung_id');
|
||||
|
||||
|
||||
if (isset($anrechnung_id))
|
||||
{
|
||||
$result = $this->AnrechnungModel->load($anrechnung_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Anrechnung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AnrechnungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Anrechnung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($anrechnung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Anwesenheit extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Anwesenheit' => 'basis/anwesenheit:rw'));
|
||||
// Load model AnwesenheitModel
|
||||
$this->load->model('education/Anwesenheit_model', 'AnwesenheitModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Anwesenheit extends APIv1_Controller
|
||||
public function getAnwesenheit()
|
||||
{
|
||||
$anwesenheit_id = $this->get('anwesenheit_id');
|
||||
|
||||
|
||||
if (isset($anwesenheit_id))
|
||||
{
|
||||
$result = $this->AnwesenheitModel->load($anwesenheit_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Anwesenheit extends APIv1_Controller
|
||||
{
|
||||
$result = $this->AnwesenheitModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Anwesenheit extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($anwesenheit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Beispiel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Beispiel' => 'basis/beispiel:rw'));
|
||||
// Load model BeispielModel
|
||||
$this->load->model('education/Beispiel_model', 'BeispielModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Beispiel extends APIv1_Controller
|
||||
public function getBeispiel()
|
||||
{
|
||||
$beispiel_id = $this->get('beispiel_id');
|
||||
|
||||
|
||||
if (isset($beispiel_id))
|
||||
{
|
||||
$result = $this->BeispielModel->load($beispiel_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Beispiel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BeispielModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Beispiel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($beispiel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Betreuerart extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Betreuerart' => 'basis/betreuerart:rw'));
|
||||
// Load model BetreuerartModel
|
||||
$this->load->model('education/Betreuerart_model', 'BetreuerartModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Betreuerart extends APIv1_Controller
|
||||
public function getBetreuerart()
|
||||
{
|
||||
$betreuerart_id = $this->get('betreuerart_kurzbz');
|
||||
|
||||
|
||||
if (isset($betreuerart_id))
|
||||
{
|
||||
$result = $this->BetreuerartModel->load($betreuerart_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Betreuerart extends APIv1_Controller
|
||||
{
|
||||
$result = $this->BetreuerartModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Betreuerart extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($betreuerart = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Feedback extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Feedback' => 'basis/feedback:rw'));
|
||||
// Load model FeedbackModel
|
||||
$this->load->model('education/Feedback_model', 'FeedbackModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Feedback extends APIv1_Controller
|
||||
public function getFeedback()
|
||||
{
|
||||
$feedback_id = $this->get('feedback_id');
|
||||
|
||||
|
||||
if (isset($feedback_id))
|
||||
{
|
||||
$result = $this->FeedbackModel->load($feedback_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Feedback extends APIv1_Controller
|
||||
{
|
||||
$result = $this->FeedbackModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Feedback extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($feedback = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Legesamtnote extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Legesamtnote' => 'basis/legesamtnote:rw'));
|
||||
// Load model LegesamtnoteModel
|
||||
$this->load->model('education/Legesamtnote_model', 'LegesamtnoteModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Legesamtnote extends APIv1_Controller
|
||||
{
|
||||
$lehreinheit_id = $this->get('lehreinheit_id');
|
||||
$student_uid = $this->get('student_uid');
|
||||
|
||||
|
||||
if (isset($lehreinheit_id) && isset($student_uid))
|
||||
{
|
||||
$result = $this->LegesamtnoteModel->load(array($lehreinheit_id, $student_uid));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Legesamtnote extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LegesamtnoteModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Legesamtnote extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($legesamtnote = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehreinheit extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehreinheit' => 'basis/lehreinheit:rw'));
|
||||
// Load model LehreinheitModel
|
||||
$this->load->model('education/Lehreinheit_model', 'LehreinheitModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehreinheit extends APIv1_Controller
|
||||
public function getLehreinheit()
|
||||
{
|
||||
$lehreinheit_id = $this->get('lehreinheit_id');
|
||||
|
||||
|
||||
if (isset($lehreinheit_id))
|
||||
{
|
||||
$result = $this->LehreinheitModel->load($lehreinheit_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehreinheit extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehreinheitModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehreinheit extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehreinheit = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehreinheitgruppe extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehreinheitgruppe' => 'basis/lehreinheitgruppe:rw'));
|
||||
// Load model LehreinheitgruppeModel
|
||||
$this->load->model('education/Lehreinheitgruppe_model', 'LehreinheitgruppeModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehreinheitgruppe extends APIv1_Controller
|
||||
public function getLehreinheitgruppe()
|
||||
{
|
||||
$lehreinheitgruppe_id = $this->get('lehreinheitgruppe_id');
|
||||
|
||||
|
||||
if (isset($lehreinheitgruppe_id))
|
||||
{
|
||||
$result = $this->LehreinheitgruppeModel->load($lehreinheitgruppe_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehreinheitgruppe extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehreinheitgruppeModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehreinheitgruppe extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehreinheitgruppe = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehreinheitmitarbeiter' => 'basis/lehreinheitmitarbeiter:rw'));
|
||||
// Load model LehreinheitmitarbeiterModel
|
||||
$this->load->model('education/Lehreinheitmitarbeiter_model', 'LehreinheitmitarbeiterModel');
|
||||
}
|
||||
@@ -33,11 +33,11 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
|
||||
{
|
||||
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
|
||||
$lehreinheit_id = $this->get('lehreinheit_id');
|
||||
|
||||
|
||||
if (isset($mitarbeiter_uid) && isset($lehreinheit_id))
|
||||
{
|
||||
$result = $this->LehreinheitmitarbeiterModel->load(array($mitarbeiter_uid, $lehreinheit_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehreinheitmitarbeiterModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -69,9 +69,9 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehreinheitmitarbeiter = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrfach extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrfach' => 'basis/lehrfach:rw'));
|
||||
// Load model LehrfachModel
|
||||
$this->load->model('education/Lehrfach_model', 'LehrfachModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrfach extends APIv1_Controller
|
||||
public function getLehrfach()
|
||||
{
|
||||
$lehrfach_id = $this->get('lehrfach_id');
|
||||
|
||||
|
||||
if (isset($lehrfach_id))
|
||||
{
|
||||
$result = $this->LehrfachModel->load($lehrfach_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrfach extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrfachModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrfach extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrfach = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrfunktion extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrfunktion' => 'basis/lehrfunktion:rw'));
|
||||
// Load model LehrfunktionModel
|
||||
$this->load->model('education/Lehrfunktion_model', 'LehrfunktionModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrfunktion extends APIv1_Controller
|
||||
public function getLehrfunktion()
|
||||
{
|
||||
$lehrfunktion_kurzbz = $this->get('lehrfunktion_kurzbz');
|
||||
|
||||
|
||||
if (isset($lehrfunktion_kurzbz))
|
||||
{
|
||||
$result = $this->LehrfunktionModel->load($lehrfunktion_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrfunktion extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrfunktionModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrfunktion extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrfunktion = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrtyp extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrtyp' => 'basis/lehrtyp:rw'));
|
||||
// Load model LehrtypModel
|
||||
$this->load->model('education/Lehrtyp_model', 'LehrtypModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrtyp extends APIv1_Controller
|
||||
public function getLehrtyp()
|
||||
{
|
||||
$lehrtyp_kurzbz = $this->get('lehrtyp_kurzbz');
|
||||
|
||||
|
||||
if (isset($lehrtyp_kurzbz))
|
||||
{
|
||||
$result = $this->LehrtypModel->load($lehrtyp_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrtyp extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrtypModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrtyp extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrtyp = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lehrveranstaltung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lehrveranstaltung' => 'basis/lehrveranstaltung:rw'));
|
||||
// Load model LehrveranstaltungModel
|
||||
$this->load->model('education/Lehrveranstaltung_model', 'LehrveranstaltungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lehrveranstaltung extends APIv1_Controller
|
||||
public function getLehrveranstaltung()
|
||||
{
|
||||
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
|
||||
|
||||
|
||||
if (isset($lehrveranstaltung_id))
|
||||
{
|
||||
$result = $this->LehrveranstaltungModel->load($lehrveranstaltung_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lehrveranstaltung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LehrveranstaltungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lehrveranstaltung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lehrveranstaltung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class Lenotenschluessel extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('LeNotenschluessel' => 'basis/lenotenschluessel:rw'));
|
||||
// Load model LeNotenschluesselModel
|
||||
$this->load->model('education/LeNotenschluessel_model', 'LeNotenschluesselModel');
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,11 +35,11 @@ class Lenotenschluessel extends APIv1_Controller
|
||||
{
|
||||
$note = $this->get('note');
|
||||
$lehreinheit_id = $this->get('lehreinheit_id');
|
||||
|
||||
|
||||
if (isset($note) && isset($lehreinheit_id))
|
||||
{
|
||||
$result = $this->LeNotenschluesselModel->load(array($note, $lehreinheit_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -63,7 +63,7 @@ class Lenotenschluessel extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LeNotenschluesselModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -71,9 +71,9 @@ class Lenotenschluessel extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lenotenschluessel = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lepruefung extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('LePruefung' => 'basis/lepruefung:rw'));
|
||||
// Load model LePruefungModel
|
||||
$this->load->model('education/LePruefung_model', 'LePruefungModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lepruefung extends APIv1_Controller
|
||||
public function getLePruefung()
|
||||
{
|
||||
$lepruefung_id = $this->get('lepruefung_id');
|
||||
|
||||
|
||||
if (isset($lepruefung_id))
|
||||
{
|
||||
$result = $this->LePruefungModel->load($lepruefung_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lepruefung extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LePruefungModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lepruefung extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lepruefung = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lvangebot extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lvangebot' => 'basis/lvangebot:rw'));
|
||||
// Load model LvangebotModel
|
||||
$this->load->model('education/Lvangebot_model', 'LvangebotModel');
|
||||
}
|
||||
@@ -32,11 +32,11 @@ class Lvangebot extends APIv1_Controller
|
||||
public function getLvangebot()
|
||||
{
|
||||
$lvangebot_id = $this->get('lvangebot_id');
|
||||
|
||||
|
||||
if (isset($lvangebot_id))
|
||||
{
|
||||
$result = $this->LvangebotModel->load($lvangebot_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,7 +60,7 @@ class Lvangebot extends APIv1_Controller
|
||||
{
|
||||
$result = $this->LvangebotModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -68,9 +68,9 @@ class Lvangebot extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lvangebot = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Lvgesamtnote extends APIv1_Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct(array('Lvgesamtnote' => 'basis/lvgesamtnote:rw'));
|
||||
// Load model LvgesamtnoteModel
|
||||
$this->load->model('education/Lvgesamtnote_model', 'LvgesamtnoteModel');
|
||||
}
|
||||
@@ -34,11 +34,11 @@ class Lvgesamtnote extends APIv1_Controller
|
||||
$student_uid = $this->get('student_uid');
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
|
||||
|
||||
|
||||
if (isset($student_uid) && isset($studiensemester_kurzbz) && isset($lehrveranstaltung_id))
|
||||
{
|
||||
$result = $this->LvgesamtnoteModel->load(array($student_uid, $studiensemester_kurzbz, $lehrveranstaltung_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -60,14 +60,14 @@ class Lvgesamtnote extends APIv1_Controller
|
||||
$this->post()['studiensemester_kurzbz'],
|
||||
$this->post()['lehrveranstaltung_id']
|
||||
);
|
||||
|
||||
|
||||
$result = $this->LvgesamtnoteModel->update($pksArray, $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->LvgesamtnoteModel->insert($this->post());
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -75,9 +75,9 @@ class Lvgesamtnote extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($lvgesamtnote = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user