mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
- Added method chkRights to DB_Model
- Added method toPhp to DB_Model to convert array and boolean types from PostgresSQL to php - Added method execQuery to DB_Model to execute a query (it calls toPhp) - Added method pgsqlArrayToPhpArray to convert a pgsql array to php - Updated DB_Model methods to using chkRights (and toPhp where it is needed) - Removed methods escapeArray and _pgsqlArrayToPhpArray from controller APIv1_Controller - Removed escapeArray from controllers Dokumentstudiengang and Dokument - Updated models to use execQuery (and chkRights where it is needed)
This commit is contained in:
@@ -37,9 +37,6 @@ class Dokument extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentModel->load($dokument_kurzbz);
|
||||
|
||||
// Workaround
|
||||
$result = $this->escapeArrays($result, array('bezeichnung_mehrsprachig', 'dokumentbeschreibung_mehrsprachig'));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -38,9 +38,6 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->load(array($studiengang_kz, $dokument_kurzbz));
|
||||
|
||||
// Workaround
|
||||
$result = $this->escapeArrays($result, array('beschreibung_mehrsprachig'));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -62,9 +59,6 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->getDokumentstudiengangByStudiengang_kz($studiengang_kz, $onlinebewerbung, $pflicht);
|
||||
|
||||
// Workaround
|
||||
$result = $this->escapeArrays($result, array('bezeichnung_mehrsprachig', 'dokumentbeschreibung_mehrsprachig'));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user