diff --git a/application/config/autoload.php b/application/config/autoload.php
index dd66c13b6..6bbcbf33b 100755
--- a/application/config/autoload.php
+++ b/application/config/autoload.php
@@ -1,5 +1,5 @@
'',
diff --git a/application/config/foreign_chars.php b/application/config/foreign_chars.php
index ac406e3d4..a656dd048 100755
--- a/application/config/foreign_chars.php
+++ b/application/config/foreign_chars.php
@@ -1,5 +1,5 @@
render();
- if($crud->getState() != 'list') {
+ if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
@@ -214,7 +214,7 @@ class Examples extends CI_Controller
$output = $crud->render();
- if($crud->getState() != 'list') {
+ if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
@@ -237,7 +237,7 @@ class Examples extends CI_Controller
$output = $crud->render();
- if($crud->getState() != 'list') {
+ if ($crud->getState() != 'list') {
$this->_example_output($output);
} else {
return $output;
diff --git a/application/controllers/ModelTest.php b/application/controllers/ModelTest.php
index 3e89a3dbc..3e51082d7 100755
--- a/application/controllers/ModelTest.php
+++ b/application/controllers/ModelTest.php
@@ -1,5 +1,5 @@
get('aufteilung_id');
- if(isset($aufteilungID))
+ if (isset($aufteilungID))
{
$result = $this->AufteilungModel->load($aufteilungID);
@@ -52,9 +52,9 @@ class Aufteilung extends APIv1_Controller
*/
public function postAufteilung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufteilung_id']))
+ if (isset($this->post()['aufteilung_id']))
{
$result = $this->AufteilungModel->update($this->post()['aufteilung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Bestelldetail.php b/application/controllers/api/v1/accounting/Bestelldetail.php
index 696bc7479..cde6eb766 100644
--- a/application/controllers/api/v1/accounting/Bestelldetail.php
+++ b/application/controllers/api/v1/accounting/Bestelldetail.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestelldetail extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bestelldetail extends APIv1_Controller
{
$bestelldetailID = $this->get('bestelldetail_id');
- if(isset($bestelldetailID))
+ if (isset($bestelldetailID))
{
$result = $this->BestelldetailModel->load($bestelldetailID);
@@ -52,9 +52,9 @@ class Bestelldetail extends APIv1_Controller
*/
public function postBestelldetail()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bestelldetail_id']))
+ if (isset($this->post()['bestelldetail_id']))
{
$result = $this->BestelldetailModel->update($this->post()['bestelldetail_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Bestelldetailtag.php b/application/controllers/api/v1/accounting/Bestelldetailtag.php
index 84209c58c..1263bd04e 100644
--- a/application/controllers/api/v1/accounting/Bestelldetailtag.php
+++ b/application/controllers/api/v1/accounting/Bestelldetailtag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestelldetailtag extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Bestelldetailtag extends APIv1_Controller
$bestelldetail_id = $this->get('bestelldetail_id');
$tag = $this->get('tag');
- if(isset($bestelldetail_id) && isset($tag))
+ if (isset($bestelldetail_id) && isset($tag))
{
$result = $this->BestelldetailtagModel->load(array($bestelldetail_id, $tag));
@@ -53,9 +53,9 @@ class Bestelldetailtag extends APIv1_Controller
*/
public function postBestelldetailtag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bestelldetailtag_id']))
+ if (isset($this->post()['bestelldetailtag_id']))
{
$result = $this->BestelldetailtagModel->update($this->post()['bestelldetailtag_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Bestellstatus.php b/application/controllers/api/v1/accounting/Bestellstatus.php
index e5daa2bcc..2feb43ced 100644
--- a/application/controllers/api/v1/accounting/Bestellstatus.php
+++ b/application/controllers/api/v1/accounting/Bestellstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellstatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bestellstatus extends APIv1_Controller
{
$bestellstatus_kurzbz = $this->get('bestellstatus_kurzbz');
- if(isset($bestellstatus_kurzbz))
+ if (isset($bestellstatus_kurzbz))
{
$result = $this->BestellstatusModel->load($bestellstatus_kurzbz);
@@ -52,9 +52,9 @@ class Bestellstatus extends APIv1_Controller
*/
public function postBestellstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bestellstatus_kurzbz']))
+ if (isset($this->post()['bestellstatus_kurzbz']))
{
$result = $this->BestellstatusModel->update($this->post()['bestellstatus_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Bestellung.php b/application/controllers/api/v1/accounting/Bestellung.php
index be35b38ce..cce6a4298 100644
--- a/application/controllers/api/v1/accounting/Bestellung.php
+++ b/application/controllers/api/v1/accounting/Bestellung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bestellung extends APIv1_Controller
{
$bestellungID = $this->get('bestellung_id');
- if(isset($bestellungID))
+ if (isset($bestellungID))
{
$result = $this->BestellungModel->load($bestellungID);
@@ -52,9 +52,9 @@ class Bestellung extends APIv1_Controller
*/
public function postBestellung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bestellung_id']))
+ if (isset($this->post()['bestellung_id']))
{
$result = $this->BestellungModel->update($this->post()['bestellung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Bestellungtag.php b/application/controllers/api/v1/accounting/Bestellungtag.php
index 69aae5b69..13361d66f 100644
--- a/application/controllers/api/v1/accounting/Bestellungtag.php
+++ b/application/controllers/api/v1/accounting/Bestellungtag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bestellungtag extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Bestellungtag extends APIv1_Controller
$bestellung_id = $this->get('bestellung_id');
$tag = $this->get('tag');
- if(isset($bestellung_id) && isset($tag))
+ if (isset($bestellung_id) && isset($tag))
{
$result = $this->BestellungtagModel->load(array($bestellung_id, $tag));
@@ -53,9 +53,9 @@ class Bestellungtag extends APIv1_Controller
*/
public function postBestellungtag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bestellungtag_id']))
+ if (isset($this->post()['bestellungtag_id']))
{
$result = $this->BestellungtagModel->update($this->post()['bestellungtag_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Buchung.php b/application/controllers/api/v1/accounting/Buchung.php
index 64c785360..7175063a2 100644
--- a/application/controllers/api/v1/accounting/Buchung.php
+++ b/application/controllers/api/v1/accounting/Buchung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Buchung extends APIv1_Controller
{
$buchungID = $this->get('buchung_id');
- if(isset($buchungID))
+ if (isset($buchungID))
{
$result = $this->BuchungModel->load($buchungID);
@@ -52,9 +52,9 @@ class Buchung extends APIv1_Controller
*/
public function postBuchung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['buchung_id']))
+ if (isset($this->post()['buchung_id']))
{
$result = $this->BuchungModel->update($this->post()['buchung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Buchungstyp.php b/application/controllers/api/v1/accounting/Buchungstyp.php
index 470e14658..854cc954b 100644
--- a/application/controllers/api/v1/accounting/Buchungstyp.php
+++ b/application/controllers/api/v1/accounting/Buchungstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchungstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Buchungstyp extends APIv1_Controller
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
- if(isset($buchungstyp_kurzbz))
+ if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
@@ -52,9 +52,9 @@ class Buchungstyp extends APIv1_Controller
*/
public function postBuchungstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['buchungstyp_kurzbz']))
+ if (isset($this->post()['buchungstyp_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Budget.php b/application/controllers/api/v1/accounting/Budget.php
index 23074fd6e..7de0dee3f 100644
--- a/application/controllers/api/v1/accounting/Budget.php
+++ b/application/controllers/api/v1/accounting/Budget.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Budget extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Budget extends APIv1_Controller
$kostenstelle_id = $this->get('kostenstelle_id');
$geschaeftsjahr_kurzbz = $this->get('geschaeftsjahr_kurzbz');
- if(isset($kostenstelle_id) && isset($geschaeftsjahr_kurzbz))
+ if (isset($kostenstelle_id) && isset($geschaeftsjahr_kurzbz))
{
$result = $this->BudgetModel->load(array($kostenstelle_id, $geschaeftsjahr_kurzbz));
@@ -53,9 +53,9 @@ class Budget extends APIv1_Controller
*/
public function postBudget()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['budget_id']) && isset($this->post()['geschaeftsjahr_kurzbz']))
+ if (isset($this->post()['budget_id']) && isset($this->post()['geschaeftsjahr_kurzbz']))
{
$result = $this->BudgetModel->update(array($this->post()['budget_id'], $this->post()['geschaeftsjahr_kurzbz']), $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Konto.php b/application/controllers/api/v1/accounting/Konto.php
index e6e6da763..2c05a6735 100644
--- a/application/controllers/api/v1/accounting/Konto.php
+++ b/application/controllers/api/v1/accounting/Konto.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Konto extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Konto extends APIv1_Controller
{
$kontoID = $this->get('konto_id');
- if(isset($kontoID))
+ if (isset($kontoID))
{
$result = $this->KontoModel->load($kontoID);
@@ -52,9 +52,9 @@ class Konto extends APIv1_Controller
*/
public function postKonto()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['konto_id']))
+ if (isset($this->post()['konto_id']))
{
$result = $this->KontoModel->update($this->post()['konto_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Kostenstelle.php b/application/controllers/api/v1/accounting/Kostenstelle.php
index 2bc39e212..ef4074134 100644
--- a/application/controllers/api/v1/accounting/Kostenstelle.php
+++ b/application/controllers/api/v1/accounting/Kostenstelle.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kostenstelle extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Kostenstelle extends APIv1_Controller
{
$kostenstelleID = $this->get('kostenstelle_id');
- if(isset($kostenstelleID))
+ if (isset($kostenstelleID))
{
$result = $this->KostenstelleModel->load($kostenstelleID);
@@ -52,9 +52,9 @@ class Kostenstelle extends APIv1_Controller
*/
public function postKostenstelle()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['kostenstelle_id']))
+ if (isset($this->post()['kostenstelle_id']))
{
$result = $this->KostenstelleModel->update($this->post()['kostenstelle_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Rechnung.php b/application/controllers/api/v1/accounting/Rechnung.php
index a0ffcbbb3..4bc69abf6 100644
--- a/application/controllers/api/v1/accounting/Rechnung.php
+++ b/application/controllers/api/v1/accounting/Rechnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Rechnung extends APIv1_Controller
{
$rechnungID = $this->get('rechnung_id');
- if(isset($rechnungID))
+ if (isset($rechnungID))
{
$result = $this->RechnungModel->load($rechnungID);
@@ -52,9 +52,9 @@ class Rechnung extends APIv1_Controller
*/
public function postRechnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['rechnung_id']))
+ if (isset($this->post()['rechnung_id']))
{
$result = $this->RechnungModel->update($this->post()['rechnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Rechnungsbetrag.php b/application/controllers/api/v1/accounting/Rechnungsbetrag.php
index 82f96c051..3031857e0 100644
--- a/application/controllers/api/v1/accounting/Rechnungsbetrag.php
+++ b/application/controllers/api/v1/accounting/Rechnungsbetrag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnungsbetrag extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Rechnungsbetrag extends APIv1_Controller
{
$rechnungsbetragID = $this->get('rechnungsbetrag_id');
- if(isset($rechnungsbetragID))
+ if (isset($rechnungsbetragID))
{
$result = $this->RechnungsbetragModel->load($rechnungsbetragID);
@@ -52,9 +52,9 @@ class Rechnungsbetrag extends APIv1_Controller
*/
public function postRechnungsbetrag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['rechnungsbetrag_id']))
+ if (isset($this->post()['rechnungsbetrag_id']))
{
$result = $this->RechnungsbetragModel->update($this->post()['rechnungsbetrag_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Rechnungstyp.php b/application/controllers/api/v1/accounting/Rechnungstyp.php
index e6bd28e2c..56deb307f 100644
--- a/application/controllers/api/v1/accounting/Rechnungstyp.php
+++ b/application/controllers/api/v1/accounting/Rechnungstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rechnungstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Rechnungstyp extends APIv1_Controller
{
$rechnungstyp_kurzbz = $this->get('rechnungstyp_kurzbz');
- if(isset($rechnungstyp_kurzbz))
+ if (isset($rechnungstyp_kurzbz))
{
$result = $this->RechnungstypModel->load($rechnungstyp_kurzbz);
@@ -52,9 +52,9 @@ class Rechnungstyp extends APIv1_Controller
*/
public function postRechnungstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['rechnungstyp_kurzbz']))
+ if (isset($this->post()['rechnungstyp_kurzbz']))
{
$result = $this->RechnungstypModel->update($this->post()['rechnungstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Vertrag.php b/application/controllers/api/v1/accounting/Vertrag.php
index 1136567ac..8993838d9 100644
--- a/application/controllers/api/v1/accounting/Vertrag.php
+++ b/application/controllers/api/v1/accounting/Vertrag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertrag extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vertrag extends APIv1_Controller
{
$vertragID = $this->get('vertrag_id');
- if(isset($vertragID))
+ if (isset($vertragID))
{
$result = $this->VertragModel->load($vertragID);
@@ -52,9 +52,9 @@ class Vertrag extends APIv1_Controller
*/
public function postVertrag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vertrag_id']))
+ if (isset($this->post()['vertrag_id']))
{
$result = $this->VertragModel->update($this->post()['vertrag_id'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Vertragsstatus.php b/application/controllers/api/v1/accounting/Vertragsstatus.php
index e288fadbb..bc7567cf9 100644
--- a/application/controllers/api/v1/accounting/Vertragsstatus.php
+++ b/application/controllers/api/v1/accounting/Vertragsstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertragsstatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vertragsstatus extends APIv1_Controller
{
$vertragsstatus_kurzbz = $this->get('vertragsstatus_kurzbz');
- if(isset($vertragsstatus_kurzbz))
+ if (isset($vertragsstatus_kurzbz))
{
$result = $this->VertragsstatusModel->load($vertragsstatus_kurzbz);
@@ -52,9 +52,9 @@ class Vertragsstatus extends APIv1_Controller
*/
public function postVertragsstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vertragsstatus_kurzbz']))
+ if (isset($this->post()['vertragsstatus_kurzbz']))
{
$result = $this->VertragsstatusModel->update($this->post()['vertragsstatus_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Vertragstyp.php b/application/controllers/api/v1/accounting/Vertragstyp.php
index dfc3366c5..44f0a6c76 100644
--- a/application/controllers/api/v1/accounting/Vertragstyp.php
+++ b/application/controllers/api/v1/accounting/Vertragstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vertragstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vertragstyp extends APIv1_Controller
{
$vertragstyp_kurzbz = $this->get('vertragstyp_kurzbz');
- if(isset($vertragstyp_kurzbz))
+ if (isset($vertragstyp_kurzbz))
{
$result = $this->VertragstypModel->load($vertragstyp_kurzbz);
@@ -52,9 +52,9 @@ class Vertragstyp extends APIv1_Controller
*/
public function postVertragstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vertragstyp_kurzbz']))
+ if (isset($this->post()['vertragstyp_kurzbz']))
{
$result = $this->VertragstypModel->update($this->post()['vertragstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/accounting/Zahlungstyp.php b/application/controllers/api/v1/accounting/Zahlungstyp.php
index bec1f7694..bcd529472 100644
--- a/application/controllers/api/v1/accounting/Zahlungstyp.php
+++ b/application/controllers/api/v1/accounting/Zahlungstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zahlungstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zahlungstyp extends APIv1_Controller
{
$zahlungstyp_kurzbz = $this->get('zahlungstyp_kurzbz');
- if(isset($zahlungstyp_kurzbz))
+ if (isset($zahlungstyp_kurzbz))
{
$result = $this->ZahlungstypModel->load($zahlungstyp_kurzbz);
@@ -52,9 +52,9 @@ class Zahlungstyp extends APIv1_Controller
*/
public function postZahlungstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zahlungstyp_kurzbz']))
+ if (isset($this->post()['zahlungstyp_kurzbz']))
{
$result = $this->ZahlungstypModel->update($this->post()['zahlungstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Akadgrad.php b/application/controllers/api/v1/codex/Akadgrad.php
index 45518d146..659a3292b 100644
--- a/application/controllers/api/v1/codex/Akadgrad.php
+++ b/application/controllers/api/v1/codex/Akadgrad.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Akadgrad extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Akadgrad extends APIv1_Controller
{
$akadgradID = $this->get('akadgrad_id');
- if(isset($akadgradID))
+ if (isset($akadgradID))
{
$result = $this->AkadgradModel->load($akadgradID);
@@ -52,9 +52,9 @@ class Akadgrad extends APIv1_Controller
*/
public function postAkadgrad()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['akadgrad_id']))
+ if (isset($this->post()['akadgrad_id']))
{
$result = $this->AkadgradModel->update($this->post()['akadgrad_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Archiv.php b/application/controllers/api/v1/codex/Archiv.php
index 7918d9bb5..be4c5dd76 100644
--- a/application/controllers/api/v1/codex/Archiv.php
+++ b/application/controllers/api/v1/codex/Archiv.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Archiv extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Archiv extends APIv1_Controller
{
$archivID = $this->get('archiv_id');
- if(isset($archivID))
+ if (isset($archivID))
{
$result = $this->ArchivModel->load($archivID);
@@ -52,9 +52,9 @@ class Archiv extends APIv1_Controller
*/
public function postArchiv()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['archiv_id']))
+ if (isset($this->post()['archiv_id']))
{
$result = $this->ArchivModel->update($this->post()['archiv_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Aufmerksamdurch.php b/application/controllers/api/v1/codex/Aufmerksamdurch.php
index 73aa1e4c3..4b13a77c5 100644
--- a/application/controllers/api/v1/codex/Aufmerksamdurch.php
+++ b/application/controllers/api/v1/codex/Aufmerksamdurch.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufmerksamdurch extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aufmerksamdurch extends APIv1_Controller
{
$aufmerksamdurch_kurzbz = $this->get('aufmerksamdurch_kurzbz');
- if(isset($aufmerksamdurch_kurzbz))
+ if (isset($aufmerksamdurch_kurzbz))
{
$result = $this->AufmerksamdurchModel->load($aufmerksamdurch_kurzbz);
@@ -52,9 +52,9 @@ class Aufmerksamdurch extends APIv1_Controller
*/
public function postAufmerksamdurch()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufmerksamdurch_kurzbz']))
+ if (isset($this->post()['aufmerksamdurch_kurzbz']))
{
$result = $this->AufmerksamdurchModel->update($this->post()['aufmerksamdurch_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Ausbildung.php b/application/controllers/api/v1/codex/Ausbildung.php
index cf2387e9b..187026071 100644
--- a/application/controllers/api/v1/codex/Ausbildung.php
+++ b/application/controllers/api/v1/codex/Ausbildung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ausbildung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Ausbildung extends APIv1_Controller
{
$ausbildungcode = $this->get('ausbildungcode');
- if(isset($ausbildungcode))
+ if (isset($ausbildungcode))
{
$result = $this->AusbildungModel->load($ausbildungcode);
@@ -52,9 +52,9 @@ class Ausbildung extends APIv1_Controller
*/
public function postAusbildung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ausbildungcode']))
+ if (isset($this->post()['ausbildungcode']))
{
$result = $this->AusbildungModel->update($this->post()['ausbildungcode'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Berufstaetigkeit.php b/application/controllers/api/v1/codex/Berufstaetigkeit.php
index 20b357eda..238b63b74 100644
--- a/application/controllers/api/v1/codex/Berufstaetigkeit.php
+++ b/application/controllers/api/v1/codex/Berufstaetigkeit.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Berufstaetigkeit extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Berufstaetigkeit extends APIv1_Controller
{
$berufstaetigkeit_code = $this->get('berufstaetigkeit_code');
- if(isset($berufstaetigkeit_code))
+ if (isset($berufstaetigkeit_code))
{
$result = $this->BerufstaetigkeitModel->load($berufstaetigkeit_code);
@@ -52,9 +52,9 @@ class Berufstaetigkeit extends APIv1_Controller
*/
public function postBerufstaetigkeit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['berufstaetigkeit_code']))
+ if (isset($this->post()['berufstaetigkeit_code']))
{
$result = $this->BerufstaetigkeitModel->update($this->post()['berufstaetigkeit_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Beschaeftigungsausmass.php b/application/controllers/api/v1/codex/Beschaeftigungsausmass.php
index 579ead6a5..ec5b75b7c 100644
--- a/application/controllers/api/v1/codex/Beschaeftigungsausmass.php
+++ b/application/controllers/api/v1/codex/Beschaeftigungsausmass.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Beschaeftigungsausmass extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Beschaeftigungsausmass extends APIv1_Controller
{
$beschausmasscode = $this->get('beschausmasscode');
- if(isset($beschausmasscode))
+ if (isset($beschausmasscode))
{
$result = $this->BeschaeftigungsausmassModel->load($beschausmasscode);
@@ -52,9 +52,9 @@ class Beschaeftigungsausmass extends APIv1_Controller
*/
public function postBeschaeftigungsausmass()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['beschausmasscode']))
+ if (isset($this->post()['beschausmasscode']))
{
$result = $this->BeschaeftigungsausmassModel->update($this->post()['beschausmasscode'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Besqual.php b/application/controllers/api/v1/codex/Besqual.php
index f5d4236fb..e48a4307f 100644
--- a/application/controllers/api/v1/codex/Besqual.php
+++ b/application/controllers/api/v1/codex/Besqual.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Besqual extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Besqual extends APIv1_Controller
{
$besqualcode = $this->get('besqualcode');
- if(isset($besqualcode))
+ if (isset($besqualcode))
{
$result = $this->BesqualModel->load($besqualcode);
@@ -52,9 +52,9 @@ class Besqual extends APIv1_Controller
*/
public function postBesqual()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['besqualcode']))
+ if (isset($this->post()['besqualcode']))
{
$result = $this->BesqualModel->update($this->post()['besqualcode'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Bisfunktion.php b/application/controllers/api/v1/codex/Bisfunktion.php
index 37590547c..ab75641d3 100644
--- a/application/controllers/api/v1/codex/Bisfunktion.php
+++ b/application/controllers/api/v1/codex/Bisfunktion.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisfunktion extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Bisfunktion extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$bisverwendung_id = $this->get('bisverwendung_id');
- if(isset($studiengang_kz) && isset($bisverwendung_id))
+ if (isset($studiengang_kz) && isset($bisverwendung_id))
{
$result = $this->BisfunktionModel->load(array($studiengang_kz, $bisverwendung_id));
@@ -53,9 +53,9 @@ class Bisfunktion extends APIv1_Controller
*/
public function postBisfunktion()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiengang_kz']) && isset($this->post()['bisverwendung_id']))
+ if (isset($this->post()['studiengang_kz']) && isset($this->post()['bisverwendung_id']))
{
$result = $this->BisfunktionModel->update(array($this->post()['studiengang_kz'], $this->post()['bisverwendung_id']), $this->post());
}
diff --git a/application/controllers/api/v1/codex/Bisio.php b/application/controllers/api/v1/codex/Bisio.php
index 405089d0e..6e519e8cb 100644
--- a/application/controllers/api/v1/codex/Bisio.php
+++ b/application/controllers/api/v1/codex/Bisio.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisio extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bisio extends APIv1_Controller
{
$bisioID = $this->get('bisio_id');
- if(isset($bisioID))
+ if (isset($bisioID))
{
$result = $this->BisioModel->load($bisioID);
@@ -52,9 +52,9 @@ class Bisio extends APIv1_Controller
*/
public function postBisio()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bisio_id']))
+ if (isset($this->post()['bisio_id']))
{
$result = $this->BisioModel->update($this->post()['bisio_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Bisorgform.php b/application/controllers/api/v1/codex/Bisorgform.php
index 2fb9bab19..503d50fae 100644
--- a/application/controllers/api/v1/codex/Bisorgform.php
+++ b/application/controllers/api/v1/codex/Bisorgform.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisorgform extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bisorgform extends APIv1_Controller
{
$bisorgform_kurzbz = $this->get('bisorgform_kurzbz');
- if(isset($bisorgform_kurzbz))
+ if (isset($bisorgform_kurzbz))
{
$result = $this->BisorgformModel->load($bisorgform_kurzbz);
@@ -52,9 +52,9 @@ class Bisorgform extends APIv1_Controller
*/
public function postBisorgform()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bisorgform_kurzbz']))
+ if (isset($this->post()['bisorgform_kurzbz']))
{
$result = $this->BisorgformModel->update($this->post()['bisorgform_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Bisverwendung.php b/application/controllers/api/v1/codex/Bisverwendung.php
index 5ec5499da..a01a775b6 100644
--- a/application/controllers/api/v1/codex/Bisverwendung.php
+++ b/application/controllers/api/v1/codex/Bisverwendung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bisverwendung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bisverwendung extends APIv1_Controller
{
$bisverwendungID = $this->get('bisverwendung_id');
- if(isset($bisverwendungID))
+ if (isset($bisverwendungID))
{
$result = $this->BisverwendungModel->load($bisverwendungID);
@@ -52,9 +52,9 @@ class Bisverwendung extends APIv1_Controller
*/
public function postBisverwendung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bisverwendung_id']))
+ if (isset($this->post()['bisverwendung_id']))
{
$result = $this->BisverwendungModel->update($this->post()['bisverwendung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Bundesland.php b/application/controllers/api/v1/codex/Bundesland.php
index ad5c8e29a..023871501 100644
--- a/application/controllers/api/v1/codex/Bundesland.php
+++ b/application/controllers/api/v1/codex/Bundesland.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bundesland extends APIv1_Controller
{
diff --git a/application/controllers/api/v1/codex/Entwicklungsteam.php b/application/controllers/api/v1/codex/Entwicklungsteam.php
index 31abdf3bc..b0364143d 100644
--- a/application/controllers/api/v1/codex/Entwicklungsteam.php
+++ b/application/controllers/api/v1/codex/Entwicklungsteam.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Entwicklungsteam extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Entwicklungsteam extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
- if(isset($studiengang_kz) && isset($mitarbeiter_uid))
+ if (isset($studiengang_kz) && isset($mitarbeiter_uid))
{
$result = $this->EntwicklungsteamModel->load(array($studiengang_kz, $mitarbeiter_uid));
@@ -53,9 +53,9 @@ class Entwicklungsteam extends APIv1_Controller
*/
public function postEntwicklungsteam()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiengang_kz']) && isset($this->post()['mitarbeiter_uid']))
+ if (isset($this->post()['studiengang_kz']) && isset($this->post()['mitarbeiter_uid']))
{
$result = $this->EntwicklungsteamModel->update(array($this->post()['entwicklungsteam_id'], $this->post()['mitarbeiter_uid']), $this->post());
}
diff --git a/application/controllers/api/v1/codex/Gemeinde.php b/application/controllers/api/v1/codex/Gemeinde.php
index 0b4a6d623..72a21be3c 100644
--- a/application/controllers/api/v1/codex/Gemeinde.php
+++ b/application/controllers/api/v1/codex/Gemeinde.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Gemeinde extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Gemeinde extends APIv1_Controller
{
$gemeindeID = $this->get('gemeinde_id');
- if(isset($gemeindeID))
+ if (isset($gemeindeID))
{
$result = $this->GemeindeModel->load($gemeindeID);
@@ -52,9 +52,9 @@ class Gemeinde extends APIv1_Controller
*/
public function postGemeinde()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['gemeinde_id']))
+ if (isset($this->post()['gemeinde_id']))
{
$result = $this->GemeindeModel->update($this->post()['gemeinde_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Hauptberuf.php b/application/controllers/api/v1/codex/Hauptberuf.php
index 313703604..5adce00c0 100644
--- a/application/controllers/api/v1/codex/Hauptberuf.php
+++ b/application/controllers/api/v1/codex/Hauptberuf.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Hauptberuf extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Hauptberuf extends APIv1_Controller
{
$hauptberufcode = $this->get('hauptberufcode');
- if(isset($hauptberufcode))
+ if (isset($hauptberufcode))
{
$result = $this->HauptberufModel->load($hauptberufcode);
@@ -52,9 +52,9 @@ class Hauptberuf extends APIv1_Controller
*/
public function postHauptberuf()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['hauptberufcode']))
+ if (isset($this->post()['hauptberufcode']))
{
$result = $this->HauptberufModel->update($this->post()['hauptberufcode'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Lehrform.php b/application/controllers/api/v1/codex/Lehrform.php
index 71494c661..99bec18b8 100644
--- a/application/controllers/api/v1/codex/Lehrform.php
+++ b/application/controllers/api/v1/codex/Lehrform.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrform extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrform extends APIv1_Controller
{
$lehrform_kurzbz = $this->get('lehrform_kurzbz');
- if(isset($lehrform_kurzbz))
+ if (isset($lehrform_kurzbz))
{
$result = $this->LehrformModel->load($lehrform_kurzbz);
@@ -52,9 +52,9 @@ class Lehrform extends APIv1_Controller
*/
public function postLehrform()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrform_kurzbz']))
+ if (isset($this->post()['lehrform_kurzbz']))
{
$result = $this->LehrformModel->update($this->post()['lehrform_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Lgartcode.php b/application/controllers/api/v1/codex/Lgartcode.php
index e7789dc65..2c3dccb05 100644
--- a/application/controllers/api/v1/codex/Lgartcode.php
+++ b/application/controllers/api/v1/codex/Lgartcode.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lgartcode extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lgartcode extends APIv1_Controller
{
$lgartcode = $this->get('lgartcode');
- if(isset($lgartcode))
+ if (isset($lgartcode))
{
$result = $this->LgartcodeModel->load($lgartcode);
@@ -52,9 +52,9 @@ class Lgartcode extends APIv1_Controller
*/
public function postLgartcode()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lgartcode']))
+ if (isset($this->post()['lgartcode']))
{
$result = $this->LgartcodeModel->update($this->post()['lgartcode'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Mobilitaetsprogramm.php b/application/controllers/api/v1/codex/Mobilitaetsprogramm.php
index a68062391..440ee1b96 100644
--- a/application/controllers/api/v1/codex/Mobilitaetsprogramm.php
+++ b/application/controllers/api/v1/codex/Mobilitaetsprogramm.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Mobilitaetsprogramm extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Mobilitaetsprogramm extends APIv1_Controller
{
$mobilitaetsprogramm_code = $this->get('mobilitaetsprogramm_code');
- if(isset($mobilitaetsprogramm_code))
+ if (isset($mobilitaetsprogramm_code))
{
$result = $this->MobilitaetsprogrammModel->load($mobilitaetsprogramm_code);
@@ -52,9 +52,9 @@ class Mobilitaetsprogramm extends APIv1_Controller
*/
public function postMobilitaetsprogramm()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['mobilitaetsprogramm_code']))
+ if (isset($this->post()['mobilitaetsprogramm_code']))
{
$result = $this->MobilitaetsprogrammModel->update($this->post()['mobilitaetsprogramm_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Nation.php b/application/controllers/api/v1/codex/Nation.php
index 517a95c6d..2597b696e 100644
--- a/application/controllers/api/v1/codex/Nation.php
+++ b/application/controllers/api/v1/codex/Nation.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Nation extends APIv1_Controller
{
@@ -30,7 +30,7 @@ class Nation extends APIv1_Controller
public function getAll()
{
- if(!$this->get('orderEnglish'))
+ if (!$this->get('orderEnglish'))
{
$result = $this->NationModel->addOrder('kurztext');
}
@@ -39,9 +39,9 @@ class Nation extends APIv1_Controller
$result = $this->NationModel->addOrder('engltext');
}
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
- if($this->get('ohnesperre'))
+ if ($this->get('ohnesperre'))
{
$result = $this->NationModel->loadWhere('sperre IS NULL');
}
diff --git a/application/controllers/api/v1/codex/Note.php b/application/controllers/api/v1/codex/Note.php
index c44d695c9..a1e3543dd 100644
--- a/application/controllers/api/v1/codex/Note.php
+++ b/application/controllers/api/v1/codex/Note.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Note extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Note extends APIv1_Controller
{
$note = $this->get('note');
- if(isset($note))
+ if (isset($note))
{
$result = $this->NoteModel->load($note);
@@ -52,9 +52,9 @@ class Note extends APIv1_Controller
*/
public function postNote()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['note']))
+ if (isset($this->post()['note']))
{
$result = $this->NoteModel->update($this->post()['note'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Orgform.php b/application/controllers/api/v1/codex/Orgform.php
index 6834561c3..82736830e 100644
--- a/application/controllers/api/v1/codex/Orgform.php
+++ b/application/controllers/api/v1/codex/Orgform.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Orgform extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Orgform extends APIv1_Controller
{
$orgform_kurzbz = $this->get('orgform_kurzbz');
- if(isset($orgform_kurzbz))
+ if (isset($orgform_kurzbz))
{
$result = $this->OrgformModel->load($orgform_kurzbz);
@@ -52,9 +52,9 @@ class Orgform extends APIv1_Controller
*/
public function postOrgform()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['orgform_kurzbz']))
+ if (isset($this->post()['orgform_kurzbz']))
{
$result = $this->OrgformModel->update($this->post()['orgform_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Verwendung.php b/application/controllers/api/v1/codex/Verwendung.php
index e697a5ecf..16ed77dcd 100644
--- a/application/controllers/api/v1/codex/Verwendung.php
+++ b/application/controllers/api/v1/codex/Verwendung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Verwendung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Verwendung extends APIv1_Controller
{
$verwendung_code = $this->get('verwendung_code');
- if(isset($verwendung_code))
+ if (isset($verwendung_code))
{
$result = $this->VerwendungModel->load($verwendung_code);
@@ -52,9 +52,9 @@ class Verwendung extends APIv1_Controller
*/
public function postVerwendung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['verwendung_code']))
+ if (isset($this->post()['verwendung_code']))
{
$result = $this->VerwendungModel->update($this->post()['verwendung_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Zgv.php b/application/controllers/api/v1/codex/Zgv.php
index 2013e90cb..39a51581f 100644
--- a/application/controllers/api/v1/codex/Zgv.php
+++ b/application/controllers/api/v1/codex/Zgv.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgv extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zgv extends APIv1_Controller
{
$zgv_code = $this->get('zgv_code');
- if(isset($zgv_code))
+ if (isset($zgv_code))
{
$result = $this->ZgvModel->load($zgv_code);
@@ -52,9 +52,9 @@ class Zgv extends APIv1_Controller
*/
public function postZgv()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zgv_code']))
+ if (isset($this->post()['zgv_code']))
{
$result = $this->ZgvModel->update($this->post()['zgv_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Zgvdoktor.php b/application/controllers/api/v1/codex/Zgvdoktor.php
index 3ac5ab3e3..44d6cc87b 100644
--- a/application/controllers/api/v1/codex/Zgvdoktor.php
+++ b/application/controllers/api/v1/codex/Zgvdoktor.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvdoktor extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zgvdoktor extends APIv1_Controller
{
$zgvdoktor_code = $this->get('zgvdoktor_code');
- if(isset($zgvdoktor_code))
+ if (isset($zgvdoktor_code))
{
$result = $this->ZgvdoktorModel->load($zgvdoktor_code);
@@ -52,9 +52,9 @@ class Zgvdoktor extends APIv1_Controller
*/
public function postZgvdoktor()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zgvdoktor_code']))
+ if (isset($this->post()['zgvdoktor_code']))
{
$result = $this->ZgvdoktorModel->update($this->post()['zgvdoktor_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Zgvgruppe.php b/application/controllers/api/v1/codex/Zgvgruppe.php
index 21314cf82..4050387d2 100644
--- a/application/controllers/api/v1/codex/Zgvgruppe.php
+++ b/application/controllers/api/v1/codex/Zgvgruppe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvgruppe extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zgvgruppe extends APIv1_Controller
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
- if(isset($gruppe_kurzbz))
+ if (isset($gruppe_kurzbz))
{
$result = $this->ZgvgruppeModel->load($gruppe_kurzbz);
@@ -52,9 +52,9 @@ class Zgvgruppe extends APIv1_Controller
*/
public function postZgvgruppe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zgvgruppe_id']))
+ if (isset($this->post()['zgvgruppe_id']))
{
$result = $this->ZgvgruppeModel->update($this->post()['zgvgruppe_id'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Zgvmaster.php b/application/controllers/api/v1/codex/Zgvmaster.php
index 5e431c3a1..14b23824b 100644
--- a/application/controllers/api/v1/codex/Zgvmaster.php
+++ b/application/controllers/api/v1/codex/Zgvmaster.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zgvmaster extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zgvmaster extends APIv1_Controller
{
$zgvmas_code = $this->get('zgvmas_code');
- if(isset($zgvmas_code))
+ if (isset($zgvmas_code))
{
$result = $this->ZgvmasterModel->load($zgvmas_code);
@@ -52,9 +52,9 @@ class Zgvmaster extends APIv1_Controller
*/
public function postZgvmaster()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zgvmas_code']))
+ if (isset($this->post()['zgvmas_code']))
{
$result = $this->ZgvmasterModel->update($this->post()['zgvmas_code'], $this->post());
}
diff --git a/application/controllers/api/v1/codex/Zweck.php b/application/controllers/api/v1/codex/Zweck.php
index d352540e4..c7cc60353 100644
--- a/application/controllers/api/v1/codex/Zweck.php
+++ b/application/controllers/api/v1/codex/Zweck.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zweck extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zweck extends APIv1_Controller
{
$zweck_code = $this->get('zweck_code');
- if(isset($zweck_code))
+ if (isset($zweck_code))
{
$result = $this->ZweckModel->load($zweck_code);
@@ -52,9 +52,9 @@ class Zweck extends APIv1_Controller
*/
public function postZweck()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zweck_code']))
+ if (isset($this->post()['zweck_code']))
{
$result = $this->ZweckModel->update($this->post()['zweck_code'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Ampel.php b/application/controllers/api/v1/content/Ampel.php
index 8dd654023..bec9c84de 100644
--- a/application/controllers/api/v1/content/Ampel.php
+++ b/application/controllers/api/v1/content/Ampel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ampel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Ampel extends APIv1_Controller
{
$ampelID = $this->get('ampel_id');
- if(isset($ampelID))
+ if (isset($ampelID))
{
$result = $this->AmpelModel->load($ampelID);
@@ -52,9 +52,9 @@ class Ampel extends APIv1_Controller
*/
public function postAmpel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ampel_id']))
+ if (isset($this->post()['ampel_id']))
{
$result = $this->AmpelModel->update($this->post()['ampel_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Content.php b/application/controllers/api/v1/content/Content.php
index 510a4536e..b67914b70 100644
--- a/application/controllers/api/v1/content/Content.php
+++ b/application/controllers/api/v1/content/Content.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Content extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Content extends APIv1_Controller
{
$contentID = $this->get('content_id');
- if(isset($contentID))
+ if (isset($contentID))
{
$result = $this->ContentModel->load($contentID);
@@ -52,9 +52,9 @@ class Content extends APIv1_Controller
*/
public function postContent()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['content_id']))
+ if (isset($this->post()['content_id']))
{
$result = $this->ContentModel->update($this->post()['content_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Contentchild.php b/application/controllers/api/v1/content/Contentchild.php
index 72b1f0cfe..802f65d0a 100644
--- a/application/controllers/api/v1/content/Contentchild.php
+++ b/application/controllers/api/v1/content/Contentchild.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentchild extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Contentchild extends APIv1_Controller
{
$contentchildID = $this->get('contentchild_id');
- if(isset($contentchildID))
+ if (isset($contentchildID))
{
$result = $this->ContentchildModel->load($contentchildID);
@@ -52,9 +52,9 @@ class Contentchild extends APIv1_Controller
*/
public function postContentchild()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['contentchild_id']))
+ if (isset($this->post()['contentchild_id']))
{
$result = $this->ContentchildModel->update($this->post()['contentchild_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Contentgruppe.php b/application/controllers/api/v1/content/Contentgruppe.php
index c171c5f88..f9b78b74f 100644
--- a/application/controllers/api/v1/content/Contentgruppe.php
+++ b/application/controllers/api/v1/content/Contentgruppe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentgruppe extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Contentgruppe extends APIv1_Controller
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
$content_id = $this->get('content_id');
- if(isset($gruppe_kurzbz) && isset($content_id))
+ if (isset($gruppe_kurzbz) && isset($content_id))
{
$result = $this->ContentgruppeModel->load(array($gruppe_kurzbz, $content_id));
@@ -53,9 +53,9 @@ class Contentgruppe extends APIv1_Controller
*/
public function postContentgruppe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['gruppe_kurzbz']) && isset($this->post()['content_id']))
+ if (isset($this->post()['gruppe_kurzbz']) && isset($this->post()['content_id']))
{
$result = $this->ContentgruppeModel->update(array($this->post()['gruppe_kurzbz'], $this->post()['content_id']), $this->post());
}
diff --git a/application/controllers/api/v1/content/Contentlog.php b/application/controllers/api/v1/content/Contentlog.php
index 99e1fd030..9faf3ad85 100644
--- a/application/controllers/api/v1/content/Contentlog.php
+++ b/application/controllers/api/v1/content/Contentlog.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentlog extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Contentlog extends APIv1_Controller
{
$contentlogID = $this->get('contentlog_id');
- if(isset($contentlogID))
+ if (isset($contentlogID))
{
$result = $this->ContentlogModel->load($contentlogID);
@@ -52,9 +52,9 @@ class Contentlog extends APIv1_Controller
*/
public function postContentlog()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['contentlog_id']))
+ if (isset($this->post()['contentlog_id']))
{
$result = $this->ContentlogModel->update($this->post()['contentlog_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Contentsprache.php b/application/controllers/api/v1/content/Contentsprache.php
index bf255116d..aa02c5807 100644
--- a/application/controllers/api/v1/content/Contentsprache.php
+++ b/application/controllers/api/v1/content/Contentsprache.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Contentsprache extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Contentsprache extends APIv1_Controller
{
$contentspracheID = $this->get('contentsprache_id');
- if(isset($contentspracheID))
+ if (isset($contentspracheID))
{
$result = $this->ContentspracheModel->load($contentspracheID);
@@ -52,9 +52,9 @@ class Contentsprache extends APIv1_Controller
*/
public function postContentsprache()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['contentsprache_id']))
+ if (isset($this->post()['contentsprache_id']))
{
$result = $this->ContentspracheModel->update($this->post()['contentsprache_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Dms.php b/application/controllers/api/v1/content/Dms.php
index 87858b712..e1891a6b9 100644
--- a/application/controllers/api/v1/content/Dms.php
+++ b/application/controllers/api/v1/content/Dms.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dms extends APIv1_Controller
{
@@ -36,18 +36,18 @@ class Dms extends APIv1_Controller
$dms_id = $this->get('dms_id');
$version = $this->get('version');
- if(isset($dms_id))
+ if (isset($dms_id))
{
$result = $this->DmsModel->addJoin('campus.tbl_dms_version', 'dms_id');
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
$result = $this->DmsModel->addOrder('version', 'DESC');
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
$result = $this->DmsModel->addLimit(1);
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
- if(!isset($version))
+ if (!isset($version))
{
$result = $this->DmsModel->loadWhere(array('dms_id' => $dms_id));
}
@@ -72,9 +72,9 @@ class Dms extends APIv1_Controller
*/
public function postDms()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['contentsprache_id']))
+ if (isset($this->post()['contentsprache_id']))
{
$result = $this->ContentspracheModel->update($this->post()['contentsprache_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Infoscreen.php b/application/controllers/api/v1/content/Infoscreen.php
index 4b39d9e1c..6e859ca5a 100644
--- a/application/controllers/api/v1/content/Infoscreen.php
+++ b/application/controllers/api/v1/content/Infoscreen.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Infoscreen extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Infoscreen extends APIv1_Controller
{
$infoscreenID = $this->get('infoscreen_id');
- if(isset($infoscreenID))
+ if (isset($infoscreenID))
{
$result = $this->InfoscreenModel->load($infoscreenID);
@@ -52,9 +52,9 @@ class Infoscreen extends APIv1_Controller
*/
public function postInfoscreen()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['infoscreen_id']))
+ if (isset($this->post()['infoscreen_id']))
{
$result = $this->InfoscreenModel->update($this->post()['infoscreen_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/News.php b/application/controllers/api/v1/content/News.php
index 3568dee60..346faca11 100644
--- a/application/controllers/api/v1/content/News.php
+++ b/application/controllers/api/v1/content/News.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class News extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class News extends APIv1_Controller
{
$newsID = $this->get('news_id');
- if(isset($newsID))
+ if (isset($newsID))
{
$result = $this->NewsModel->load($newsID);
@@ -52,9 +52,9 @@ class News extends APIv1_Controller
*/
public function postNews()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['news_id']))
+ if (isset($this->post()['news_id']))
{
$result = $this->NewsModel->update($this->post()['news_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Template.php b/application/controllers/api/v1/content/Template.php
index 4d635db63..5f67af4d0 100644
--- a/application/controllers/api/v1/content/Template.php
+++ b/application/controllers/api/v1/content/Template.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Template extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Template extends APIv1_Controller
{
$template_kurzbz = $this->get('template_kurzbz');
- if(isset($template_kurzbz))
+ if (isset($template_kurzbz))
{
$result = $this->TemplateModel->load($template_kurzbz);
@@ -52,9 +52,9 @@ class Template extends APIv1_Controller
*/
public function postTemplate()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['template_kurzbz']))
+ if (isset($this->post()['template_kurzbz']))
{
$result = $this->TemplateModel->update($this->post()['template_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Veranstaltung.php b/application/controllers/api/v1/content/Veranstaltung.php
index ccbe54d0a..ea5ccc19f 100644
--- a/application/controllers/api/v1/content/Veranstaltung.php
+++ b/application/controllers/api/v1/content/Veranstaltung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Veranstaltung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Veranstaltung extends APIv1_Controller
{
$veranstaltungID = $this->get('veranstaltung_id');
- if(isset($veranstaltungID))
+ if (isset($veranstaltungID))
{
$result = $this->VeranstaltungModel->load($veranstaltungID);
@@ -52,9 +52,9 @@ class Veranstaltung extends APIv1_Controller
*/
public function postVeranstaltung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['veranstaltung_id']))
+ if (isset($this->post()['veranstaltung_id']))
{
$result = $this->VeranstaltungModel->update($this->post()['veranstaltung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/content/Veranstaltungskategorie.php b/application/controllers/api/v1/content/Veranstaltungskategorie.php
index 2832c6eba..ffc9a32bd 100644
--- a/application/controllers/api/v1/content/Veranstaltungskategorie.php
+++ b/application/controllers/api/v1/content/Veranstaltungskategorie.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Veranstaltungskategorie extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Veranstaltungskategorie extends APIv1_Controller
{
$veranstaltungskategorie_kurzbz = $this->get('veranstaltungskategorie_kurzbz');
- if(isset($veranstaltungskategorie_kurzbz))
+ if (isset($veranstaltungskategorie_kurzbz))
{
$result = $this->VeranstaltungskategorieModel->load($veranstaltungskategorie_kurzbz);
@@ -52,9 +52,9 @@ class Veranstaltungskategorie extends APIv1_Controller
*/
public function postVeranstaltungskategorie()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['veranstaltungskategorie_kurzbz']))
+ if (isset($this->post()['veranstaltungskategorie_kurzbz']))
{
$result = $this->VeranstaltungskategorieModel->update($this->post()['veranstaltungskategorie_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Akte.php b/application/controllers/api/v1/crm/Akte.php
index 63984bc86..cd52b97f5 100644
--- a/application/controllers/api/v1/crm/Akte.php
+++ b/application/controllers/api/v1/crm/Akte.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Akte extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Akte extends APIv1_Controller
{
$akteID = $this->get('akte_id');
- if(isset($akteID))
+ if (isset($akteID))
{
$result = $this->AkteModel->load($akteID);
@@ -52,9 +52,9 @@ class Akte extends APIv1_Controller
*/
public function postAkte()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['akte_id']))
+ if (isset($this->post()['akte_id']))
{
$result = $this->AkteModel->update($this->post()['akte_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Aufnahmeschluessel.php b/application/controllers/api/v1/crm/Aufnahmeschluessel.php
index db84bf481..935a89fb6 100644
--- a/application/controllers/api/v1/crm/Aufnahmeschluessel.php
+++ b/application/controllers/api/v1/crm/Aufnahmeschluessel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmeschluessel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aufnahmeschluessel extends APIv1_Controller
{
$aufnahmeschluessel = $this->get('aufnahmeschluessel');
- if(isset($aufnahmeschluessel))
+ if (isset($aufnahmeschluessel))
{
$result = $this->AufnahmeschluesselModel->load($aufnahmeschluessel);
@@ -52,9 +52,9 @@ class Aufnahmeschluessel extends APIv1_Controller
*/
public function postAufnahmeschluessel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufnahmeschluessel']))
+ if (isset($this->post()['aufnahmeschluessel']))
{
$result = $this->AufnahmeschluesselModel->update($this->post()['aufnahmeschluessel'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Aufnahmetermin.php b/application/controllers/api/v1/crm/Aufnahmetermin.php
index 0d11fd24b..1d96aface 100644
--- a/application/controllers/api/v1/crm/Aufnahmetermin.php
+++ b/application/controllers/api/v1/crm/Aufnahmetermin.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmetermin extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aufnahmetermin extends APIv1_Controller
{
$aufnahmeterminID = $this->get('aufnahmetermin_id');
- if(isset($aufnahmeterminID))
+ if (isset($aufnahmeterminID))
{
$result = $this->AufnahmeterminModel->load($aufnahmeterminID);
@@ -52,9 +52,9 @@ class Aufnahmetermin extends APIv1_Controller
*/
public function postAufnahmetermin()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufnahmetermin_id']))
+ if (isset($this->post()['aufnahmetermin_id']))
{
$result = $this->AufnahmeterminModel->update($this->post()['aufnahmetermin_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Aufnahmetermintyp.php b/application/controllers/api/v1/crm/Aufnahmetermintyp.php
index 1a63914cf..f7ffd419d 100644
--- a/application/controllers/api/v1/crm/Aufnahmetermintyp.php
+++ b/application/controllers/api/v1/crm/Aufnahmetermintyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufnahmetermintyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aufnahmetermintyp extends APIv1_Controller
{
$aufnahmetermintyp_kurzbz = $this->get('aufnahmetermintyp_kurzbz');
- if(isset($aufnahmetermintyp_kurzbz))
+ if (isset($aufnahmetermintyp_kurzbz))
{
$result = $this->AufnahmetermintypModel->load($aufnahmetermintyp_kurzbz);
@@ -52,9 +52,9 @@ class Aufnahmetermintyp extends APIv1_Controller
*/
public function postAufnahmetermintyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufnahmetermintyp_kurzbz']))
+ if (isset($this->post()['aufnahmetermintyp_kurzbz']))
{
$result = $this->AufnahmetermintypModel->update($this->post()['aufnahmetermintyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Bewerbungstermine.php b/application/controllers/api/v1/crm/Bewerbungstermine.php
index 1e438af0f..28c07dc98 100644
--- a/application/controllers/api/v1/crm/Bewerbungstermine.php
+++ b/application/controllers/api/v1/crm/Bewerbungstermine.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bewerbungstermine extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bewerbungstermine extends APIv1_Controller
{
$bewerbungstermineID = $this->get('bewerbungstermine_id');
- if(isset($bewerbungstermineID))
+ if (isset($bewerbungstermineID))
{
$result = $this->BewerbungstermineModel->load($bewerbungstermineID);
@@ -52,9 +52,9 @@ class Bewerbungstermine extends APIv1_Controller
*/
public function postBewerbungstermine()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bewerbungstermine_id']))
+ if (isset($this->post()['bewerbungstermine_id']))
{
$result = $this->BewerbungstermineModel->update($this->post()['bewerbungstermine_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Buchungstyp.php b/application/controllers/api/v1/crm/Buchungstyp.php
index eff19f7ee..73be5f666 100644
--- a/application/controllers/api/v1/crm/Buchungstyp.php
+++ b/application/controllers/api/v1/crm/Buchungstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Buchungstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Buchungstyp extends APIv1_Controller
{
$buchungstyp_kurzbz = $this->get('buchungstyp_kurzbz');
- if(isset($buchungstyp_kurzbz))
+ if (isset($buchungstyp_kurzbz))
{
$result = $this->BuchungstypModel->load($buchungstyp_kurzbz);
@@ -52,9 +52,9 @@ class Buchungstyp extends APIv1_Controller
*/
public function postBuchungstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['buchungstyp_kurzbz']))
+ if (isset($this->post()['buchungstyp_kurzbz']))
{
$result = $this->BuchungstypModel->update($this->post()['buchungstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Dokument.php b/application/controllers/api/v1/crm/Dokument.php
index 49086576c..fd8c80b37 100644
--- a/application/controllers/api/v1/crm/Dokument.php
+++ b/application/controllers/api/v1/crm/Dokument.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dokument extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Dokument extends APIv1_Controller
{
$dokument_kurzbz = $this->get('dokument_kurzbz');
- if(isset($dokument_kurzbz))
+ if (isset($dokument_kurzbz))
{
$result = $this->DokumentModel->load($dokument_kurzbz);
@@ -52,9 +52,9 @@ class Dokument extends APIv1_Controller
*/
public function postDokument()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['dokument_kurzbz']))
+ if (isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentModel->update($this->post()['dokument_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Dokumentprestudent.php b/application/controllers/api/v1/crm/Dokumentprestudent.php
index 7e2631870..7a9fe6c2c 100644
--- a/application/controllers/api/v1/crm/Dokumentprestudent.php
+++ b/application/controllers/api/v1/crm/Dokumentprestudent.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dokumentprestudent extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Dokumentprestudent extends APIv1_Controller
$prestudent_id = $this->get('prestudent_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
- if(isset($prestudent_id) && isset($dokument_kurzbz))
+ if (isset($prestudent_id) && isset($dokument_kurzbz))
{
$result = $this->DokumentprestudentModel->load(array($prestudent_id, $dokument_kurzbz));
@@ -53,9 +53,9 @@ class Dokumentprestudent extends APIv1_Controller
*/
public function postDokumentprestudent()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['prestudent_id']) && isset($this->post()['dokument_kurzbz']))
+ if (isset($this->post()['prestudent_id']) && isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentprestudentModel->update(array($this->post()['prestudent_id'], $this->post()['dokument_kurzbz']), $this->post());
}
diff --git a/application/controllers/api/v1/crm/Dokumentstudiengang.php b/application/controllers/api/v1/crm/Dokumentstudiengang.php
index ce85c0ef4..22fee1803 100644
--- a/application/controllers/api/v1/crm/Dokumentstudiengang.php
+++ b/application/controllers/api/v1/crm/Dokumentstudiengang.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dokumentstudiengang extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Dokumentstudiengang extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$dokument_kurzbz = $this->get('dokument_kurzbz');
- if(isset($studiengang_kz) && isset($dokument_kurzbz))
+ if (isset($studiengang_kz) && isset($dokument_kurzbz))
{
$result = $this->DokumentstudiengangModel->load(array($studiengang_kz, $dokument_kurzbz));
@@ -53,9 +53,9 @@ class Dokumentstudiengang extends APIv1_Controller
*/
public function postDokumentstudiengang()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiengang_kz']) && isset($this->post()['dokument_kurzbz']))
+ if (isset($this->post()['studiengang_kz']) && isset($this->post()['dokument_kurzbz']))
{
$result = $this->DokumentstudiengangModel->update(array($this->post()['studiengang_kz'], $this->post()['dokument_kurzbz']), $this->post());
}
diff --git a/application/controllers/api/v1/crm/Konto.php b/application/controllers/api/v1/crm/Konto.php
index adb161e1e..d63bee9b4 100644
--- a/application/controllers/api/v1/crm/Konto.php
+++ b/application/controllers/api/v1/crm/Konto.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Konto extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Konto extends APIv1_Controller
{
$buchungsnr = $this->get('buchungsnr');
- if(isset($buchungsnr))
+ if (isset($buchungsnr))
{
$result = $this->KontoModel->load($buchungsnr);
@@ -52,9 +52,9 @@ class Konto extends APIv1_Controller
*/
public function postKonto()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['buchungsnr']))
+ if (isset($this->post()['buchungsnr']))
{
$result = $this->KontoModel->update($this->post()['buchungsnr'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Preincoming.php b/application/controllers/api/v1/crm/Preincoming.php
index 2d60add2e..f7df3c5f5 100644
--- a/application/controllers/api/v1/crm/Preincoming.php
+++ b/application/controllers/api/v1/crm/Preincoming.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Preincoming extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Preincoming extends APIv1_Controller
{
$preincomingID = $this->get('preincoming_id');
- if(isset($preincomingID))
+ if (isset($preincomingID))
{
$result = $this->PreincomingModel->load($preincomingID);
@@ -52,9 +52,9 @@ class Preincoming extends APIv1_Controller
*/
public function postPreincoming()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['preincoming_id']))
+ if (isset($this->post()['preincoming_id']))
{
$result = $this->PreincomingModel->update($this->post()['preincoming_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Preinteressent.php b/application/controllers/api/v1/crm/Preinteressent.php
index aaac2b3e2..f6e781e60 100644
--- a/application/controllers/api/v1/crm/Preinteressent.php
+++ b/application/controllers/api/v1/crm/Preinteressent.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Preinteressent extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Preinteressent extends APIv1_Controller
{
$preinteressent_id = $this->get('preinteressent_id');
- if(isset($preinteressent_id))
+ if (isset($preinteressent_id))
{
$result = $this->PreinteressentModel->load($preinteressent_id);
@@ -54,7 +54,7 @@ class Preinteressent extends APIv1_Controller
{
$person_id = $this->get('person_id');
- if(isset($person_id))
+ if (isset($person_id))
{
$result = $this->PreinteressentModel->load(array('person_id' => $person_id));
@@ -71,9 +71,9 @@ class Preinteressent extends APIv1_Controller
*/
public function postPreinteressent()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['preinteressent_id']))
+ if (isset($this->post()['preinteressent_id']))
{
$result = $this->PreinteressentModel->update($this->post()['preinteressent_id'], $this->post());
}
@@ -92,13 +92,13 @@ class Preinteressent extends APIv1_Controller
private function _validate($preinteressent)
{
- if($preinteressent['person_id'] == '')
+ if ($preinteressent['person_id'] == '')
{
//$this->errormsg = 'Person_id muss angegeben werden';
return false;
}
- if($preinteressent['aufmerksamdurch_kurzbz'] == '')
+ if ($preinteressent['aufmerksamdurch_kurzbz'] == '')
{
//$this->errormsg = 'Aufmerksamdurch muss angegeben werden';
return false;
diff --git a/application/controllers/api/v1/crm/Preinteressentstudiengang.php b/application/controllers/api/v1/crm/Preinteressentstudiengang.php
index fa68a2a87..dc82971ba 100644
--- a/application/controllers/api/v1/crm/Preinteressentstudiengang.php
+++ b/application/controllers/api/v1/crm/Preinteressentstudiengang.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Preinteressentstudiengang extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Preinteressentstudiengang extends APIv1_Controller
$preinteressent_id = $this->get('preinteressent_id');
$studiengang_kz = $this->get('studiengang_kz');
- if(isset($preinteressent_id) && isset($studiengang_kz))
+ if (isset($preinteressent_id) && isset($studiengang_kz))
{
$result = $this->PreinteressentstudiengangModel->load(array($preinteressent_id, $studiengang_kz));
@@ -53,9 +53,9 @@ class Preinteressentstudiengang extends APIv1_Controller
*/
public function postPreinteressentstudiengang()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['preinteressent_id']) && isset($this->post()['studiengang_kz']))
+ if (isset($this->post()['preinteressent_id']) && isset($this->post()['studiengang_kz']))
{
$result = $this->PreinteressentstudiengangModel->update(array($this->post()['preinteressent_id'], $this->post()['studiengang_kz']), $this->post());
}
diff --git a/application/controllers/api/v1/crm/Preoutgoing.php b/application/controllers/api/v1/crm/Preoutgoing.php
index 16b622416..885b74c8d 100644
--- a/application/controllers/api/v1/crm/Preoutgoing.php
+++ b/application/controllers/api/v1/crm/Preoutgoing.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Preoutgoing extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Preoutgoing extends APIv1_Controller
{
$preoutgoingID = $this->get('preoutgoing_id');
- if(isset($preoutgoingID))
+ if (isset($preoutgoingID))
{
$result = $this->PreoutgoingModel->load($preoutgoingID);
@@ -52,9 +52,9 @@ class Preoutgoing extends APIv1_Controller
*/
public function postPreoutgoing()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['preoutgoing_id']))
+ if (isset($this->post()['preoutgoing_id']))
{
$result = $this->PreoutgoingModel->update($this->post()['preoutgoing_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Prestudent.php b/application/controllers/api/v1/crm/Prestudent.php
index 78e83a9c2..28b8eddd1 100644
--- a/application/controllers/api/v1/crm/Prestudent.php
+++ b/application/controllers/api/v1/crm/Prestudent.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Prestudent extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Prestudent extends APIv1_Controller
{
$prestudentID = $this->get('prestudent_id');
- if(isset($prestudentID))
+ if (isset($prestudentID))
{
$result = $this->PrestudentModel->load($prestudentID);
@@ -52,9 +52,9 @@ class Prestudent extends APIv1_Controller
*/
public function postPrestudent()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['prestudent_id']))
+ if (isset($this->post()['prestudent_id']))
{
$result = $this->PrestudentModel->update($this->post()['prestudent_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Prestudentstatus.php b/application/controllers/api/v1/crm/Prestudentstatus.php
index 4da61e8f4..5b19dbc61 100644
--- a/application/controllers/api/v1/crm/Prestudentstatus.php
+++ b/application/controllers/api/v1/crm/Prestudentstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Prestudentstatus extends APIv1_Controller
{
@@ -38,7 +38,7 @@ class Prestudentstatus extends APIv1_Controller
$status_kurzbz = $this->get('status_kurzbz');
$prestudent_id = $this->get('prestudent_id');
- if(isset($ausbildungssemester) && isset($studiensemester_kurzbz) && isset($status_kurzbz) && isset($prestudent_id))
+ if (isset($ausbildungssemester) && isset($studiensemester_kurzbz) && isset($status_kurzbz) && isset($prestudent_id))
{
$result = $this->PrestudentstatusModel->load(array($ausbildungssemester, $studiensemester_kurzbz, $status_kurzbz, $prestudent_id));
@@ -55,9 +55,9 @@ class Prestudentstatus extends APIv1_Controller
*/
public function postPrestudentstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ausbildungssemester']) && isset($this->post()['studiensemester_kurzbz']) &&
+ if (isset($this->post()['ausbildungssemester']) && isset($this->post()['studiensemester_kurzbz']) &&
isset($this->post()['status_kurzbz']) && isset($this->post()['prestudent_id']))
{
$pksArray = array($this->post()['ausbildungssemester'],
diff --git a/application/controllers/api/v1/crm/Reihungstest.php b/application/controllers/api/v1/crm/Reihungstest.php
index 162b8a50e..60c521256 100644
--- a/application/controllers/api/v1/crm/Reihungstest.php
+++ b/application/controllers/api/v1/crm/Reihungstest.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Reihungstest extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Reihungstest extends APIv1_Controller
{
$reihungstestID = $this->get('reihungstest_id');
- if(isset($reihungstestID))
+ if (isset($reihungstestID))
{
$result = $this->ReihungstestModel->load($reihungstestID);
@@ -52,9 +52,9 @@ class Reihungstest extends APIv1_Controller
*/
public function postReihungstest()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['reihungstest_id']))
+ if (isset($this->post()['reihungstest_id']))
{
$result = $this->ReihungstestModel->update($this->post()['reihungstest_id'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Status.php b/application/controllers/api/v1/crm/Status.php
index 2c94d5153..b7dda0cce 100644
--- a/application/controllers/api/v1/crm/Status.php
+++ b/application/controllers/api/v1/crm/Status.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Status extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Status extends APIv1_Controller
{
$status_kurzbz = $this->get('status_kurzbz');
- if(isset($status_kurzbz))
+ if (isset($status_kurzbz))
{
$result = $this->StatusModel->load($status_kurzbz);
@@ -52,9 +52,9 @@ class Status extends APIv1_Controller
*/
public function postStatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['status_kurzbz']))
+ if (isset($this->post()['status_kurzbz']))
{
$result = $this->StatusModel->update($this->post()['status_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/crm/Student.php b/application/controllers/api/v1/crm/Student.php
index 6986484e4..d0bd7c5a1 100644
--- a/application/controllers/api/v1/crm/Student.php
+++ b/application/controllers/api/v1/crm/Student.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Student extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Student extends APIv1_Controller
{
$studentID = $this->get('student_id');
- if(isset($studentID))
+ if (isset($studentID))
{
$result = $this->StudentModel->load($studentID);
@@ -52,9 +52,9 @@ class Student extends APIv1_Controller
*/
public function postStudent()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['student_id']))
+ if (isset($this->post()['student_id']))
{
$result = $this->StudentModel->update($this->post()['student_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Abgabe.php b/application/controllers/api/v1/education/Abgabe.php
index f9ad2ee8c..a7604a264 100644
--- a/application/controllers/api/v1/education/Abgabe.php
+++ b/application/controllers/api/v1/education/Abgabe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Abgabe extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Abgabe extends APIv1_Controller
{
$abgabe_id = $this->get('abgabe_id');
- if(isset($abgabe_id))
+ if (isset($abgabe_id))
{
$result = $this->AbgabeModel->load($abgabe_id);
@@ -52,9 +52,9 @@ class Abgabe extends APIv1_Controller
*/
public function postAbgabe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['abgabe_id']))
+ if (isset($this->post()['abgabe_id']))
{
$result = $this->AbgabeModel->update($this->post()['abgabe_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Abschlussbeurteilung.php b/application/controllers/api/v1/education/Abschlussbeurteilung.php
index a90e16b4f..6de5e6e46 100644
--- a/application/controllers/api/v1/education/Abschlussbeurteilung.php
+++ b/application/controllers/api/v1/education/Abschlussbeurteilung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Abschlussbeurteilung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Abschlussbeurteilung extends APIv1_Controller
{
$abschlussbeurteilung_kurzbz = $this->get('abschlussbeurteilung_kurzbz');
- if(isset($abschlussbeurteilung_kurzbz))
+ if (isset($abschlussbeurteilung_kurzbz))
{
$result = $this->AbschlussbeurteilungModel->load($abschlussbeurteilung_kurzbz);
@@ -52,9 +52,9 @@ class Abschlussbeurteilung extends APIv1_Controller
*/
public function postAbschlussbeurteilung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['$abschlussbeurteilung_kurzbz']))
+ if (isset($this->post()['$abschlussbeurteilung_kurzbz']))
{
$result = $this->AbschlussbeurteilungModel->update($this->post()['$abschlussbeurteilung_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Abschlusspruefung.php b/application/controllers/api/v1/education/Abschlusspruefung.php
index 9ee39aba7..6c1f03caa 100644
--- a/application/controllers/api/v1/education/Abschlusspruefung.php
+++ b/application/controllers/api/v1/education/Abschlusspruefung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Abschlusspruefung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Abschlusspruefung extends APIv1_Controller
{
$abschlusspruefung_id = $this->get('abschlusspruefung_id');
- if(isset($abschlusspruefung_id))
+ if (isset($abschlusspruefung_id))
{
$result = $this->AbschlusspruefungModel->load($abschlusspruefung_id);
@@ -52,9 +52,9 @@ class Abschlusspruefung extends APIv1_Controller
*/
public function postAbschlusspruefung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['abschlusspruefung_id']))
+ if (isset($this->post()['abschlusspruefung_id']))
{
$result = $this->AbschlusspruefungModel->update($this->post()['abschlusspruefung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Anrechnung.php b/application/controllers/api/v1/education/Anrechnung.php
index 94b622e35..4d73de092 100644
--- a/application/controllers/api/v1/education/Anrechnung.php
+++ b/application/controllers/api/v1/education/Anrechnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Anrechnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Anrechnung extends APIv1_Controller
{
$anrechnung_id = $this->get('anrechnung_id');
- if(isset($anrechnung_id))
+ if (isset($anrechnung_id))
{
$result = $this->AnrechnungModel->load($anrechnung_id);
@@ -52,9 +52,9 @@ class Anrechnung extends APIv1_Controller
*/
public function postAnrechnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['anrechnung_id']))
+ if (isset($this->post()['anrechnung_id']))
{
$result = $this->AnrechnungModel->update($this->post()['anrechnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Anwesenheit.php b/application/controllers/api/v1/education/Anwesenheit.php
index a717be2ae..ff1be2316 100644
--- a/application/controllers/api/v1/education/Anwesenheit.php
+++ b/application/controllers/api/v1/education/Anwesenheit.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Anwesenheit extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Anwesenheit extends APIv1_Controller
{
$anwesenheit_id = $this->get('anwesenheit_id');
- if(isset($anwesenheit_id))
+ if (isset($anwesenheit_id))
{
$result = $this->AnwesenheitModel->load($anwesenheit_id);
@@ -52,9 +52,9 @@ class Anwesenheit extends APIv1_Controller
*/
public function postAnwesenheit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['anwesenheit_id']))
+ if (isset($this->post()['anwesenheit_id']))
{
$result = $this->AnwesenheitModel->update($this->post()['anwesenheit_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Beispiel.php b/application/controllers/api/v1/education/Beispiel.php
index f2b899c66..a1fa0df43 100644
--- a/application/controllers/api/v1/education/Beispiel.php
+++ b/application/controllers/api/v1/education/Beispiel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Beispiel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Beispiel extends APIv1_Controller
{
$beispiel_id = $this->get('beispiel_id');
- if(isset($beispiel_id))
+ if (isset($beispiel_id))
{
$result = $this->BeispielModel->load($beispiel_id);
@@ -52,9 +52,9 @@ class Beispiel extends APIv1_Controller
*/
public function postBeispiel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['beispiel_id']))
+ if (isset($this->post()['beispiel_id']))
{
$result = $this->BeispielModel->update($this->post()['beispiel_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Betreuerart.php b/application/controllers/api/v1/education/Betreuerart.php
index a4dc768af..9ed23491d 100644
--- a/application/controllers/api/v1/education/Betreuerart.php
+++ b/application/controllers/api/v1/education/Betreuerart.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Betreuerart extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Betreuerart extends APIv1_Controller
{
$betreuerart_id = $this->get('betreuerart_kurzbz');
- if(isset($betreuerart_id))
+ if (isset($betreuerart_id))
{
$result = $this->BetreuerartModel->load($betreuerart_id);
@@ -52,9 +52,9 @@ class Betreuerart extends APIv1_Controller
*/
public function postBetreuerart()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betreuerart_kurzbz']))
+ if (isset($this->post()['betreuerart_kurzbz']))
{
$result = $this->BetreuerartModel->update($this->post()['betreuerart_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Feedback.php b/application/controllers/api/v1/education/Feedback.php
index 49761faf7..3d62d7618 100644
--- a/application/controllers/api/v1/education/Feedback.php
+++ b/application/controllers/api/v1/education/Feedback.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Feedback extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Feedback extends APIv1_Controller
{
$feedback_id = $this->get('feedback_id');
- if(isset($feedback_id))
+ if (isset($feedback_id))
{
$result = $this->FeedbackModel->load($feedback_id);
@@ -52,9 +52,9 @@ class Feedback extends APIv1_Controller
*/
public function postFeedback()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['feedback_id']))
+ if (isset($this->post()['feedback_id']))
{
$result = $this->FeedbackModel->update($this->post()['feedback_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/LeNotenschluessel.php b/application/controllers/api/v1/education/LeNotenschluessel.php
index 50816726b..8d340ccc2 100644
--- a/application/controllers/api/v1/education/LeNotenschluessel.php
+++ b/application/controllers/api/v1/education/LeNotenschluessel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class LeNotenschluessel extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class LeNotenschluessel extends APIv1_Controller
$note = $this->get('note');
$lehreinheit_id = $this->get('lehreinheit_id');
- if(isset($note) && isset($lehreinheit_id))
+ if (isset($note) && isset($lehreinheit_id))
{
$result = $this->LeNotenschluesselModel->load(array($note, $lehreinheit_id));
@@ -53,9 +53,9 @@ class LeNotenschluessel extends APIv1_Controller
*/
public function postLeNotenschluessel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['note']) && isset($this->post()['lehreinheit_id']))
+ if (isset($this->post()['note']) && isset($this->post()['lehreinheit_id']))
{
$result = $this->LeNotenschluesselModel->update(array($this->post()['note'], $this->post()['lehreinheit_id']), $this->post());
}
diff --git a/application/controllers/api/v1/education/LePruefung.php b/application/controllers/api/v1/education/LePruefung.php
index e5db63040..de7641a4c 100644
--- a/application/controllers/api/v1/education/LePruefung.php
+++ b/application/controllers/api/v1/education/LePruefung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class LePruefung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class LePruefung extends APIv1_Controller
{
$lepruefung_id = $this->get('lepruefung_id');
- if(isset($lepruefung_id))
+ if (isset($lepruefung_id))
{
$result = $this->LePruefungModel->load($lepruefung_id);
@@ -52,9 +52,9 @@ class LePruefung extends APIv1_Controller
*/
public function postLePruefung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lepruefung_id']))
+ if (isset($this->post()['lepruefung_id']))
{
$result = $this->LePruefungModel->update($this->post()['lepruefung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Legesamtnote.php b/application/controllers/api/v1/education/Legesamtnote.php
index ae2e1832b..6f100b43a 100644
--- a/application/controllers/api/v1/education/Legesamtnote.php
+++ b/application/controllers/api/v1/education/Legesamtnote.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Legesamtnote extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Legesamtnote extends APIv1_Controller
$lehreinheit_id = $this->get('lehreinheit_id');
$student_uid = $this->get('student_uid');
- if(isset($lehreinheit_id) && isset($student_uid))
+ if (isset($lehreinheit_id) && isset($student_uid))
{
$result = $this->LegesamtnoteModel->load(array($lehreinheit_id, $student_uid));
@@ -53,9 +53,9 @@ class Legesamtnote extends APIv1_Controller
*/
public function postLegesamtnote()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehreinheit_id']) && isset($this->post()['student_uid']))
+ if (isset($this->post()['lehreinheit_id']) && isset($this->post()['student_uid']))
{
$result = $this->LegesamtnoteModel->update(array($this->post()['lehreinheit_id'], $this->post()['student_uid']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehreinheit.php b/application/controllers/api/v1/education/Lehreinheit.php
index fffbe4fdd..30f0adc0f 100644
--- a/application/controllers/api/v1/education/Lehreinheit.php
+++ b/application/controllers/api/v1/education/Lehreinheit.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehreinheit extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehreinheit extends APIv1_Controller
{
$lehreinheit_id = $this->get('lehreinheit_id');
- if(isset($lehreinheit_id))
+ if (isset($lehreinheit_id))
{
$result = $this->LehreinheitModel->load($lehreinheit_id);
@@ -52,9 +52,9 @@ class Lehreinheit extends APIv1_Controller
*/
public function postLehreinheit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehreinheit_id']))
+ if (isset($this->post()['lehreinheit_id']))
{
$result = $this->LehreinheitModel->update($this->post()['lehreinheit_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehreinheitgruppe.php b/application/controllers/api/v1/education/Lehreinheitgruppe.php
index 7c24fbe9b..2a25f73f6 100644
--- a/application/controllers/api/v1/education/Lehreinheitgruppe.php
+++ b/application/controllers/api/v1/education/Lehreinheitgruppe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehreinheitgruppe extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehreinheitgruppe extends APIv1_Controller
{
$lehreinheitgruppe_id = $this->get('lehreinheitgruppe_id');
- if(isset($lehreinheitgruppe_id))
+ if (isset($lehreinheitgruppe_id))
{
$result = $this->LehreinheitgruppeModel->load($lehreinheitgruppe_id);
@@ -52,9 +52,9 @@ class Lehreinheitgruppe extends APIv1_Controller
*/
public function postLehreinheitgruppe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehreinheitgruppe_id']))
+ if (isset($this->post()['lehreinheitgruppe_id']))
{
$result = $this->LehreinheitgruppeModel->update($this->post()['lehreinheitgruppe_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehreinheitmitarbeiter.php b/application/controllers/api/v1/education/Lehreinheitmitarbeiter.php
index fb4909b42..fd20bb131 100644
--- a/application/controllers/api/v1/education/Lehreinheitmitarbeiter.php
+++ b/application/controllers/api/v1/education/Lehreinheitmitarbeiter.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehreinheitmitarbeiter extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
$lehreinheit_id = $this->get('lehreinheit_id');
- if(isset($mitarbeiter_uid) && isset($lehreinheit_id))
+ if (isset($mitarbeiter_uid) && isset($lehreinheit_id))
{
$result = $this->LehreinheitmitarbeiterModel->load(array($mitarbeiter_uid, $lehreinheit_id));
@@ -53,9 +53,9 @@ class Lehreinheitmitarbeiter extends APIv1_Controller
*/
public function postLehreinheitmitarbeiter()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['mitarbeiter_uid']) && isset($this->post()['lehreinheit_id']))
+ if (isset($this->post()['mitarbeiter_uid']) && isset($this->post()['lehreinheit_id']))
{
$result = $this->LehreinheitmitarbeiterModel->update(array($this->post()['mitarbeiter_uid'], $this->post()['lehreinheit_id']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehrfach.php b/application/controllers/api/v1/education/Lehrfach.php
index 458e860cd..f05b3c074 100644
--- a/application/controllers/api/v1/education/Lehrfach.php
+++ b/application/controllers/api/v1/education/Lehrfach.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrfach extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrfach extends APIv1_Controller
{
$lehrfach_id = $this->get('lehrfach_id');
- if(isset($lehrfach_id))
+ if (isset($lehrfach_id))
{
$result = $this->LehrfachModel->load($lehrfach_id);
@@ -52,9 +52,9 @@ class Lehrfach extends APIv1_Controller
*/
public function postLehrfach()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrfach_id']))
+ if (isset($this->post()['lehrfach_id']))
{
$result = $this->LehrfachModel->update($this->post()['lehrfach_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehrfunktion.php b/application/controllers/api/v1/education/Lehrfunktion.php
index 1072d23fb..3941327f2 100644
--- a/application/controllers/api/v1/education/Lehrfunktion.php
+++ b/application/controllers/api/v1/education/Lehrfunktion.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrfunktion extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrfunktion extends APIv1_Controller
{
$lehrfunktion_kurzbz = $this->get('lehrfunktion_kurzbz');
- if(isset($lehrfunktion_kurzbz))
+ if (isset($lehrfunktion_kurzbz))
{
$result = $this->LehrfunktionModel->load($lehrfunktion_kurzbz);
@@ -52,9 +52,9 @@ class Lehrfunktion extends APIv1_Controller
*/
public function postLehrfunktion()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrfunktion_kurzbz']))
+ if (isset($this->post()['lehrfunktion_kurzbz']))
{
$result = $this->LehrfunktionModel->update($this->post()['lehrfunktion_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehrtyp.php b/application/controllers/api/v1/education/Lehrtyp.php
index a1494b9fa..b084d65da 100644
--- a/application/controllers/api/v1/education/Lehrtyp.php
+++ b/application/controllers/api/v1/education/Lehrtyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrtyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrtyp extends APIv1_Controller
{
$lehrtyp_kurzbz = $this->get('lehrtyp_kurzbz');
- if(isset($lehrtyp_kurzbz))
+ if (isset($lehrtyp_kurzbz))
{
$result = $this->LehrtypModel->load($lehrtyp_kurzbz);
@@ -52,9 +52,9 @@ class Lehrtyp extends APIv1_Controller
*/
public function postLehrtyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrtyp_kurzbz']))
+ if (isset($this->post()['lehrtyp_kurzbz']))
{
$result = $this->LehrtypModel->update($this->post()['lehrtyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lehrveranstaltung.php b/application/controllers/api/v1/education/Lehrveranstaltung.php
index bbc4676c3..fe88f2749 100644
--- a/application/controllers/api/v1/education/Lehrveranstaltung.php
+++ b/application/controllers/api/v1/education/Lehrveranstaltung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrveranstaltung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrveranstaltung extends APIv1_Controller
{
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
- if(isset($lehrveranstaltung_id))
+ if (isset($lehrveranstaltung_id))
{
$result = $this->LehrveranstaltungModel->load($lehrveranstaltung_id);
@@ -52,9 +52,9 @@ class Lehrveranstaltung extends APIv1_Controller
*/
public function postLehrveranstaltung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrveranstaltung_id']))
+ if (isset($this->post()['lehrveranstaltung_id']))
{
$result = $this->LehrveranstaltungModel->update($this->post()['lehrveranstaltung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lvangebot.php b/application/controllers/api/v1/education/Lvangebot.php
index c8d905060..21ad945df 100644
--- a/application/controllers/api/v1/education/Lvangebot.php
+++ b/application/controllers/api/v1/education/Lvangebot.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lvangebot extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lvangebot extends APIv1_Controller
{
$lvangebot_id = $this->get('lvangebot_id');
- if(isset($lvangebot_id))
+ if (isset($lvangebot_id))
{
$result = $this->LvangebotModel->load($lvangebot_id);
@@ -52,9 +52,9 @@ class Lvangebot extends APIv1_Controller
*/
public function postLvangebot()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lvangebot_id']))
+ if (isset($this->post()['lvangebot_id']))
{
$result = $this->LvangebotModel->update($this->post()['lvangebot_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lvgesamtnote.php b/application/controllers/api/v1/education/Lvgesamtnote.php
index 1eff64f77..d9ea9ae06 100644
--- a/application/controllers/api/v1/education/Lvgesamtnote.php
+++ b/application/controllers/api/v1/education/Lvgesamtnote.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lvgesamtnote extends APIv1_Controller
{
@@ -37,7 +37,7 @@ class Lvgesamtnote extends APIv1_Controller
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
- if(isset($student_uid) && isset($studiensemester_kurzbz) && isset($lehrveranstaltung_id))
+ if (isset($student_uid) && isset($studiensemester_kurzbz) && isset($lehrveranstaltung_id))
{
$result = $this->LvgesamtnoteModel->load(array($student_uid, $studiensemester_kurzbz, $lehrveranstaltung_id));
@@ -54,9 +54,9 @@ class Lvgesamtnote extends APIv1_Controller
*/
public function postLvgesamtnote()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['student_uid']) && isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['lehrveranstaltung_id']))
+ if (isset($this->post()['student_uid']) && isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['lehrveranstaltung_id']))
{
$pksArray = array($this->post()['student_uid'],
$this->post()['studiensemester_kurzbz'],
diff --git a/application/controllers/api/v1/education/Lvinfo.php b/application/controllers/api/v1/education/Lvinfo.php
index 58cbbe523..01d96ec92 100644
--- a/application/controllers/api/v1/education/Lvinfo.php
+++ b/application/controllers/api/v1/education/Lvinfo.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lvinfo extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Lvinfo extends APIv1_Controller
$sprache = $this->get('sprache');
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
- if(isset($sprache) && isset($lehrveranstaltung_id))
+ if (isset($sprache) && isset($lehrveranstaltung_id))
{
$result = $this->LvinfoModel->load(array($sprache, $lehrveranstaltung_id));
@@ -53,9 +53,9 @@ class Lvinfo extends APIv1_Controller
*/
public function postLvinfo()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['sprache']) && isset($this->post()['lehrveranstaltung_id']))
+ if (isset($this->post()['sprache']) && isset($this->post()['lehrveranstaltung_id']))
{
$result = $this->LvinfoModel->update(array($this->post()['sprache'], $this->post()['lehrveranstaltung_id']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Lvregel.php b/application/controllers/api/v1/education/Lvregel.php
index 35af01822..d0795813b 100644
--- a/application/controllers/api/v1/education/Lvregel.php
+++ b/application/controllers/api/v1/education/Lvregel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lvregel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lvregel extends APIv1_Controller
{
$lvregel_id = $this->get('lvregel_id');
- if(isset($lvregel_id))
+ if (isset($lvregel_id))
{
$result = $this->LvregelModel->load($lvregel_id);
@@ -52,9 +52,9 @@ class Lvregel extends APIv1_Controller
*/
public function postLvregel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lvregel_id']))
+ if (isset($this->post()['lvregel_id']))
{
$result = $this->LvregelModel->update($this->post()['lvregel_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Lvregeltyp.php b/application/controllers/api/v1/education/Lvregeltyp.php
index 82b37fab1..f75be3c56 100644
--- a/application/controllers/api/v1/education/Lvregeltyp.php
+++ b/application/controllers/api/v1/education/Lvregeltyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lvregeltyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lvregeltyp extends APIv1_Controller
{
$lvregeltyp_kurzbz = $this->get('lvregeltyp_kurzbz');
- if(isset($lvregeltyp_kurzbz))
+ if (isset($lvregeltyp_kurzbz))
{
$result = $this->LvregeltypModel->load($lvregeltyp_kurzbz);
@@ -52,9 +52,9 @@ class Lvregeltyp extends APIv1_Controller
*/
public function postLvregeltyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lvregeltyp_kurzbz']))
+ if (isset($this->post()['lvregeltyp_kurzbz']))
{
$result = $this->LvregeltypModel->update($this->post()['lvregeltyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Moodle.php b/application/controllers/api/v1/education/Moodle.php
index 7be95be3c..6596e5ad1 100644
--- a/application/controllers/api/v1/education/Moodle.php
+++ b/application/controllers/api/v1/education/Moodle.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Moodle extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Moodle extends APIv1_Controller
{
$moodle_id = $this->get('moodle_id');
- if(isset($moodle_id))
+ if (isset($moodle_id))
{
$result = $this->MoodleModel->load($moodle_id);
@@ -52,9 +52,9 @@ class Moodle extends APIv1_Controller
*/
public function postMoodle()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['moodle_id']))
+ if (isset($this->post()['moodle_id']))
{
$result = $this->MoodleModel->update($this->post()['moodle_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Notenschluessel.php b/application/controllers/api/v1/education/Notenschluessel.php
index 93cc0f06c..d3372375e 100644
--- a/application/controllers/api/v1/education/Notenschluessel.php
+++ b/application/controllers/api/v1/education/Notenschluessel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notenschluessel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Notenschluessel extends APIv1_Controller
{
$notenschluessel_kurzbz = $this->get('notenschluessel_kurzbz');
- if(isset($notenschluessel_kurzbz))
+ if (isset($notenschluessel_kurzbz))
{
$result = $this->NotenschluesselModel->load($notenschluessel_kurzbz);
@@ -52,9 +52,9 @@ class Notenschluessel extends APIv1_Controller
*/
public function postNotenschluessel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['notenschluessel_kurzbz']))
+ if (isset($this->post()['notenschluessel_kurzbz']))
{
$result = $this->NotenschluesselModel->update($this->post()['notenschluessel_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Notenschluesselaufteilung.php b/application/controllers/api/v1/education/Notenschluesselaufteilung.php
index 05096f41a..d98a3c97b 100644
--- a/application/controllers/api/v1/education/Notenschluesselaufteilung.php
+++ b/application/controllers/api/v1/education/Notenschluesselaufteilung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notenschluesselaufteilung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Notenschluesselaufteilung extends APIv1_Controller
{
$notenschluesselaufteilung_id = $this->get('notenschluesselaufteilung_id');
- if(isset($notenschluesselaufteilung_id))
+ if (isset($notenschluesselaufteilung_id))
{
$result = $this->NotenschluesselaufteilungModel->load($notenschluesselaufteilung_id);
@@ -52,9 +52,9 @@ class Notenschluesselaufteilung extends APIv1_Controller
*/
public function postNotenschluesselaufteilung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['notenschluesselaufteilung_id']))
+ if (isset($this->post()['notenschluesselaufteilung_id']))
{
$result = $this->NotenschluesselaufteilungModel->update($this->post()['notenschluesselaufteilung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Notenschluesseluebung.php b/application/controllers/api/v1/education/Notenschluesseluebung.php
index 02efcbc80..2699dad58 100644
--- a/application/controllers/api/v1/education/Notenschluesseluebung.php
+++ b/application/controllers/api/v1/education/Notenschluesseluebung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notenschluesseluebung extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Notenschluesseluebung extends APIv1_Controller
$note = $this->get('note');
$uebung_id = $this->get('uebung_id');
- if(isset($note) && isset($uebung_id))
+ if (isset($note) && isset($uebung_id))
{
$result = $this->NotenschluesseluebungModel->load(array($note, $uebung_id));
@@ -53,9 +53,9 @@ class Notenschluesseluebung extends APIv1_Controller
*/
public function postNotenschluesseluebung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['note']) && isset($this->post()['uebung_id']))
+ if (isset($this->post()['note']) && isset($this->post()['uebung_id']))
{
$result = $this->NotenschluesseluebungModel->update(array($this->post()['note'], $this->post()['uebung_id']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Notenschluesselzuordnung.php b/application/controllers/api/v1/education/Notenschluesselzuordnung.php
index b87713dee..1ee0ccce8 100644
--- a/application/controllers/api/v1/education/Notenschluesselzuordnung.php
+++ b/application/controllers/api/v1/education/Notenschluesselzuordnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notenschluesselzuordnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Notenschluesselzuordnung extends APIv1_Controller
{
$notenschluesselzuordnung_id = $this->get('notenschluesselzuordnung_id');
- if(isset($notenschluesselzuordnung_id))
+ if (isset($notenschluesselzuordnung_id))
{
$result = $this->NotenschluesselzuordnungModel->load($notenschluesselzuordnung_id);
@@ -52,9 +52,9 @@ class Notenschluesselzuordnung extends APIv1_Controller
*/
public function postNotenschluesselzuordnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['notenschluesselzuordnung_id']))
+ if (isset($this->post()['notenschluesselzuordnung_id']))
{
$result = $this->NotenschluesselzuordnungModel->update($this->post()['notenschluesselzuordnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Paabgabe.php b/application/controllers/api/v1/education/Paabgabe.php
index 09e9b0e69..e67253fbb 100644
--- a/application/controllers/api/v1/education/Paabgabe.php
+++ b/application/controllers/api/v1/education/Paabgabe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Paabgabe extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Paabgabe extends APIv1_Controller
{
$paabgabe_id = $this->get('paabgabe_id');
- if(isset($paabgabe_id))
+ if (isset($paabgabe_id))
{
$result = $this->PaabgabeModel->load($paabgabe_id);
@@ -52,9 +52,9 @@ class Paabgabe extends APIv1_Controller
*/
public function postPaabgabe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['paabgabe_id']))
+ if (isset($this->post()['paabgabe_id']))
{
$result = $this->PaabgabeModel->update($this->post()['paabgabe_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Paabgabetyp.php b/application/controllers/api/v1/education/Paabgabetyp.php
index e3aba1059..5a93d9f08 100644
--- a/application/controllers/api/v1/education/Paabgabetyp.php
+++ b/application/controllers/api/v1/education/Paabgabetyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Paabgabetyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Paabgabetyp extends APIv1_Controller
{
$paabgabetyp_kurzbz = $this->get('paabgabetyp_kurzbz');
- if(isset($paabgabetyp_kurzbz))
+ if (isset($paabgabetyp_kurzbz))
{
$result = $this->PaabgabetypModel->load($paabgabetyp_kurzbz);
@@ -52,9 +52,9 @@ class Paabgabetyp extends APIv1_Controller
*/
public function postPaabgabetyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['paabgabetyp_kurzbz']))
+ if (isset($this->post()['paabgabetyp_kurzbz']))
{
$result = $this->PaabgabetypModel->update($this->post()['paabgabetyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Projektarbeit.php b/application/controllers/api/v1/education/Projektarbeit.php
index 316dd0cd4..28f7922f5 100644
--- a/application/controllers/api/v1/education/Projektarbeit.php
+++ b/application/controllers/api/v1/education/Projektarbeit.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projektarbeit extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projektarbeit extends APIv1_Controller
{
$projektarbeit_id = $this->get('projektarbeit_id');
- if(isset($projektarbeit_id))
+ if (isset($projektarbeit_id))
{
$result = $this->ProjektarbeitModel->load($projektarbeit_id);
@@ -52,9 +52,9 @@ class Projektarbeit extends APIv1_Controller
*/
public function postProjektarbeit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projektarbeit_id']))
+ if (isset($this->post()['projektarbeit_id']))
{
$result = $this->ProjektarbeitModel->update($this->post()['projektarbeit_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Projektbetreuer.php b/application/controllers/api/v1/education/Projektbetreuer.php
index 87ec25a7d..6cf01a208 100644
--- a/application/controllers/api/v1/education/Projektbetreuer.php
+++ b/application/controllers/api/v1/education/Projektbetreuer.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projektbetreuer extends APIv1_Controller
{
@@ -37,7 +37,7 @@ class Projektbetreuer extends APIv1_Controller
$projektarbeit_id = $this->get('projektarbeit_id');
$person_id = $this->get('person_id');
- if(isset($betreuerart_kurzbz) && isset($projektarbeit_id) && isset($person_id))
+ if (isset($betreuerart_kurzbz) && isset($projektarbeit_id) && isset($person_id))
{
$result = $this->ProjektbetreuerModel->load(array($betreuerart_kurzbz, $projektarbeit_id, $person_id));
@@ -54,9 +54,9 @@ class Projektbetreuer extends APIv1_Controller
*/
public function postProjektbetreuer()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betreuerart_kurzbz']) && isset($this->post()['projektarbeit_id']) && isset($this->post()['person_id']))
+ if (isset($this->post()['betreuerart_kurzbz']) && isset($this->post()['projektarbeit_id']) && isset($this->post()['person_id']))
{
$pksArray = array($this->post()['betreuerart_kurzbz'],
$this->post()['projektarbeit_id'],
diff --git a/application/controllers/api/v1/education/Projekttyp.php b/application/controllers/api/v1/education/Projekttyp.php
index 1881520b9..c254833a2 100644
--- a/application/controllers/api/v1/education/Projekttyp.php
+++ b/application/controllers/api/v1/education/Projekttyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projekttyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projekttyp extends APIv1_Controller
{
$projekttyp_kurzbz = $this->get('projekttyp_kurzbz');
- if(isset($projekttyp_kurzbz))
+ if (isset($projekttyp_kurzbz))
{
$result = $this->ProjekttypModel->load($projekttyp_kurzbz);
@@ -52,9 +52,9 @@ class Projekttyp extends APIv1_Controller
*/
public function postProjekttyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projekttyp_kurzbz']))
+ if (isset($this->post()['projekttyp_kurzbz']))
{
$result = $this->ProjekttypModel->update($this->post()['projekttyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefung.php b/application/controllers/api/v1/education/Pruefung.php
index 03d2c6246..6c0a44049 100644
--- a/application/controllers/api/v1/education/Pruefung.php
+++ b/application/controllers/api/v1/education/Pruefung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefung extends APIv1_Controller
{
$pruefung_id = $this->get('pruefung_id');
- if(isset($pruefung_id))
+ if (isset($pruefung_id))
{
$result = $this->PruefungModel->load($pruefung_id);
@@ -52,9 +52,9 @@ class Pruefung extends APIv1_Controller
*/
public function postPruefung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefung_id']))
+ if (isset($this->post()['pruefung_id']))
{
$result = $this->PruefungModel->update($this->post()['pruefung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefungsanmeldung.php b/application/controllers/api/v1/education/Pruefungsanmeldung.php
index afb00dcb7..a30d78680 100644
--- a/application/controllers/api/v1/education/Pruefungsanmeldung.php
+++ b/application/controllers/api/v1/education/Pruefungsanmeldung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefungsanmeldung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefungsanmeldung extends APIv1_Controller
{
$pruefungsanmeldung_id = $this->get('pruefungsanmeldung_id');
- if(isset($pruefungsanmeldung_id))
+ if (isset($pruefungsanmeldung_id))
{
$result = $this->PruefungsanmeldungModel->load($pruefungsanmeldung_id);
@@ -52,9 +52,9 @@ class Pruefungsanmeldung extends APIv1_Controller
*/
public function postPruefungsanmeldung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefungsanmeldung_id']))
+ if (isset($this->post()['pruefungsanmeldung_id']))
{
$result = $this->PruefungsanmeldungModel->update($this->post()['pruefungsanmeldung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefungsfenster.php b/application/controllers/api/v1/education/Pruefungsfenster.php
index e2f247600..64e6fbbe7 100644
--- a/application/controllers/api/v1/education/Pruefungsfenster.php
+++ b/application/controllers/api/v1/education/Pruefungsfenster.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefungsfenster extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefungsfenster extends APIv1_Controller
{
$pruefungsfenster_id = $this->get('pruefungsfenster_id');
- if(isset($pruefungsfenster_id))
+ if (isset($pruefungsfenster_id))
{
$result = $this->PruefungsfensterModel->load($pruefungsfenster_id);
@@ -52,9 +52,9 @@ class Pruefungsfenster extends APIv1_Controller
*/
public function postPruefungsfenster()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefungsfenster_id']))
+ if (isset($this->post()['pruefungsfenster_id']))
{
$result = $this->PruefungsfensterModel->update($this->post()['pruefungsfenster_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefungsstatus.php b/application/controllers/api/v1/education/Pruefungsstatus.php
index 106bf018c..5158cac10 100644
--- a/application/controllers/api/v1/education/Pruefungsstatus.php
+++ b/application/controllers/api/v1/education/Pruefungsstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefungsstatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefungsstatus extends APIv1_Controller
{
$status_kurzbz = $this->get('status_kurzbz');
- if(isset($status_kurzbz))
+ if (isset($status_kurzbz))
{
$result = $this->PruefungsstatusModel->load($status_kurzbz);
@@ -52,9 +52,9 @@ class Pruefungsstatus extends APIv1_Controller
*/
public function postPruefungsstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['status_kurzbz']))
+ if (isset($this->post()['status_kurzbz']))
{
$result = $this->PruefungsstatusModel->update($this->post()['status_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefungstermin.php b/application/controllers/api/v1/education/Pruefungstermin.php
index 89d16b87a..e3e1631bc 100644
--- a/application/controllers/api/v1/education/Pruefungstermin.php
+++ b/application/controllers/api/v1/education/Pruefungstermin.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefungstermin extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefungstermin extends APIv1_Controller
{
$pruefungstermin_id = $this->get('pruefungstermin_id');
- if(isset($pruefungstermin_id))
+ if (isset($pruefungstermin_id))
{
$result = $this->PruefungsterminModel->load($pruefungstermin_id);
@@ -52,9 +52,9 @@ class Pruefungstermin extends APIv1_Controller
*/
public function postPruefungstermin()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefungstermin_id']))
+ if (isset($this->post()['pruefungstermin_id']))
{
$result = $this->PruefungsterminModel->update($this->post()['pruefungstermin_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Pruefungstyp.php b/application/controllers/api/v1/education/Pruefungstyp.php
index 6fc1e465b..b4af31f8e 100644
--- a/application/controllers/api/v1/education/Pruefungstyp.php
+++ b/application/controllers/api/v1/education/Pruefungstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefungstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefungstyp extends APIv1_Controller
{
$pruefungstyp_kurzbz = $this->get('pruefungstyp_kurzbz');
- if(isset($pruefungstyp_kurzbz))
+ if (isset($pruefungstyp_kurzbz))
{
$result = $this->PruefungstypModel->load($pruefungstyp_kurzbz);
@@ -52,9 +52,9 @@ class Pruefungstyp extends APIv1_Controller
*/
public function postPruefungstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefungstyp_kurzbz']))
+ if (isset($this->post()['pruefungstyp_kurzbz']))
{
$result = $this->PruefungstypModel->update($this->post()['pruefungstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Studentbeispiel.php b/application/controllers/api/v1/education/Studentbeispiel.php
index 3e20d0803..02b626cfc 100644
--- a/application/controllers/api/v1/education/Studentbeispiel.php
+++ b/application/controllers/api/v1/education/Studentbeispiel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studentbeispiel extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Studentbeispiel extends APIv1_Controller
$beispiel_id = $this->get('beispiel_id');
$student_uid = $this->get('student_uid');
- if(isset($beispiel_id) && isset($student_uid))
+ if (isset($beispiel_id) && isset($student_uid))
{
$result = $this->StudentbeispielModel->load(array($beispiel_id, $student_uid));
@@ -53,9 +53,9 @@ class Studentbeispiel extends APIv1_Controller
*/
public function postStudentbeispiel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['beispiel_id']) && isset($this->post()['student_uid']))
+ if (isset($this->post()['beispiel_id']) && isset($this->post()['student_uid']))
{
$result = $this->StudentbeispielModel->update(array($this->post()['beispiel_id'], $this->post()['student_uid']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Studentlehrverband.php b/application/controllers/api/v1/education/Studentlehrverband.php
index fed034881..5e9e8cac9 100644
--- a/application/controllers/api/v1/education/Studentlehrverband.php
+++ b/application/controllers/api/v1/education/Studentlehrverband.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studentlehrverband extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Studentlehrverband extends APIv1_Controller
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
$student_uid = $this->get('student_uid');
- if(isset($studiensemester_kurzbz) && isset($student_uid))
+ if (isset($studiensemester_kurzbz) && isset($student_uid))
{
$result = $this->StudentlehrverbandModel->load(array($studiensemester_kurzbz, $student_uid));
@@ -53,9 +53,9 @@ class Studentlehrverband extends APIv1_Controller
*/
public function postStudentlehrverband()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['student_uid']))
+ if (isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['student_uid']))
{
$result = $this->StudentlehrverbandModel->update(array($this->post()['studiensemester_kurzbz'], $this->post()['student_uid']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Studentuebung.php b/application/controllers/api/v1/education/Studentuebung.php
index b869f0637..cd386732b 100644
--- a/application/controllers/api/v1/education/Studentuebung.php
+++ b/application/controllers/api/v1/education/Studentuebung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studentuebung extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Studentuebung extends APIv1_Controller
$uebung_id = $this->get('uebung_id');
$student_uid = $this->get('student_uid');
- if(isset($uebung_id) && isset($student_uid))
+ if (isset($uebung_id) && isset($student_uid))
{
$result = $this->StudentuebungModel->load(array($uebung_id, $student_uid));
@@ -53,9 +53,9 @@ class Studentuebung extends APIv1_Controller
*/
public function postStudentuebung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['uebung_id']) && isset($this->post()['student_uid']))
+ if (isset($this->post()['uebung_id']) && isset($this->post()['student_uid']))
{
$result = $this->StudentuebungModel->update(array($this->post()['uebung_id'], $this->post()['student_uid']), $this->post());
}
diff --git a/application/controllers/api/v1/education/Uebung.php b/application/controllers/api/v1/education/Uebung.php
index e8146e2e9..95d0fb52d 100644
--- a/application/controllers/api/v1/education/Uebung.php
+++ b/application/controllers/api/v1/education/Uebung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Uebung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Uebung extends APIv1_Controller
{
$uebung_id = $this->get('uebung_id');
- if(isset($uebung_id))
+ if (isset($uebung_id))
{
$result = $this->UebungModel->load($uebung_id);
@@ -52,9 +52,9 @@ class Uebung extends APIv1_Controller
*/
public function postUebung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['uebung_id']))
+ if (isset($this->post()['uebung_id']))
{
$result = $this->UebungModel->update($this->post()['uebung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Zeugnis.php b/application/controllers/api/v1/education/Zeugnis.php
index 1a57fdfdd..f9fbf74a5 100644
--- a/application/controllers/api/v1/education/Zeugnis.php
+++ b/application/controllers/api/v1/education/Zeugnis.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeugnis extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zeugnis extends APIv1_Controller
{
$zeugnis_id = $this->get('zeugnis_id');
- if(isset($zeugnis_id))
+ if (isset($zeugnis_id))
{
$result = $this->ZeugnisModel->load($zeugnis_id);
@@ -52,9 +52,9 @@ class Zeugnis extends APIv1_Controller
*/
public function postZeugnis()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zeugnis_id']))
+ if (isset($this->post()['zeugnis_id']))
{
$result = $this->ZeugnisModel->update($this->post()['zeugnis_id'], $this->post());
}
diff --git a/application/controllers/api/v1/education/Zeugnisnote.php b/application/controllers/api/v1/education/Zeugnisnote.php
index e093eb964..7b6e602ab 100644
--- a/application/controllers/api/v1/education/Zeugnisnote.php
+++ b/application/controllers/api/v1/education/Zeugnisnote.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeugnisnote extends APIv1_Controller
{
@@ -37,7 +37,7 @@ class Zeugnisnote extends APIv1_Controller
$student_uid = $this->get('student_uid');
$lehrveranstaltung_id = $this->get('lehrveranstaltung_id');
- if(isset($studiensemester_kurzbz) && isset($student_uid) && isset($lehrveranstaltung_id))
+ if (isset($studiensemester_kurzbz) && isset($student_uid) && isset($lehrveranstaltung_id))
{
$result = $this->ZeugnisnoteModel->load(array($studiensemester_kurzbz, $student_uid, $lehrveranstaltung_id));
@@ -54,9 +54,9 @@ class Zeugnisnote extends APIv1_Controller
*/
public function postZeugnisnote()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['student_uid']) && isset($this->post()['lehrveranstaltung_id']))
+ if (isset($this->post()['studiensemester_kurzbz']) && isset($this->post()['student_uid']) && isset($this->post()['lehrveranstaltung_id']))
{
$pksArray = array($this->post()['studiensemester_kurzbz'],
$this->post()['student_uid'],
diff --git a/application/controllers/api/v1/organisation/Erhalter.php b/application/controllers/api/v1/organisation/Erhalter.php
index a67e00cd7..1e6c730b4 100644
--- a/application/controllers/api/v1/organisation/Erhalter.php
+++ b/application/controllers/api/v1/organisation/Erhalter.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Erhalter extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Erhalter extends APIv1_Controller
{
$erhalter_kz = $this->get('erhalter_kz');
- if(isset($erhalter_kz))
+ if (isset($erhalter_kz))
{
$result = $this->ErhalterModel->load($erhalter_kz);
@@ -52,9 +52,9 @@ class Erhalter extends APIv1_Controller
*/
public function postErhalter()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['erhalter_kz']))
+ if (isset($this->post()['erhalter_kz']))
{
$result = $this->ErhalterModel->update($this->post()['erhalter_kz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Fachbereich2.php b/application/controllers/api/v1/organisation/Fachbereich2.php
index a39d3dc93..662298940 100644
--- a/application/controllers/api/v1/organisation/Fachbereich2.php
+++ b/application/controllers/api/v1/organisation/Fachbereich2.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Fachbereich2 extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Fachbereich2 extends APIv1_Controller
{
$fachbereich_kurzbz = $this->get('fachbereich_kurzbz');
- if(isset($fachbereich_kurzbz))
+ if (isset($fachbereich_kurzbz))
{
$result = $this->FachbereichModel->load($fachbereich_kurzbz);
@@ -52,9 +52,9 @@ class Fachbereich2 extends APIv1_Controller
*/
public function postFachbereich()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['fachbereich_id']))
+ if (isset($this->post()['fachbereich_id']))
{
$result = $this->FachbereichModel->update($this->post()['fachbereich_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Ferien.php b/application/controllers/api/v1/organisation/Ferien.php
index 5e4b15d6e..5ecf54756 100644
--- a/application/controllers/api/v1/organisation/Ferien.php
+++ b/application/controllers/api/v1/organisation/Ferien.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ferien extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Ferien extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$bezeichnung = $this->get('bezeichnung');
- if(isset($studiengang_kz) && isset($bezeichnung))
+ if (isset($studiengang_kz) && isset($bezeichnung))
{
$result = $this->FerienModel->load(array($studiengang_kz, $bezeichnung));
@@ -53,9 +53,9 @@ class Ferien extends APIv1_Controller
*/
public function postFerien()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiengang_kz']) && isset($this->post()['bezeichnung']))
+ if (isset($this->post()['studiengang_kz']) && isset($this->post()['bezeichnung']))
{
$result = $this->FerienModel->update(array($this->post()['ferien_id'], $this->post()['bezeichnung']), $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Geschaeftsjahr2.php b/application/controllers/api/v1/organisation/Geschaeftsjahr2.php
index 64e9b76bb..61579e457 100644
--- a/application/controllers/api/v1/organisation/Geschaeftsjahr2.php
+++ b/application/controllers/api/v1/organisation/Geschaeftsjahr2.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Geschaeftsjahr2 extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Geschaeftsjahr2 extends APIv1_Controller
{
$geschaeftsjahr_kurzbz = $this->get('geschaeftsjahr_kurzbz');
- if(isset($geschaeftsjahr_kurzbz))
+ if (isset($geschaeftsjahr_kurzbz))
{
$result = $this->GeschaeftsjahrModel->load($geschaeftsjahr_kurzbz);
@@ -52,9 +52,9 @@ class Geschaeftsjahr2 extends APIv1_Controller
*/
public function postGeschaeftsjahr()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['geschaeftsjahr_id']))
+ if (isset($this->post()['geschaeftsjahr_id']))
{
$result = $this->GeschaeftsjahrModel->update($this->post()['geschaeftsjahr_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Gruppe.php b/application/controllers/api/v1/organisation/Gruppe.php
index 1a290740f..7bf01666a 100644
--- a/application/controllers/api/v1/organisation/Gruppe.php
+++ b/application/controllers/api/v1/organisation/Gruppe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Gruppe extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Gruppe extends APIv1_Controller
{
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
- if(isset($gruppe_kurzbz))
+ if (isset($gruppe_kurzbz))
{
$result = $this->GruppeModel->load($gruppe_kurzbz);
@@ -52,9 +52,9 @@ class Gruppe extends APIv1_Controller
*/
public function postGruppe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['gruppe_kurzbz']))
+ if (isset($this->post()['gruppe_kurzbz']))
{
$result = $this->GruppeModel->update($this->post()['gruppe_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Lehrverband.php b/application/controllers/api/v1/organisation/Lehrverband.php
index 74089fc2d..ce4e04893 100644
--- a/application/controllers/api/v1/organisation/Lehrverband.php
+++ b/application/controllers/api/v1/organisation/Lehrverband.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrverband extends APIv1_Controller
{
@@ -38,7 +38,7 @@ class Lehrverband extends APIv1_Controller
$semester = $this->get('semester');
$studiengang_kz = $this->get('studiengang_kz');
- if(isset($gruppe) && isset($verband) && isset($semester) && isset($studiengang_kz))
+ if (isset($gruppe) && isset($verband) && isset($semester) && isset($studiengang_kz))
{
$result = $this->LehrverbandModel->load(array($gruppe, $verband, $semester, $studiengang_kz));
@@ -55,9 +55,9 @@ class Lehrverband extends APIv1_Controller
*/
public function postLehrverband()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['gruppe']) && isset($this->post()['verband']) &&
+ if (isset($this->post()['gruppe']) && isset($this->post()['verband']) &&
isset($this->post()['semester']) && isset($this->post()['studiengang_kz']))
{
$pksArray = array($this->post()['gruppe'],
diff --git a/application/controllers/api/v1/organisation/Organisationseinheit2.php b/application/controllers/api/v1/organisation/Organisationseinheit2.php
index 3cbe5ff51..87fa0b2a9 100644
--- a/application/controllers/api/v1/organisation/Organisationseinheit2.php
+++ b/application/controllers/api/v1/organisation/Organisationseinheit2.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Organisationseinheit2 extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Organisationseinheit2 extends APIv1_Controller
{
$oe_kurzbz = $this->get('oe_kurzbz');
- if(isset($oe_kurzbz))
+ if (isset($oe_kurzbz))
{
$result = $this->OrganisationseinheitModel->load($oe_kurzbz);
@@ -52,9 +52,9 @@ class Organisationseinheit2 extends APIv1_Controller
*/
public function postOrganisationseinheit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['organisationseinheit_id']))
+ if (isset($this->post()['organisationseinheit_id']))
{
$result = $this->OrganisationseinheitModel->update($this->post()['organisationseinheit_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Organisationseinheittyp.php b/application/controllers/api/v1/organisation/Organisationseinheittyp.php
index 4064f5849..79765ed68 100644
--- a/application/controllers/api/v1/organisation/Organisationseinheittyp.php
+++ b/application/controllers/api/v1/organisation/Organisationseinheittyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Organisationseinheittyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Organisationseinheittyp extends APIv1_Controller
{
$organisationseinheittyp_kurzbz = $this->get('organisationseinheittyp_kurzbz');
- if(isset($organisationseinheittyp_kurzbz))
+ if (isset($organisationseinheittyp_kurzbz))
{
$result = $this->OrganisationseinheittypModel->load($organisationseinheittyp_kurzbz);
@@ -52,9 +52,9 @@ class Organisationseinheittyp extends APIv1_Controller
*/
public function postOrganisationseinheittyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['organisationseinheittyp_kurzbz']))
+ if (isset($this->post()['organisationseinheittyp_kurzbz']))
{
$result = $this->OrganisationseinheittypModel->update($this->post()['organisationseinheittyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Semesterwochen.php b/application/controllers/api/v1/organisation/Semesterwochen.php
index 38c2a4438..8ea889d25 100644
--- a/application/controllers/api/v1/organisation/Semesterwochen.php
+++ b/application/controllers/api/v1/organisation/Semesterwochen.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Semesterwochen extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Semesterwochen extends APIv1_Controller
$studiengang_kz = $this->get('studiengang_kz');
$semester = $this->get('semester');
- if(isset($studiengang_kz) && isset($semester))
+ if (isset($studiengang_kz) && isset($semester))
{
$result = $this->SemesterwochenModel->load(array($studiengang_kz, $semester));
@@ -53,9 +53,9 @@ class Semesterwochen extends APIv1_Controller
*/
public function postSemesterwochen()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiengang_kz']) && isset($this->post()['semester']))
+ if (isset($this->post()['studiengang_kz']) && isset($this->post()['semester']))
{
$result = $this->SemesterwochenModel->update(array($this->post()['studiengang_kz'], $this->post()['semester']), $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Service.php b/application/controllers/api/v1/organisation/Service.php
index ff62e9e0a..0d04e4cb7 100644
--- a/application/controllers/api/v1/organisation/Service.php
+++ b/application/controllers/api/v1/organisation/Service.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Service extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Service extends APIv1_Controller
{
$serviceID = $this->get('service_id');
- if(isset($serviceID))
+ if (isset($serviceID))
{
$result = $this->ServiceModel->load($serviceID);
@@ -52,9 +52,9 @@ class Service extends APIv1_Controller
*/
public function postService()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['service_id']))
+ if (isset($this->post()['service_id']))
{
$result = $this->ServiceModel->update($this->post()['service_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Standort.php b/application/controllers/api/v1/organisation/Standort.php
index 50afc8dac..a377684b9 100644
--- a/application/controllers/api/v1/organisation/Standort.php
+++ b/application/controllers/api/v1/organisation/Standort.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Standort extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Standort extends APIv1_Controller
{
$standortID = $this->get('standort_id');
- if(isset($standortID))
+ if (isset($standortID))
{
$result = $this->StandortModel->load($standortID);
@@ -52,9 +52,9 @@ class Standort extends APIv1_Controller
*/
public function postStandort()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['standort_id']))
+ if (isset($this->post()['standort_id']))
{
$result = $this->StandortModel->update($this->post()['standort_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Statistik.php b/application/controllers/api/v1/organisation/Statistik.php
index 1af29ddad..8d72fbadf 100644
--- a/application/controllers/api/v1/organisation/Statistik.php
+++ b/application/controllers/api/v1/organisation/Statistik.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Statistik extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Statistik extends APIv1_Controller
{
$statistik_kurzbz = $this->get('statistik_kurzbz');
- if(isset($statistik_kurzbz))
+ if (isset($statistik_kurzbz))
{
$result = $this->StatistikModel->load($statistik_kurzbz);
@@ -52,9 +52,9 @@ class Statistik extends APIv1_Controller
*/
public function postStatistik()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['statistik_kurzbz']))
+ if (isset($this->post()['statistik_kurzbz']))
{
$result = $this->StatistikModel->update($this->post()['statistik_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studiengang2.php b/application/controllers/api/v1/organisation/Studiengang2.php
index 0a05e020a..4a19e3e96 100644
--- a/application/controllers/api/v1/organisation/Studiengang2.php
+++ b/application/controllers/api/v1/organisation/Studiengang2.php
@@ -11,7 +11,7 @@
* @filesource
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studiengang2 extends APIv1_Controller
{
@@ -31,7 +31,7 @@ class Studiengang2 extends APIv1_Controller
{
$studiengang_kz = $this->get('studiengang_kz');
- if(isset($studiengang_kz))
+ if (isset($studiengang_kz))
{
$result = $this->StudiengangModel->load($studiengang_kz);
diff --git a/application/controllers/api/v1/organisation/Studiengangstyp.php b/application/controllers/api/v1/organisation/Studiengangstyp.php
index af9bb5762..45459c366 100644
--- a/application/controllers/api/v1/organisation/Studiengangstyp.php
+++ b/application/controllers/api/v1/organisation/Studiengangstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studiengangstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studiengangstyp extends APIv1_Controller
{
$typ = $this->get('typ');
- if(isset($typ))
+ if (isset($typ))
{
$result = $this->StudiengangstypModel->load($typ);
@@ -52,9 +52,9 @@ class Studiengangstyp extends APIv1_Controller
*/
public function postStudiengangstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['typ']))
+ if (isset($this->post()['typ']))
{
$result = $this->StudiengangstypModel->update($this->post()['typ'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studienjahr.php b/application/controllers/api/v1/organisation/Studienjahr.php
index 719dc8579..d66e26a05 100644
--- a/application/controllers/api/v1/organisation/Studienjahr.php
+++ b/application/controllers/api/v1/organisation/Studienjahr.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studienjahr extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studienjahr extends APIv1_Controller
{
$studienjahr_kurzbz = $this->get('studienjahr_kurzbz');
- if(isset($studienjahr_kurzbz))
+ if (isset($studienjahr_kurzbz))
{
$result = $this->StudienjahrModel->load($studienjahr_kurzbz);
@@ -52,9 +52,9 @@ class Studienjahr extends APIv1_Controller
*/
public function postStudienjahr()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studienjahr_kurzbz']))
+ if (isset($this->post()['studienjahr_kurzbz']))
{
$result = $this->StudienjahrModel->update($this->post()['studienjahr_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studienordnung.php b/application/controllers/api/v1/organisation/Studienordnung.php
index 10e561435..10ea7248f 100644
--- a/application/controllers/api/v1/organisation/Studienordnung.php
+++ b/application/controllers/api/v1/organisation/Studienordnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studienordnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studienordnung extends APIv1_Controller
{
$studienordnungID = $this->get('studienordnung_id');
- if(isset($studienordnungID))
+ if (isset($studienordnungID))
{
$result = $this->StudienordnungModel->load($studienordnungID);
@@ -52,9 +52,9 @@ class Studienordnung extends APIv1_Controller
*/
public function postStudienordnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studienordnung_id']))
+ if (isset($this->post()['studienordnung_id']))
{
$result = $this->StudienordnungModel->update($this->post()['studienordnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studienordnungstatus.php b/application/controllers/api/v1/organisation/Studienordnungstatus.php
index 293abbd12..02ee9b8bb 100644
--- a/application/controllers/api/v1/organisation/Studienordnungstatus.php
+++ b/application/controllers/api/v1/organisation/Studienordnungstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studienordnungstatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studienordnungstatus extends APIv1_Controller
{
$status_kurzbz = $this->get('status_kurzbz');
- if(isset($status_kurzbz))
+ if (isset($status_kurzbz))
{
$result = $this->StudienordnungstatusModel->load($status_kurzbz);
@@ -52,9 +52,9 @@ class Studienordnungstatus extends APIv1_Controller
*/
public function postStudienordnungstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['status_kurzbz']))
+ if (isset($this->post()['status_kurzbz']))
{
$result = $this->StudienordnungstatusModel->update($this->post()['status_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studienplan.php b/application/controllers/api/v1/organisation/Studienplan.php
index b4b2ffd8a..9f7913bba 100644
--- a/application/controllers/api/v1/organisation/Studienplan.php
+++ b/application/controllers/api/v1/organisation/Studienplan.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studienplan extends APIv1_Controller
{
@@ -32,10 +32,10 @@ class Studienplan extends APIv1_Controller
{
$studiengang_kz = $this->get('studiengang_kz');
- if(isset($studiengang_kz))
+ if (isset($studiengang_kz))
{
$result = $this->StudienplanModel->addJoin('lehre.tbl_studienordnung', 'studienordnung_id');
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
$result = $this->StudienplanModel->loadWhere(array('studiengang_kz' => $this->get('studiengang_kz')));
}
diff --git a/application/controllers/api/v1/organisation/Studienplatz.php b/application/controllers/api/v1/organisation/Studienplatz.php
index d88c116a7..00e55a35b 100644
--- a/application/controllers/api/v1/organisation/Studienplatz.php
+++ b/application/controllers/api/v1/organisation/Studienplatz.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studienplatz extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studienplatz extends APIv1_Controller
{
$studienplatzID = $this->get('studienplatz_id');
- if(isset($studienplatzID))
+ if (isset($studienplatzID))
{
$result = $this->StudienplatzModel->load($studienplatzID);
@@ -52,9 +52,9 @@ class Studienplatz extends APIv1_Controller
*/
public function postStudienplatz()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studienplatz_id']))
+ if (isset($this->post()['studienplatz_id']))
{
$result = $this->StudienplatzModel->update($this->post()['studienplatz_id'], $this->post());
}
diff --git a/application/controllers/api/v1/organisation/Studiensemester.php b/application/controllers/api/v1/organisation/Studiensemester.php
index e61512825..5b3228b92 100644
--- a/application/controllers/api/v1/organisation/Studiensemester.php
+++ b/application/controllers/api/v1/organisation/Studiensemester.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Studiensemester extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Studiensemester extends APIv1_Controller
{
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
- if(isset($studiensemester_kurzbz))
+ if (isset($studiensemester_kurzbz))
{
$result = $this->StudiensemesterModel->load($studiensemester_kurzbz);
@@ -52,9 +52,9 @@ class Studiensemester extends APIv1_Controller
*/
public function postStudiensemester()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['studiensemester_kurzbz']))
+ if (isset($this->post()['studiensemester_kurzbz']))
{
$result = $this->StudiensemesterModel->update($this->post()['studiensemester_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Adresse.php b/application/controllers/api/v1/person/Adresse.php
index 1560f2a4d..6a0038865 100644
--- a/application/controllers/api/v1/person/Adresse.php
+++ b/application/controllers/api/v1/person/Adresse.php
@@ -13,7 +13,7 @@
*/
// ------------------------------------------------------------------------
-defined('BASEPATH') || exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
class Adresse extends APIv1_Controller
{
@@ -33,7 +33,7 @@ class Adresse extends APIv1_Controller
{
$personID = $this->get("person_id");
- if(isset($personID))
+ if (isset($personID))
{
$result = $this->AdresseModel->loadWhere(array('person_id' => $personID));
@@ -49,9 +49,9 @@ class Adresse extends APIv1_Controller
{
$post = $this->post();
- if(is_array($post))
+ if (is_array($post))
{
- if(isset($post['adresse_id']))
+ if (isset($post['adresse_id']))
{
$result = $this->AdresseModel->update($post['adresse_id'], $post);
}
diff --git a/application/controllers/api/v1/person/Bankverbindung.php b/application/controllers/api/v1/person/Bankverbindung.php
index ca9dc4dc8..0355c3849 100644
--- a/application/controllers/api/v1/person/Bankverbindung.php
+++ b/application/controllers/api/v1/person/Bankverbindung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Bankverbindung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Bankverbindung extends APIv1_Controller
{
$bankverbindungID = $this->get('bankverbindung_id');
- if(isset($bankverbindungID))
+ if (isset($bankverbindungID))
{
$result = $this->BankverbindungModel->load($bankverbindungID);
@@ -52,9 +52,9 @@ class Bankverbindung extends APIv1_Controller
*/
public function postBankverbindung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['bankverbindung_id']))
+ if (isset($this->post()['bankverbindung_id']))
{
$result = $this->BankverbindungModel->update($this->post()['bankverbindung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Benutzer.php b/application/controllers/api/v1/person/Benutzer.php
index f79c65708..35e31b66c 100644
--- a/application/controllers/api/v1/person/Benutzer.php
+++ b/application/controllers/api/v1/person/Benutzer.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Benutzer extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Benutzer extends APIv1_Controller
{
$uid = $this->get('uid');
- if(isset($uid))
+ if (isset($uid))
{
$result = $this->BenutzerModel->load($uid);
@@ -52,9 +52,9 @@ class Benutzer extends APIv1_Controller
*/
public function postBenutzer()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['uid']))
+ if (isset($this->post()['uid']))
{
$result = $this->BenutzerModel->update($this->post()['uid'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Benutzerfunktion.php b/application/controllers/api/v1/person/Benutzerfunktion.php
index 88d301432..0bc764d56 100644
--- a/application/controllers/api/v1/person/Benutzerfunktion.php
+++ b/application/controllers/api/v1/person/Benutzerfunktion.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Benutzerfunktion extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Benutzerfunktion extends APIv1_Controller
{
$benutzerfunktionID = $this->get('benutzerfunktion_id');
- if(isset($benutzerfunktionID))
+ if (isset($benutzerfunktionID))
{
$result = $this->BenutzerfunktionModel->load($benutzerfunktionID);
@@ -52,9 +52,9 @@ class Benutzerfunktion extends APIv1_Controller
*/
public function postBenutzerfunktion()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['benutzerfunktion_id']))
+ if (isset($this->post()['benutzerfunktion_id']))
{
$result = $this->BenutzerfunktionModel->update($this->post()['benutzerfunktion_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Benutzergruppe.php b/application/controllers/api/v1/person/Benutzergruppe.php
index bc32d5648..3b499283a 100644
--- a/application/controllers/api/v1/person/Benutzergruppe.php
+++ b/application/controllers/api/v1/person/Benutzergruppe.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Benutzergruppe extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Benutzergruppe extends APIv1_Controller
$gruppe_kurzbz = $this->get('gruppe_kurzbz');
$uid = $this->get('uid');
- if(isset($gruppe_kurzbz) && isset($uid))
+ if (isset($gruppe_kurzbz) && isset($uid))
{
$result = $this->BenutzergruppeModel->load(array($gruppe_kurzbz, $uid));
@@ -53,9 +53,9 @@ class Benutzergruppe extends APIv1_Controller
*/
public function postBenutzergruppe()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['benutzergruppe_id']))
+ if (isset($this->post()['benutzergruppe_id']))
{
$result = $this->BenutzergruppeModel->update($this->post()['benutzergruppe_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Fotostatus.php b/application/controllers/api/v1/person/Fotostatus.php
index 3564d188a..fa3d9c8ae 100644
--- a/application/controllers/api/v1/person/Fotostatus.php
+++ b/application/controllers/api/v1/person/Fotostatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Fotostatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Fotostatus extends APIv1_Controller
{
$fotostatus_kurzbz = $this->get('fotostatus_kurzbz');
- if(isset($fotostatus_kurzbz))
+ if (isset($fotostatus_kurzbz))
{
$result = $this->FotostatusModel->load($fotostatus_kurzbz);
@@ -52,9 +52,9 @@ class Fotostatus extends APIv1_Controller
*/
public function postFotostatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['fotostatus_kurzbz']))
+ if (isset($this->post()['fotostatus_kurzbz']))
{
$result = $this->FotostatusModel->update($this->post()['fotostatus_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Freebusy.php b/application/controllers/api/v1/person/Freebusy.php
index bbfb9f9b9..fb587e2dd 100644
--- a/application/controllers/api/v1/person/Freebusy.php
+++ b/application/controllers/api/v1/person/Freebusy.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Freebusy extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Freebusy extends APIv1_Controller
{
$freebusyID = $this->get('freebusy_id');
- if(isset($freebusyID))
+ if (isset($freebusyID))
{
$result = $this->FreebusyModel->load($freebusyID);
@@ -52,9 +52,9 @@ class Freebusy extends APIv1_Controller
*/
public function postFreebusy()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['freebusy_id']))
+ if (isset($this->post()['freebusy_id']))
{
$result = $this->FreebusyModel->update($this->post()['freebusy_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Freebusytyp.php b/application/controllers/api/v1/person/Freebusytyp.php
index 891422d0c..c9ceb47ce 100644
--- a/application/controllers/api/v1/person/Freebusytyp.php
+++ b/application/controllers/api/v1/person/Freebusytyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Freebusytyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Freebusytyp extends APIv1_Controller
{
$freebusytyp_kurzbz = $this->get('freebusytyp_kurzbz');
- if(isset($freebusytyp_kurzbz))
+ if (isset($freebusytyp_kurzbz))
{
$result = $this->FreebusytypModel->load($freebusytyp_kurzbz);
@@ -52,9 +52,9 @@ class Freebusytyp extends APIv1_Controller
*/
public function postFreebusytyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['freebusytyp_kurzbz']))
+ if (isset($this->post()['freebusytyp_kurzbz']))
{
$result = $this->FreebusytypModel->update($this->post()['freebusytyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Kontakt.php b/application/controllers/api/v1/person/Kontakt.php
index 759f69120..cc5febfdd 100644
--- a/application/controllers/api/v1/person/Kontakt.php
+++ b/application/controllers/api/v1/person/Kontakt.php
@@ -13,7 +13,7 @@
*/
// ------------------------------------------------------------------------
-defined('BASEPATH') || exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
class Kontakt extends APIv1_Controller
{
@@ -33,7 +33,7 @@ class Kontakt extends APIv1_Controller
{
$personID = $this->get("person_id");
- if(isset($personID))
+ if (isset($personID))
{
$result = $this->KontaktModel->loadWhere(array('person_id' => $personID));
@@ -49,9 +49,9 @@ class Kontakt extends APIv1_Controller
{
$post = $this->post();
- if(is_array($post))
+ if (is_array($post))
{
- if(isset($post['kontakt_id']))
+ if (isset($post['kontakt_id']))
{
$result = $this->KontaktModel->update($post['kontakt_id'], $post);
}
diff --git a/application/controllers/api/v1/person/Kontaktmedium.php b/application/controllers/api/v1/person/Kontaktmedium.php
index f12db34c5..483ad7e2d 100644
--- a/application/controllers/api/v1/person/Kontaktmedium.php
+++ b/application/controllers/api/v1/person/Kontaktmedium.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kontaktmedium extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Kontaktmedium extends APIv1_Controller
{
$kontaktmedium_kurzbz = $this->get('kontaktmedium_kurzbz');
- if(isset($kontaktmedium_kurzbz))
+ if (isset($kontaktmedium_kurzbz))
{
$result = $this->KontaktmediumModel->load($kontaktmedium_kurzbz);
@@ -52,9 +52,9 @@ class Kontaktmedium extends APIv1_Controller
*/
public function postKontaktmedium()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['kontaktmedium_kurzbz']))
+ if (isset($this->post()['kontaktmedium_kurzbz']))
{
$result = $this->KontaktmediumModel->update($this->post()['kontaktmedium_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Kontakttyp.php b/application/controllers/api/v1/person/Kontakttyp.php
index a663d03cc..ef6edd8ea 100644
--- a/application/controllers/api/v1/person/Kontakttyp.php
+++ b/application/controllers/api/v1/person/Kontakttyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kontakttyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Kontakttyp extends APIv1_Controller
{
$kontakttyp = $this->get('kontakttyp');
- if(isset($kontakttyp))
+ if (isset($kontakttyp))
{
$result = $this->KontakttypModel->load($kontakttyp);
@@ -52,9 +52,9 @@ class Kontakttyp extends APIv1_Controller
*/
public function postKontakttyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['kontakttyp']))
+ if (isset($this->post()['kontakttyp']))
{
$result = $this->KontakttypModel->update($this->post()['kontakttyp'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Notiz.php b/application/controllers/api/v1/person/Notiz.php
index 82711fc32..537d13979 100644
--- a/application/controllers/api/v1/person/Notiz.php
+++ b/application/controllers/api/v1/person/Notiz.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notiz extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Notiz extends APIv1_Controller
{
$notizID = $this->get('notiz_id');
- if(isset($notizID))
+ if (isset($notizID))
{
$result = $this->NotizModel->load($notizID);
@@ -52,9 +52,9 @@ class Notiz extends APIv1_Controller
*/
public function postNotiz()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['notiz_id']))
+ if (isset($this->post()['notiz_id']))
{
$result = $this->NotizModel->update($this->post()['notiz_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Notizzuordnung.php b/application/controllers/api/v1/person/Notizzuordnung.php
index a86a32aa4..05494b50e 100644
--- a/application/controllers/api/v1/person/Notizzuordnung.php
+++ b/application/controllers/api/v1/person/Notizzuordnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Notizzuordnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Notizzuordnung extends APIv1_Controller
{
$notizzuordnungID = $this->get('notizzuordnung_id');
- if(isset($notizzuordnungID))
+ if (isset($notizzuordnungID))
{
$result = $this->NotizzuordnungModel->load($notizzuordnungID);
@@ -52,9 +52,9 @@ class Notizzuordnung extends APIv1_Controller
*/
public function postNotizzuordnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['notizzuordnung_id']))
+ if (isset($this->post()['notizzuordnung_id']))
{
$result = $this->NotizzuordnungModel->update($this->post()['notizzuordnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/person/Person.php b/application/controllers/api/v1/person/Person.php
index 9ffc14d45..2c1426d96 100644
--- a/application/controllers/api/v1/person/Person.php
+++ b/application/controllers/api/v1/person/Person.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Person extends APIv1_Controller
{
@@ -37,17 +37,17 @@ class Person extends APIv1_Controller
$code = $this->get('code');
$email = $this->get('email');
- if(isset($code) || isset($email) || isset($personID))
+ if (isset($code) || isset($email) || isset($personID))
{
- if(isset($code) && isset($email))
+ if (isset($code) && isset($email))
{
$result = $this->PersonModel->addJoin('public.tbl_kontakt', 'person_id');
- if($result->error == EXIT_SUCCESS)
+ if ($result->error == EXIT_SUCCESS)
{
$result = $this->PersonModel->loadWhere(array('zugangscode' => $code, 'kontakt' => $email));
}
}
- elseif(isset($code))
+ elseif (isset($code))
{
$result = $this->PersonModel->loadWhere(array('zugangscode' => $code));
}
@@ -69,9 +69,9 @@ class Person extends APIv1_Controller
*/
public function postPerson()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['person_id']))
+ if (isset($this->post()['person_id']))
{
$result = $this->PersonModel->update($this->post()['person_id'], $this->post());
}
@@ -96,7 +96,7 @@ class Person extends APIv1_Controller
$email = $this->get('email');
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
- if(isset($email))
+ if (isset($email))
{
$result = $this->PersonModel->checkBewerbung($email, $studiensemester_kurzbz);
@@ -110,7 +110,7 @@ class Person extends APIv1_Controller
private function _validate($person = NULL)
{
- if(!isset($person))
+ if (!isset($person))
{
return false;
}
@@ -122,43 +122,43 @@ class Person extends APIv1_Controller
$person['titelpost'] = trim($person['titelpost']);
$person['titelpre'] = trim($person['titelpre']);
- if(mb_strlen($person['sprache']) > 16)
+ if (mb_strlen($person['sprache']) > 16)
{
//$this->errormsg = 'Sprache darf nicht laenger als 16 Zeichen sein';
return false;
}
- if(mb_strlen($person['anrede']) > 16)
+ if (mb_strlen($person['anrede']) > 16)
{
//$this->errormsg = 'Anrede darf nicht laenger als 16 Zeichen sein';
return false;
}
- if(mb_strlen($person['titelpost']) > 32)
+ if (mb_strlen($person['titelpost']) > 32)
{
//$this->errormsg = 'Titelpost darf nicht laenger als 32 Zeichen sein';
return false;
}
- if(mb_strlen($person['titelpre']) > 64)
+ if (mb_strlen($person['titelpre']) > 64)
{
//$this->errormsg = 'Titelpre darf nicht laenger als 64 Zeichen sein';
return false;
}
- if(mb_strlen($person['nachname']) > 64)
+ if (mb_strlen($person['nachname']) > 64)
{
//$this->errormsg = 'Nachname darf nicht laenger als 64 Zeichen sein';
return false;
}
- if($person['nachname'] == '' || is_null($person['nachname']))
+ if ($person['nachname'] == '' || is_null($person['nachname']))
{
//$this->errormsg = 'Nachname muss eingegeben werden';
return false;
}
- if(mb_strlen($person['vorname']) > 32)
+ if (mb_strlen($person['vorname']) > 32)
{
//$this->errormsg = 'Vorname darf nicht laenger als 32 Zeichen sein';
return false;
}
- if(mb_strlen($person['vornamen']) > 128)
+ if (mb_strlen($person['vornamen']) > 128)
{
//$this->errormsg = 'Vornamen darf nicht laenger als 128 Zeichen sein';
return false;
@@ -169,36 +169,36 @@ class Person extends APIv1_Controller
//$this->errormsg = "Geburtsdatum muss eingegeben werden\n";
return false;
} */
- if(mb_strlen($person['gebort']) > 128)
+ if (mb_strlen($person['gebort']) > 128)
{
//$this->errormsg = 'Geburtsort darf nicht laenger als 128 Zeichen sein';
return false;
}
- if(mb_strlen($person['homepage']) > 256)
+ if (mb_strlen($person['homepage']) > 256)
{
//$this->errormsg = 'Homepage darf nicht laenger als 256 Zeichen sein';
return false;
}
- if(mb_strlen($person['svnr']) > 16)
+ if (mb_strlen($person['svnr']) > 16)
{
//$this->errormsg = 'SVNR darf nicht laenger als 16 Zeichen sein';
return false;
}
- if(mb_strlen($person['matr_nr']) > 32)
+ if (mb_strlen($person['matr_nr']) > 32)
{
//$this->errormsg = 'Matrikelnummer darf nicht laenger als 32 Zeichen sein';
return false;
}
- if($person['svnr'] != '' && mb_strlen($person['svnr']) != 16 && mb_strlen($person['svnr']) != 10)
+ if ($person['svnr'] != '' && mb_strlen($person['svnr']) != 16 && mb_strlen($person['svnr']) != 10)
{
//$this->errormsg = 'SVNR muss 10 oder 16 Zeichen lang sein';
return false;
}
- if($person['svnr'] != '' && mb_strlen($person['svnr']) == 10)
+ if ($person['svnr'] != '' && mb_strlen($person['svnr']) == 10)
{
//SVNR mit Pruefziffer pruefen
//Die 4. Stelle in der SVNR ist die Pruefziffer
@@ -207,27 +207,27 @@ class Person extends APIv1_Controller
$gewichtung = array(3, 7, 9, 0, 5, 8, 4, 2, 1, 6);
$erg = 0;
//Quersumme bilden
- for($i = 0; $i < 10; $i++)
+ for ($i = 0; $i < 10; $i++)
{
$erg += $gewichtung[$i] * $person['svnr']{$i};
}
- if($person['svnr']{3} != ($erg % 11)) //Vergleichen der Pruefziffer mit Quersumme Modulo 11
+ if ($person['svnr']{3} != ($erg % 11)) //Vergleichen der Pruefziffer mit Quersumme Modulo 11
{
//$this->errormsg = 'SVNR ist ungueltig';
return false;
}
}
- if($person['svnr'] != '')
+ if ($person['svnr'] != '')
{
//Pruefen ob bereits ein Eintrag mit dieser SVNR vorhanden ist
$qry = "SELECT person_id FROM public.tbl_person WHERE svnr=" . $person['svnr'];
- if(db_query($qry))
+ if (db_query($qry))
{
- if($row = db_fetch_object())
+ if ($row = db_fetch_object())
{
- if($row->person_id != $person['person_id'])
+ if ($row->person_id != $person['person_id'])
{
//$this->errormsg = 'Es existiert bereits eine Person mit dieser SVNR! Daten wurden NICHT gepeichert.';
return false;
@@ -236,72 +236,72 @@ class Person extends APIv1_Controller
}
}
- if(mb_strlen($person['ersatzkennzeichen']) > 10)
+ if (mb_strlen($person['ersatzkennzeichen']) > 10)
{
//$this->errormsg = 'Ersatzkennzeichen darf nicht laenger als 10 Zeichen sein';
return false;
}
- if(mb_strlen($person['familienstand']) > 1)
+ if (mb_strlen($person['familienstand']) > 1)
{
//$this->errormsg = 'Familienstand ist ungueltig';
return false;
}
- if($person['anzahlkinder'] != '' && !is_numeric($person['anzahlkinder']))
+ if ($person['anzahlkinder'] != '' && !is_numeric($person['anzahlkinder']))
{
//$this->errormsg = 'Anzahl der Kinder ist ungueltig';
return false;
}
- if($person['aktiv'] != "t" && $person['aktiv'] != "f")
+ if ($person['aktiv'] != "t" && $person['aktiv'] != "f")
{
//$this->errormsg = 'Aktiv ist ungueltig';
return false;
}
- if(!isset($person['person_id']) && mb_strlen($person['insertvon']) > 32)
+ if (!isset($person['person_id']) && mb_strlen($person['insertvon']) > 32)
{
//$this->errormsg = 'Insertvon darf nicht laenger als 32 Zeichen sein';
return false;
}
- if(mb_strlen($person['updatevon']) > 32)
+ if (mb_strlen($person['updatevon']) > 32)
{
//$this->errormsg = 'Updatevon darf nicht laenger als 32 Zeichen sein';
return false;
}
- /*if($person['ext_id'] != '' && !is_numeric($person['ext_id']))
+ /*if ($person['ext_id'] != '' && !is_numeric($person['ext_id']))
{
//$this->errormsg = 'Ext_ID ist keine gueltige Zahl';
return false;
}*/
- if(mb_strlen($person['geschlecht']) > 1)
+ if (mb_strlen($person['geschlecht']) > 1)
{
//$this->errormsg = 'Geschlecht darf nicht laenger als 1 Zeichen sein';
return false;
}
- if(mb_strlen($person['geburtsnation']) > 3)
+ if (mb_strlen($person['geburtsnation']) > 3)
{
//$this->errormsg = 'Geburtsnation darf nicht laenger als 3 Zeichen sein';
return false;
}
- if(mb_strlen($person['staatsbuergerschaft']) > 3)
+ if (mb_strlen($person['staatsbuergerschaft']) > 3)
{
//$this->errormsg = 'Staatsbuergerschaft darf nicht laenger als 3 Zeichen sein';
return false;
}
- if($person['geschlecht'] != 'm' && $person['geschlecht'] != 'w' && $person['geschlecht'] != 'u')
+ if ($person['geschlecht'] != 'm' && $person['geschlecht'] != 'w' && $person['geschlecht'] != 'u')
{
//$this->errormsg = 'Geschlecht muss w, m oder u sein!';
return false;
}
//Pruefen ob das Geburtsdatum mit der SVNR uebereinstimmt.
- if($person['svnr'] != '' && $person['gebdatum'] != '')
+ if ($person['svnr'] != '' && $person['gebdatum'] != '')
{
- if(mb_ereg("([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})", $person['gebdatum'], $regs))
+ if (mb_ereg("([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})", $person['gebdatum'], $regs))
{
//$day = sprintf('%02s',$regs[1]);
//$month = sprintf('%02s',$regs[2]);
//$year = mb_substr($regs[3],2,2);
}
- elseif(mb_ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})", $person['gebdatum'], $regs))
+ elseif (mb_ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})", $person['gebdatum'], $regs))
{
//$day = sprintf('%02s',$regs[3]);
//$month = sprintf('%02s',$regs[2]);
diff --git a/application/controllers/api/v1/project/Aktivitaet.php b/application/controllers/api/v1/project/Aktivitaet.php
index 42b979927..685c2c212 100644
--- a/application/controllers/api/v1/project/Aktivitaet.php
+++ b/application/controllers/api/v1/project/Aktivitaet.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aktivitaet extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aktivitaet extends APIv1_Controller
{
$aktivitaet_kurzbz = $this->get('aktivitaet_kurzbz');
- if(isset($aktivitaet_kurzbz))
+ if (isset($aktivitaet_kurzbz))
{
$result = $this->AktivitaetModel->load($aktivitaet_kurzbz);
@@ -52,9 +52,9 @@ class Aktivitaet extends APIv1_Controller
*/
public function postAktivitaet()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aktivitaet_kurzbz']))
+ if (isset($this->post()['aktivitaet_kurzbz']))
{
$result = $this->AktivitaetModel->update($this->post()['aktivitaet_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Aufwandstyp.php b/application/controllers/api/v1/project/Aufwandstyp.php
index 45d69d022..02cb6d5ba 100644
--- a/application/controllers/api/v1/project/Aufwandstyp.php
+++ b/application/controllers/api/v1/project/Aufwandstyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Aufwandstyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Aufwandstyp extends APIv1_Controller
{
$aufwandstyp_kurzbz = $this->get('aufwandstyp_kurzbz');
- if(isset($aufwandstyp_kurzbz))
+ if (isset($aufwandstyp_kurzbz))
{
$result = $this->AufwandstypModel->load($aufwandstyp_kurzbz);
@@ -52,9 +52,9 @@ class Aufwandstyp extends APIv1_Controller
*/
public function postAufwandstyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['aufwandstyp_kurzbz']))
+ if (isset($this->post()['aufwandstyp_kurzbz']))
{
$result = $this->AufwandstypModel->update($this->post()['aufwandstyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Projekt.php b/application/controllers/api/v1/project/Projekt.php
index c37456b3e..244b170d0 100644
--- a/application/controllers/api/v1/project/Projekt.php
+++ b/application/controllers/api/v1/project/Projekt.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projekt extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projekt extends APIv1_Controller
{
$projekt_kurzbz = $this->get('projekt_kurzbz');
- if(isset($projekt_kurzbz))
+ if (isset($projekt_kurzbz))
{
$result = $this->ProjektModel->load($projekt_kurzbz);
@@ -52,9 +52,9 @@ class Projekt extends APIv1_Controller
*/
public function postProjekt()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projekt_kurzbz']))
+ if (isset($this->post()['projekt_kurzbz']))
{
$result = $this->ProjektModel->update($this->post()['projekt_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Projekt_ressource.php b/application/controllers/api/v1/project/Projekt_ressource.php
index 37eecc0f4..688546dfe 100644
--- a/application/controllers/api/v1/project/Projekt_ressource.php
+++ b/application/controllers/api/v1/project/Projekt_ressource.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projekt_ressource extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projekt_ressource extends APIv1_Controller
{
$projekt_ressourceID = $this->get('projekt_ressource_id');
- if(isset($projekt_ressourceID))
+ if (isset($projekt_ressourceID))
{
$result = $this->Projekt_ressourceModel->load($projekt_ressourceID);
@@ -52,9 +52,9 @@ class Projekt_ressource extends APIv1_Controller
*/
public function postProjekt_ressource()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projekt_ressource_id']))
+ if (isset($this->post()['projekt_ressource_id']))
{
$result = $this->Projekt_ressourceModel->update($this->post()['projekt_ressource_id'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Projektphase.php b/application/controllers/api/v1/project/Projektphase.php
index 667ac6dd7..04007e0d4 100644
--- a/application/controllers/api/v1/project/Projektphase.php
+++ b/application/controllers/api/v1/project/Projektphase.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projektphase extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projektphase extends APIv1_Controller
{
$projektphaseID = $this->get('projektphase_id');
- if(isset($projektphaseID))
+ if (isset($projektphaseID))
{
$result = $this->ProjektphaseModel->load($projektphaseID);
@@ -52,9 +52,9 @@ class Projektphase extends APIv1_Controller
*/
public function postProjektphase()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projektphase_id']))
+ if (isset($this->post()['projektphase_id']))
{
$result = $this->ProjektphaseModel->update($this->post()['projektphase_id'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Projekttask.php b/application/controllers/api/v1/project/Projekttask.php
index 2c48e8ce8..30e78da3e 100644
--- a/application/controllers/api/v1/project/Projekttask.php
+++ b/application/controllers/api/v1/project/Projekttask.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Projekttask extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Projekttask extends APIv1_Controller
{
$projekttaskID = $this->get('projekttask_id');
- if(isset($projekttaskID))
+ if (isset($projekttaskID))
{
$result = $this->ProjekttaskModel->load($projekttaskID);
@@ -52,9 +52,9 @@ class Projekttask extends APIv1_Controller
*/
public function postProjekttask()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['projekttask_id']))
+ if (isset($this->post()['projekttask_id']))
{
$result = $this->ProjekttaskModel->update($this->post()['projekttask_id'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Ressource.php b/application/controllers/api/v1/project/Ressource.php
index 1d4060dd7..00e923435 100644
--- a/application/controllers/api/v1/project/Ressource.php
+++ b/application/controllers/api/v1/project/Ressource.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ressource extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Ressource extends APIv1_Controller
{
$ressourceID = $this->get('ressource_id');
- if(isset($ressourceID))
+ if (isset($ressourceID))
{
$result = $this->RessourceModel->load($ressourceID);
@@ -52,9 +52,9 @@ class Ressource extends APIv1_Controller
*/
public function postRessource()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ressource_id']))
+ if (isset($this->post()['ressource_id']))
{
$result = $this->RessourceModel->update($this->post()['ressource_id'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Scrumsprint.php b/application/controllers/api/v1/project/Scrumsprint.php
index a0338913d..4d64782fb 100644
--- a/application/controllers/api/v1/project/Scrumsprint.php
+++ b/application/controllers/api/v1/project/Scrumsprint.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Scrumsprint extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Scrumsprint extends APIv1_Controller
{
$scrumsprintID = $this->get('scrumsprint_id');
- if(isset($scrumsprintID))
+ if (isset($scrumsprintID))
{
$result = $this->ScrumsprintModel->load($scrumsprintID);
@@ -52,9 +52,9 @@ class Scrumsprint extends APIv1_Controller
*/
public function postScrumsprint()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['scrumsprint_id']))
+ if (isset($this->post()['scrumsprint_id']))
{
$result = $this->ScrumsprintModel->update($this->post()['scrumsprint_id'], $this->post());
}
diff --git a/application/controllers/api/v1/project/Scrumteam.php b/application/controllers/api/v1/project/Scrumteam.php
index aab41842b..440e66165 100644
--- a/application/controllers/api/v1/project/Scrumteam.php
+++ b/application/controllers/api/v1/project/Scrumteam.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Scrumteam extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Scrumteam extends APIv1_Controller
{
$scrumteam_kurzbz = $this->get('scrumteam_kurzbz');
- if(isset($scrumteam_kurzbz))
+ if (isset($scrumteam_kurzbz))
{
$result = $this->ScrumteamModel->load($scrumteam_kurzbz);
@@ -52,9 +52,9 @@ class Scrumteam extends APIv1_Controller
*/
public function postScrumteam()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['scrumteam_kurzbz']))
+ if (isset($this->post()['scrumteam_kurzbz']))
{
$result = $this->ScrumteamModel->update($this->post()['scrumteam_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Betriebsmittel.php b/application/controllers/api/v1/ressource/Betriebsmittel.php
index b57902e67..a827a3265 100644
--- a/application/controllers/api/v1/ressource/Betriebsmittel.php
+++ b/application/controllers/api/v1/ressource/Betriebsmittel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Betriebsmittel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Betriebsmittel extends APIv1_Controller
{
$betriebsmittelID = $this->get('betriebsmittel_id');
- if(isset($betriebsmittelID))
+ if (isset($betriebsmittelID))
{
$result = $this->BetriebsmittelModel->load($betriebsmittelID);
@@ -52,9 +52,9 @@ class Betriebsmittel extends APIv1_Controller
*/
public function postBetriebsmittel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betriebsmittel_id']))
+ if (isset($this->post()['betriebsmittel_id']))
{
$result = $this->BetriebsmittelModel->update($this->post()['betriebsmittel_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Betriebsmittelperson2.php b/application/controllers/api/v1/ressource/Betriebsmittelperson2.php
index 25c1c75a9..14baca485 100644
--- a/application/controllers/api/v1/ressource/Betriebsmittelperson2.php
+++ b/application/controllers/api/v1/ressource/Betriebsmittelperson2.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Betriebsmittelperson2 extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Betriebsmittelperson2 extends APIv1_Controller
{
$betriebsmittelpersonID = $this->get('betriebsmittelperson_id');
- if(isset($betriebsmittelpersonID))
+ if (isset($betriebsmittelpersonID))
{
$result = $this->BetriebsmittelpersonModel->load($betriebsmittelpersonID);
@@ -52,9 +52,9 @@ class Betriebsmittelperson2 extends APIv1_Controller
*/
public function postBetriebsmittelperson()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betriebsmittelperson_id']))
+ if (isset($this->post()['betriebsmittelperson_id']))
{
$result = $this->BetriebsmittelpersonModel->update($this->post()['betriebsmittelperson_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Betriebsmittelstatus.php b/application/controllers/api/v1/ressource/Betriebsmittelstatus.php
index 37dcb5abe..46d00c82c 100644
--- a/application/controllers/api/v1/ressource/Betriebsmittelstatus.php
+++ b/application/controllers/api/v1/ressource/Betriebsmittelstatus.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Betriebsmittelstatus extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Betriebsmittelstatus extends APIv1_Controller
{
$betriebsmittelstatus_kurzbz = $this->get('betriebsmittelstatus_kurzbz');
- if(isset($betriebsmittelstatus_kurzbz))
+ if (isset($betriebsmittelstatus_kurzbz))
{
$result = $this->BetriebsmittelstatusModel->load($betriebsmittelstatus_kurzbz);
@@ -52,9 +52,9 @@ class Betriebsmittelstatus extends APIv1_Controller
*/
public function postBetriebsmittelstatus()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betriebsmittelstatus_kurzbz']))
+ if (isset($this->post()['betriebsmittelstatus_kurzbz']))
{
$result = $this->BetriebsmittelstatusModel->update($this->post()['betriebsmittelstatus_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Betriebsmitteltyp.php b/application/controllers/api/v1/ressource/Betriebsmitteltyp.php
index 298fe41e4..e23ed16d5 100644
--- a/application/controllers/api/v1/ressource/Betriebsmitteltyp.php
+++ b/application/controllers/api/v1/ressource/Betriebsmitteltyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Betriebsmitteltyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Betriebsmitteltyp extends APIv1_Controller
{
$betriebsmitteltyp = $this->get('betriebsmitteltyp');
- if(isset($betriebsmitteltyp))
+ if (isset($betriebsmitteltyp))
{
$result = $this->BetriebsmitteltypModel->load($betriebsmitteltyp);
@@ -52,9 +52,9 @@ class Betriebsmitteltyp extends APIv1_Controller
*/
public function postBetriebsmitteltyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['betriebsmitteltyp']))
+ if (isset($this->post()['betriebsmitteltyp']))
{
$result = $this->BetriebsmitteltypModel->update($this->post()['betriebsmitteltyp'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Coodle.php b/application/controllers/api/v1/ressource/Coodle.php
index d938d3ed2..353828465 100644
--- a/application/controllers/api/v1/ressource/Coodle.php
+++ b/application/controllers/api/v1/ressource/Coodle.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Coodle extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Coodle extends APIv1_Controller
{
$coodleID = $this->get('coodle_id');
- if(isset($coodleID))
+ if (isset($coodleID))
{
$result = $this->CoodleModel->load($coodleID);
@@ -52,9 +52,9 @@ class Coodle extends APIv1_Controller
*/
public function postCoodle()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['coodle_id']))
+ if (isset($this->post()['coodle_id']))
{
$result = $this->CoodleModel->update($this->post()['coodle_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Erreichbarkeit.php b/application/controllers/api/v1/ressource/Erreichbarkeit.php
index 418151974..5a142757e 100644
--- a/application/controllers/api/v1/ressource/Erreichbarkeit.php
+++ b/application/controllers/api/v1/ressource/Erreichbarkeit.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Erreichbarkeit extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Erreichbarkeit extends APIv1_Controller
{
$erreichbarkeit_kurzbz = $this->get('erreichbarkeit_kurzbz');
- if(isset($erreichbarkeit_kurzbz))
+ if (isset($erreichbarkeit_kurzbz))
{
$result = $this->ErreichbarkeitModel->load($erreichbarkeit_kurzbz);
@@ -52,9 +52,9 @@ class Erreichbarkeit extends APIv1_Controller
*/
public function postErreichbarkeit()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['erreichbarkeit_kurzbz']))
+ if (isset($this->post()['erreichbarkeit_kurzbz']))
{
$result = $this->ErreichbarkeitModel->update($this->post()['erreichbarkeit_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Firma.php b/application/controllers/api/v1/ressource/Firma.php
index 14fab7838..64c33b344 100644
--- a/application/controllers/api/v1/ressource/Firma.php
+++ b/application/controllers/api/v1/ressource/Firma.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Firma extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Firma extends APIv1_Controller
{
$firmaID = $this->get('firma_id');
- if(isset($firmaID))
+ if (isset($firmaID))
{
$result = $this->FirmaModel->load($firmaID);
@@ -52,9 +52,9 @@ class Firma extends APIv1_Controller
*/
public function postFirma()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['firma_id']))
+ if (isset($this->post()['firma_id']))
{
$result = $this->FirmaModel->update($this->post()['firma_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Firmatag.php b/application/controllers/api/v1/ressource/Firmatag.php
index 27758fd16..3fd939652 100644
--- a/application/controllers/api/v1/ressource/Firmatag.php
+++ b/application/controllers/api/v1/ressource/Firmatag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Firmatag extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Firmatag extends APIv1_Controller
$tag = $this->get('tag');
$firma_id = $this->get('firma_id');
- if(isset($tag) && isset($firma_id))
+ if (isset($tag) && isset($firma_id))
{
$result = $this->FirmatagModel->load(array($tag, $firma_id));
@@ -53,9 +53,9 @@ class Firmatag extends APIv1_Controller
*/
public function postFirmatag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['tag']) && isset($this->post()['firma_id']))
+ if (isset($this->post()['tag']) && isset($this->post()['firma_id']))
{
$result = $this->FirmatagModel->update(array($this->post()['tag'], $this->post()['firma_id']), $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Firmentyp.php b/application/controllers/api/v1/ressource/Firmentyp.php
index abd58e704..3261ccb39 100644
--- a/application/controllers/api/v1/ressource/Firmentyp.php
+++ b/application/controllers/api/v1/ressource/Firmentyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Firmentyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Firmentyp extends APIv1_Controller
{
$firmentyp_kurzbz = $this->get('firmentyp_kurzbz');
- if(isset($firmentyp_kurzbz))
+ if (isset($firmentyp_kurzbz))
{
$result = $this->FirmentypModel->load($firmentyp_kurzbz);
@@ -52,9 +52,9 @@ class Firmentyp extends APIv1_Controller
*/
public function postFirmentyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['firmentyp_kurzbz']))
+ if (isset($this->post()['firmentyp_kurzbz']))
{
$result = $this->FirmentypModel->update($this->post()['firmentyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Funktion.php b/application/controllers/api/v1/ressource/Funktion.php
index 57caf10bd..3e33c3c20 100644
--- a/application/controllers/api/v1/ressource/Funktion.php
+++ b/application/controllers/api/v1/ressource/Funktion.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Funktion extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Funktion extends APIv1_Controller
{
$funktion_kurzbz = $this->get('funktion_kurzbz');
- if(isset($funktion_kurzbz))
+ if (isset($funktion_kurzbz))
{
$result = $this->FunktionModel->load($funktion_kurzbz);
@@ -52,9 +52,9 @@ class Funktion extends APIv1_Controller
*/
public function postFunktion()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['funktion_kurzbz']))
+ if (isset($this->post()['funktion_kurzbz']))
{
$result = $this->FunktionModel->update($this->post()['funktion_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Lehrmittel.php b/application/controllers/api/v1/ressource/Lehrmittel.php
index faa92346a..d874d53e5 100644
--- a/application/controllers/api/v1/ressource/Lehrmittel.php
+++ b/application/controllers/api/v1/ressource/Lehrmittel.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Lehrmittel extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Lehrmittel extends APIv1_Controller
{
$lehrmittel_kurzbz = $this->get('lehrmittel_kurzbz');
- if(isset($lehrmittel_kurzbz))
+ if (isset($lehrmittel_kurzbz))
{
$result = $this->LehrmittelModel->load($lehrmittel_kurzbz);
@@ -52,9 +52,9 @@ class Lehrmittel extends APIv1_Controller
*/
public function postLehrmittel()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['lehrmittel_kurzbz']))
+ if (isset($this->post()['lehrmittel_kurzbz']))
{
$result = $this->LehrmittelModel->update($this->post()['lehrmittel_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Mitarbeiter.php b/application/controllers/api/v1/ressource/Mitarbeiter.php
index afce5fe00..8578ab12d 100644
--- a/application/controllers/api/v1/ressource/Mitarbeiter.php
+++ b/application/controllers/api/v1/ressource/Mitarbeiter.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Mitarbeiter extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Mitarbeiter extends APIv1_Controller
{
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
- if(isset($mitarbeiter_uid))
+ if (isset($mitarbeiter_uid))
{
$result = $this->MitarbeiterModel->load($mitarbeiter_uid);
@@ -52,9 +52,9 @@ class Mitarbeiter extends APIv1_Controller
*/
public function postMitarbeiter()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['mitarbeiter_uid']))
+ if (isset($this->post()['mitarbeiter_uid']))
{
$result = $this->MitarbeiterModel->update($this->post()['mitarbeiter_uid'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Ort.php b/application/controllers/api/v1/ressource/Ort.php
index d52191721..022db2281 100644
--- a/application/controllers/api/v1/ressource/Ort.php
+++ b/application/controllers/api/v1/ressource/Ort.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ort extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Ort extends APIv1_Controller
{
$ort_kurzbz = $this->get('ort_kurzbz');
- if(isset($ort_kurzbz))
+ if (isset($ort_kurzbz))
{
$result = $this->OrtModel->load($ort_kurzbz);
@@ -52,9 +52,9 @@ class Ort extends APIv1_Controller
*/
public function postOrt()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ort_kurzbz']))
+ if (isset($this->post()['ort_kurzbz']))
{
$result = $this->OrtModel->update($this->post()['ort_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Ortraumtyp.php b/application/controllers/api/v1/ressource/Ortraumtyp.php
index 460841e1d..9d4cbd2db 100644
--- a/application/controllers/api/v1/ressource/Ortraumtyp.php
+++ b/application/controllers/api/v1/ressource/Ortraumtyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ortraumtyp extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Ortraumtyp extends APIv1_Controller
$hierarchie = $this->get('hierarchie');
$ort_kurzbz = $this->get('ort_kurzbz');
- if(isset($hierarchie) && isset($ort_kurzbz))
+ if (isset($hierarchie) && isset($ort_kurzbz))
{
$result = $this->OrtraumtypModel->load(array($hierarchie, $ort_kurzbz));
@@ -53,9 +53,9 @@ class Ortraumtyp extends APIv1_Controller
*/
public function postOrtraumtyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['hierarchie']) && isset($this->post()['ort_kurzbz']))
+ if (isset($this->post()['hierarchie']) && isset($this->post()['ort_kurzbz']))
{
$result = $this->OrtraumtypModel->update(array($this->post()['hierarchie'], $this->post()['ort_kurzbz']), $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Personfunktionstandort.php b/application/controllers/api/v1/ressource/Personfunktionstandort.php
index c1af35f92..e4c204716 100644
--- a/application/controllers/api/v1/ressource/Personfunktionstandort.php
+++ b/application/controllers/api/v1/ressource/Personfunktionstandort.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Personfunktionstandort extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Personfunktionstandort extends APIv1_Controller
{
$personfunktionstandortID = $this->get('personfunktionstandort_id');
- if(isset($personfunktionstandortID))
+ if (isset($personfunktionstandortID))
{
$result = $this->PersonfunktionstandortModel->load($personfunktionstandortID);
@@ -52,9 +52,9 @@ class Personfunktionstandort extends APIv1_Controller
*/
public function postPersonfunktionstandort()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['personfunktionstandort_id']))
+ if (isset($this->post()['personfunktionstandort_id']))
{
$result = $this->PersonfunktionstandortModel->update($this->post()['personfunktionstandort_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Raumtyp.php b/application/controllers/api/v1/ressource/Raumtyp.php
index 5aa506797..39751089d 100644
--- a/application/controllers/api/v1/ressource/Raumtyp.php
+++ b/application/controllers/api/v1/ressource/Raumtyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Raumtyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Raumtyp extends APIv1_Controller
{
$raumtyp_kurzbz = $this->get('raumtyp_kurzbz');
- if(isset($raumtyp_kurzbz))
+ if (isset($raumtyp_kurzbz))
{
$result = $this->RaumtypModel->load($raumtyp_kurzbz);
@@ -52,9 +52,9 @@ class Raumtyp extends APIv1_Controller
*/
public function postRaumtyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['raumtyp_kurzbz']))
+ if (isset($this->post()['raumtyp_kurzbz']))
{
$result = $this->RaumtypModel->update($this->post()['raumtyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Reservierung.php b/application/controllers/api/v1/ressource/Reservierung.php
index 61d88d8e4..8073e7c04 100644
--- a/application/controllers/api/v1/ressource/Reservierung.php
+++ b/application/controllers/api/v1/ressource/Reservierung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Reservierung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Reservierung extends APIv1_Controller
{
$reservierungID = $this->get('reservierung_id');
- if(isset($reservierungID))
+ if (isset($reservierungID))
{
$result = $this->ReservierungModel->load($reservierungID);
@@ -52,9 +52,9 @@ class Reservierung extends APIv1_Controller
*/
public function postReservierung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['reservierung_id']))
+ if (isset($this->post()['reservierung_id']))
{
$result = $this->ReservierungModel->update($this->post()['reservierung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Resturlaub.php b/application/controllers/api/v1/ressource/Resturlaub.php
index 9e43ee92f..16e2b2753 100644
--- a/application/controllers/api/v1/ressource/Resturlaub.php
+++ b/application/controllers/api/v1/ressource/Resturlaub.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Resturlaub extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Resturlaub extends APIv1_Controller
{
$resturlaubID = $this->get('resturlaub_id');
- if(isset($resturlaubID))
+ if (isset($resturlaubID))
{
$result = $this->ResturlaubModel->load($resturlaubID);
@@ -52,9 +52,9 @@ class Resturlaub extends APIv1_Controller
*/
public function postResturlaub()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['resturlaub_id']))
+ if (isset($this->post()['resturlaub_id']))
{
$result = $this->ResturlaubModel->update($this->post()['resturlaub_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Stunde.php b/application/controllers/api/v1/ressource/Stunde.php
index f7437efc4..5470b2fca 100644
--- a/application/controllers/api/v1/ressource/Stunde.php
+++ b/application/controllers/api/v1/ressource/Stunde.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Stunde extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Stunde extends APIv1_Controller
{
$stunde = $this->get('stunde');
- if(isset($stunde))
+ if (isset($stunde))
{
$result = $this->StundeModel->load($stunde);
@@ -52,9 +52,9 @@ class Stunde extends APIv1_Controller
*/
public function postStunde()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['stunde']))
+ if (isset($this->post()['stunde']))
{
$result = $this->StundeModel->update($this->post()['stunde'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Stundenplan.php b/application/controllers/api/v1/ressource/Stundenplan.php
index 5e780be00..a22c90615 100644
--- a/application/controllers/api/v1/ressource/Stundenplan.php
+++ b/application/controllers/api/v1/ressource/Stundenplan.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Stundenplan extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Stundenplan extends APIv1_Controller
{
$stundenplanID = $this->get('stundenplan_id');
- if(isset($stundenplanID))
+ if (isset($stundenplanID))
{
$result = $this->StundenplanModel->load($stundenplanID);
@@ -52,9 +52,9 @@ class Stundenplan extends APIv1_Controller
*/
public function postStundenplan()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['stundenplan_id']))
+ if (isset($this->post()['stundenplan_id']))
{
$result = $this->StundenplanModel->update($this->post()['stundenplan_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Stundenplandev.php b/application/controllers/api/v1/ressource/Stundenplandev.php
index 146369fdc..aa6f7fce8 100644
--- a/application/controllers/api/v1/ressource/Stundenplandev.php
+++ b/application/controllers/api/v1/ressource/Stundenplandev.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Stundenplandev extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Stundenplandev extends APIv1_Controller
{
$stundenplandevID = $this->get('stundenplandev_id');
- if(isset($stundenplandevID))
+ if (isset($stundenplandevID))
{
$result = $this->StundenplandevModel->load($stundenplandevID);
@@ -52,9 +52,9 @@ class Stundenplandev extends APIv1_Controller
*/
public function postStundenplandev()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['stundenplandev_id']))
+ if (isset($this->post()['stundenplandev_id']))
{
$result = $this->StundenplandevModel->update($this->post()['stundenplandev_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Zeitaufzeichnung.php b/application/controllers/api/v1/ressource/Zeitaufzeichnung.php
index fd74027da..275f5704a 100644
--- a/application/controllers/api/v1/ressource/Zeitaufzeichnung.php
+++ b/application/controllers/api/v1/ressource/Zeitaufzeichnung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeitaufzeichnung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zeitaufzeichnung extends APIv1_Controller
{
$zeitaufzeichnungID = $this->get('zeitaufzeichnung_id');
- if(isset($zeitaufzeichnungID))
+ if (isset($zeitaufzeichnungID))
{
$result = $this->ZeitaufzeichnungModel->load($zeitaufzeichnungID);
@@ -52,9 +52,9 @@ class Zeitaufzeichnung extends APIv1_Controller
*/
public function postZeitaufzeichnung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zeitaufzeichnung_id']))
+ if (isset($this->post()['zeitaufzeichnung_id']))
{
$result = $this->ZeitaufzeichnungModel->update($this->post()['zeitaufzeichnung_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Zeitfenster.php b/application/controllers/api/v1/ressource/Zeitfenster.php
index 1ffc5f2f1..c1b1ac09c 100644
--- a/application/controllers/api/v1/ressource/Zeitfenster.php
+++ b/application/controllers/api/v1/ressource/Zeitfenster.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeitfenster extends APIv1_Controller
{
@@ -38,7 +38,7 @@ class Zeitfenster extends APIv1_Controller
$ort_kurzbz = $this->get('ort_kurzbz');
$stunde = $this->get('stunde');
- if(isset($wochentag) && isset($studiengang_kz) && isset($ort_kurzbz) && isset($stunde))
+ if (isset($wochentag) && isset($studiengang_kz) && isset($ort_kurzbz) && isset($stunde))
{
$result = $this->ZeitfensterModel->load(array($wochentag, $studiengang_kz, $ort_kurzbz, $stunde));
@@ -55,9 +55,9 @@ class Zeitfenster extends APIv1_Controller
*/
public function postZeitfenster()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['wochentag']) && isset($this->post()['studiengang_kz']) &&
+ if (isset($this->post()['wochentag']) && isset($this->post()['studiengang_kz']) &&
isset($this->post()['ort_kurzbz']) && isset($this->post()['stunde']))
{
$pksArray = array($this->post()['wochentag'],
diff --git a/application/controllers/api/v1/ressource/Zeitsperre.php b/application/controllers/api/v1/ressource/Zeitsperre.php
index 3310fd394..42eaa9a32 100644
--- a/application/controllers/api/v1/ressource/Zeitsperre.php
+++ b/application/controllers/api/v1/ressource/Zeitsperre.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeitsperre extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zeitsperre extends APIv1_Controller
{
$zeitsperreID = $this->get('zeitsperre_id');
- if(isset($zeitsperreID))
+ if (isset($zeitsperreID))
{
$result = $this->ZeitsperreModel->load($zeitsperreID);
@@ -52,9 +52,9 @@ class Zeitsperre extends APIv1_Controller
*/
public function postZeitsperre()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zeitsperre_id']))
+ if (isset($this->post()['zeitsperre_id']))
{
$result = $this->ZeitsperreModel->update($this->post()['zeitsperre_id'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Zeitsperretyp.php b/application/controllers/api/v1/ressource/Zeitsperretyp.php
index 8fca4cd09..dae492cbe 100644
--- a/application/controllers/api/v1/ressource/Zeitsperretyp.php
+++ b/application/controllers/api/v1/ressource/Zeitsperretyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeitsperretyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Zeitsperretyp extends APIv1_Controller
{
$zeitsperretyp_kurzbz = $this->get('zeitsperretyp_kurzbz');
- if(isset($zeitsperretyp_kurzbz))
+ if (isset($zeitsperretyp_kurzbz))
{
$result = $this->ZeitsperretypModel->load($zeitsperretyp_kurzbz);
@@ -52,9 +52,9 @@ class Zeitsperretyp extends APIv1_Controller
*/
public function postZeitsperretyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['zeitsperretyp_kurzbz']))
+ if (isset($this->post()['zeitsperretyp_kurzbz']))
{
$result = $this->ZeitsperretypModel->update($this->post()['zeitsperretyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/ressource/Zeitwunsch.php b/application/controllers/api/v1/ressource/Zeitwunsch.php
index 79ce86925..45c541b54 100644
--- a/application/controllers/api/v1/ressource/Zeitwunsch.php
+++ b/application/controllers/api/v1/ressource/Zeitwunsch.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Zeitwunsch extends APIv1_Controller
{
@@ -37,7 +37,7 @@ class Zeitwunsch extends APIv1_Controller
$mitarbeiter_uid = $this->get('mitarbeiter_uid');
$stunde = $this->get('stunde');
- if(isset($tag) && isset($mitarbeiter_uid) && isset($stunde))
+ if (isset($tag) && isset($mitarbeiter_uid) && isset($stunde))
{
$result = $this->ZeitwunschModel->load(array($tag, $mitarbeiter_uid, $stunde));
@@ -54,9 +54,9 @@ class Zeitwunsch extends APIv1_Controller
*/
public function postZeitwunsch()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['tag']) && isset($this->post()['mitarbeiter_uid']) && isset($this->post()['stunde']))
+ if (isset($this->post()['tag']) && isset($this->post()['mitarbeiter_uid']) && isset($this->post()['stunde']))
{
$pksArray = array($this->post()['tag'],
$this->post()['mitarbeiter_uid'],
diff --git a/application/controllers/api/v1/system/Appdaten.php b/application/controllers/api/v1/system/Appdaten.php
index 2d5adb28f..5d45d8512 100644
--- a/application/controllers/api/v1/system/Appdaten.php
+++ b/application/controllers/api/v1/system/Appdaten.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Appdaten extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Appdaten extends APIv1_Controller
{
$appdatenID = $this->get('appdaten_id');
- if(isset($appdatenID))
+ if (isset($appdatenID))
{
$result = $this->AppdatenModel->load($appdatenID);
@@ -52,9 +52,9 @@ class Appdaten extends APIv1_Controller
*/
public function postAppdaten()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['appdaten_id']))
+ if (isset($this->post()['appdaten_id']))
{
$result = $this->AppdatenModel->update($this->post()['appdaten_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Benutzerrolle.php b/application/controllers/api/v1/system/Benutzerrolle.php
index 74f754c39..e1aa8c9b7 100644
--- a/application/controllers/api/v1/system/Benutzerrolle.php
+++ b/application/controllers/api/v1/system/Benutzerrolle.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Benutzerrolle extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Benutzerrolle extends APIv1_Controller
{
$benutzerrolleID = $this->get('benutzerrolle_id');
- if(isset($benutzerrolleID))
+ if (isset($benutzerrolleID))
{
$result = $this->BenutzerrolleModel->load($benutzerrolleID);
@@ -52,9 +52,9 @@ class Benutzerrolle extends APIv1_Controller
*/
public function postBenutzerrolle()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['benutzerrolle_id']))
+ if (isset($this->post()['benutzerrolle_id']))
{
$result = $this->BenutzerrolleModel->update($this->post()['benutzerrolle_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Berechtigung.php b/application/controllers/api/v1/system/Berechtigung.php
index af6aa8fb9..54d639fa3 100644
--- a/application/controllers/api/v1/system/Berechtigung.php
+++ b/application/controllers/api/v1/system/Berechtigung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Berechtigung extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Berechtigung extends APIv1_Controller
{
$berechtigung_kurzbz = $this->get('berechtigung_kurzbz');
- if(isset($berechtigung_kurzbz))
+ if (isset($berechtigung_kurzbz))
{
$result = $this->BerechtigungModel->load($berechtigung_kurzbz);
@@ -52,9 +52,9 @@ class Berechtigung extends APIv1_Controller
*/
public function postBerechtigung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['berechtigung_kurzbz']))
+ if (isset($this->post()['berechtigung_kurzbz']))
{
$result = $this->BerechtigungModel->update($this->post()['berechtigung_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Cronjob.php b/application/controllers/api/v1/system/Cronjob.php
index ef2b36374..82c63ed81 100644
--- a/application/controllers/api/v1/system/Cronjob.php
+++ b/application/controllers/api/v1/system/Cronjob.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Cronjob extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Cronjob extends APIv1_Controller
{
$cronjobID = $this->get('cronjob_id');
- if(isset($cronjobID))
+ if (isset($cronjobID))
{
$result = $this->CronjobModel->load($cronjobID);
@@ -52,9 +52,9 @@ class Cronjob extends APIv1_Controller
*/
public function postCronjob()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['cronjob_id']))
+ if (isset($this->post()['cronjob_id']))
{
$result = $this->CronjobModel->update($this->post()['cronjob_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Filter.php b/application/controllers/api/v1/system/Filter.php
index 742287c34..49eac7d7e 100644
--- a/application/controllers/api/v1/system/Filter.php
+++ b/application/controllers/api/v1/system/Filter.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Filter extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Filter extends APIv1_Controller
{
$filterID = $this->get('filter_id');
- if(isset($filterID))
+ if (isset($filterID))
{
$result = $this->FilterModel->load($filterID);
@@ -52,9 +52,9 @@ class Filter extends APIv1_Controller
*/
public function postFilter()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['filter_id']))
+ if (isset($this->post()['filter_id']))
{
$result = $this->FilterModel->update($this->post()['filter_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Log.php b/application/controllers/api/v1/system/Log.php
index ccdaaba88..c18da58fb 100644
--- a/application/controllers/api/v1/system/Log.php
+++ b/application/controllers/api/v1/system/Log.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Log extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Log extends APIv1_Controller
{
$logID = $this->get('log_id');
- if(isset($logID))
+ if (isset($logID))
{
$result = $this->LogModel->load($logID);
@@ -52,9 +52,9 @@ class Log extends APIv1_Controller
*/
public function postLog()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['log_id']))
+ if (isset($this->post()['log_id']))
{
$result = $this->LogModel->update($this->post()['log_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Message.php b/application/controllers/api/v1/system/Message.php
index 2639d65fd..b7f70e187 100644
--- a/application/controllers/api/v1/system/Message.php
+++ b/application/controllers/api/v1/system/Message.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Message extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Message extends APIv1_Controller
{
$messageID = $this->get('message_id');
- if(isset($messageID))
+ if (isset($messageID))
{
$result = $this->MessageModel->load($messageID);
@@ -52,9 +52,9 @@ class Message extends APIv1_Controller
*/
public function postMessage()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['message_id']))
+ if (isset($this->post()['message_id']))
{
$result = $this->MessageModel->update($this->post()['message_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Rolle.php b/application/controllers/api/v1/system/Rolle.php
index 099e99006..0523d412f 100644
--- a/application/controllers/api/v1/system/Rolle.php
+++ b/application/controllers/api/v1/system/Rolle.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rolle extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Rolle extends APIv1_Controller
{
$rolle_kurzbz = $this->get('rolle_kurzbz');
- if(isset($rolle_kurzbz))
+ if (isset($rolle_kurzbz))
{
$result = $this->RolleModel->load($rolle_kurzbz);
@@ -52,9 +52,9 @@ class Rolle extends APIv1_Controller
*/
public function postRolle()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['rolle_kurzbz']))
+ if (isset($this->post()['rolle_kurzbz']))
{
$result = $this->RolleModel->update($this->post()['rolle_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Rolleberechtigung.php b/application/controllers/api/v1/system/Rolleberechtigung.php
index a314190dd..13125c536 100644
--- a/application/controllers/api/v1/system/Rolleberechtigung.php
+++ b/application/controllers/api/v1/system/Rolleberechtigung.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Rolleberechtigung extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Rolleberechtigung extends APIv1_Controller
$rolle_kurzbz = $this->get('rolle_kurzbz');
$berechtigung_kurzbz = $this->get('berechtigung_kurzbz');
- if(isset($rolle_kurzbz) && isset($berechtigung_kurzbz))
+ if (isset($rolle_kurzbz) && isset($berechtigung_kurzbz))
{
$result = $this->RolleberechtigungModel->load(array($rolle_kurzbz, $berechtigung_kurzbz));
@@ -53,9 +53,9 @@ class Rolleberechtigung extends APIv1_Controller
*/
public function postRolleberechtigung()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['rolle_kurzbz']) && isset($this->post()['berechtigung_kurzbz']))
+ if (isset($this->post()['rolle_kurzbz']) && isset($this->post()['berechtigung_kurzbz']))
{
$result = $this->RolleberechtigungModel->update(array($this->post()['rolle_kurzbz'], $this->post()['berechtigung_kurzbz']), $this->post());
}
diff --git a/application/controllers/api/v1/system/Server.php b/application/controllers/api/v1/system/Server.php
index bd621245c..361ce2fb0 100644
--- a/application/controllers/api/v1/system/Server.php
+++ b/application/controllers/api/v1/system/Server.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Server extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Server extends APIv1_Controller
{
$server_kurzbz = $this->get('server_kurzbz');
- if(isset($server_kurzbz))
+ if (isset($server_kurzbz))
{
$result = $this->ServerModel->load($server_kurzbz);
@@ -52,9 +52,9 @@ class Server extends APIv1_Controller
*/
public function postServer()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['server_id']))
+ if (isset($this->post()['server_id']))
{
$result = $this->ServerModel->update($this->post()['server_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Sprache2.php b/application/controllers/api/v1/system/Sprache2.php
index e7c5de1ce..342c77d9c 100644
--- a/application/controllers/api/v1/system/Sprache2.php
+++ b/application/controllers/api/v1/system/Sprache2.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Sprache2 extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Sprache2 extends APIv1_Controller
{
$sprache = $this->get('sprache');
- if(isset($sprache))
+ if (isset($sprache))
{
$result = $this->SpracheModel->load($sprache);
@@ -52,9 +52,9 @@ class Sprache2 extends APIv1_Controller
*/
public function postSprache()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['sprache_id']))
+ if (isset($this->post()['sprache_id']))
{
$result = $this->SpracheModel->update($this->post()['sprache_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Tag.php b/application/controllers/api/v1/system/Tag.php
index f320cedd6..f7b7bb7e0 100644
--- a/application/controllers/api/v1/system/Tag.php
+++ b/application/controllers/api/v1/system/Tag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Tag extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Tag extends APIv1_Controller
{
$tag = $this->get('tag');
- if(isset($tag))
+ if (isset($tag))
{
$result = $this->TagModel->load($tag);
@@ -52,9 +52,9 @@ class Tag extends APIv1_Controller
*/
public function postTag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['tag']))
+ if (isset($this->post()['tag']))
{
$result = $this->TagModel->update($this->post()['tag'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Thread.php b/application/controllers/api/v1/system/Thread.php
index 69d2de94e..633e779e5 100644
--- a/application/controllers/api/v1/system/Thread.php
+++ b/application/controllers/api/v1/system/Thread.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Thread extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Thread extends APIv1_Controller
{
$threadID = $this->get('thread_id');
- if(isset($threadID))
+ if (isset($threadID))
{
$result = $this->ThreadModel->load($threadID);
@@ -52,9 +52,9 @@ class Thread extends APIv1_Controller
*/
public function postThread()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['thread_id']))
+ if (isset($this->post()['thread_id']))
{
$result = $this->ThreadModel->update($this->post()['thread_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Variable.php b/application/controllers/api/v1/system/Variable.php
index 0eea84bc7..7567eca20 100644
--- a/application/controllers/api/v1/system/Variable.php
+++ b/application/controllers/api/v1/system/Variable.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Variable extends APIv1_Controller
{
@@ -36,7 +36,7 @@ class Variable extends APIv1_Controller
$uid = $this->get('uid');
$name = $this->get('name');
- if(isset($uid) && isset($name))
+ if (isset($uid) && isset($name))
{
$result = $this->VariableModel->load(array($uid, $name));
@@ -53,9 +53,9 @@ class Variable extends APIv1_Controller
*/
public function postVariable()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['uid']) && isset($this->post()['name']))
+ if (isset($this->post()['uid']) && isset($this->post()['name']))
{
$result = $this->VariableModel->update(array($this->post()['uid'], $this->post()['name']), $this->post());
}
diff --git a/application/controllers/api/v1/system/Vorlage.php b/application/controllers/api/v1/system/Vorlage.php
index 58fc36cf1..0de44b90e 100644
--- a/application/controllers/api/v1/system/Vorlage.php
+++ b/application/controllers/api/v1/system/Vorlage.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vorlage extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vorlage extends APIv1_Controller
{
$vorlage_kurzbz = $this->get('vorlage_kurzbz');
- if(isset($vorlage_kurzbz))
+ if (isset($vorlage_kurzbz))
{
$result = $this->VorlageModel->load($vorlage_kurzbz);
@@ -52,9 +52,9 @@ class Vorlage extends APIv1_Controller
*/
public function postVorlage()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vorlage_kurzbz']))
+ if (isset($this->post()['vorlage_kurzbz']))
{
$result = $this->VorlageModel->update($this->post()['vorlage_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Vorlagestudiengang.php b/application/controllers/api/v1/system/Vorlagestudiengang.php
index f40e560d7..4070dd819 100644
--- a/application/controllers/api/v1/system/Vorlagestudiengang.php
+++ b/application/controllers/api/v1/system/Vorlagestudiengang.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vorlagestudiengang extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vorlagestudiengang extends APIv1_Controller
{
$vorlagestudiengangID = $this->get('vorlagestudiengang_id');
- if(isset($vorlagestudiengangID))
+ if (isset($vorlagestudiengangID))
{
$result = $this->VorlagestudiengangModel->load($vorlagestudiengangID);
@@ -52,9 +52,9 @@ class Vorlagestudiengang extends APIv1_Controller
*/
public function postVorlagestudiengang()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vorlagestudiengang_id']))
+ if (isset($this->post()['vorlagestudiengang_id']))
{
$result = $this->VorlagestudiengangModel->update($this->post()['vorlagestudiengang_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Webservicelog.php b/application/controllers/api/v1/system/Webservicelog.php
index 510b76f60..3bdf38517 100644
--- a/application/controllers/api/v1/system/Webservicelog.php
+++ b/application/controllers/api/v1/system/Webservicelog.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Webservicelog extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Webservicelog extends APIv1_Controller
{
$webservicelogID = $this->get('webservicelog_id');
- if(isset($webservicelogID))
+ if (isset($webservicelogID))
{
$result = $this->WebservicelogModel->load($webservicelogID);
@@ -52,9 +52,9 @@ class Webservicelog extends APIv1_Controller
*/
public function postWebservicelog()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['webservicelog_id']))
+ if (isset($this->post()['webservicelog_id']))
{
$result = $this->WebservicelogModel->update($this->post()['webservicelog_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Webservicerecht.php b/application/controllers/api/v1/system/Webservicerecht.php
index fadda83ea..459f3d56a 100644
--- a/application/controllers/api/v1/system/Webservicerecht.php
+++ b/application/controllers/api/v1/system/Webservicerecht.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Webservicerecht extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Webservicerecht extends APIv1_Controller
{
$webservicerechtID = $this->get('webservicerecht_id');
- if(isset($webservicerechtID))
+ if (isset($webservicerechtID))
{
$result = $this->WebservicerechtModel->load($webservicerechtID);
@@ -52,9 +52,9 @@ class Webservicerecht extends APIv1_Controller
*/
public function postWebservicerecht()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['webservicerecht_id']))
+ if (isset($this->post()['webservicerecht_id']))
{
$result = $this->WebservicerechtModel->update($this->post()['webservicerecht_id'], $this->post());
}
diff --git a/application/controllers/api/v1/system/Webservicetyp.php b/application/controllers/api/v1/system/Webservicetyp.php
index 03fe42340..e29a34d21 100644
--- a/application/controllers/api/v1/system/Webservicetyp.php
+++ b/application/controllers/api/v1/system/Webservicetyp.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Webservicetyp extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Webservicetyp extends APIv1_Controller
{
$webservicetyp_kurzbz = $this->get('webservicetyp_kurzbz');
- if(isset($webservicetyp_kurzbz))
+ if (isset($webservicetyp_kurzbz))
{
$result = $this->WebservicetypModel->load($webservicetyp_kurzbz);
@@ -52,9 +52,9 @@ class Webservicetyp extends APIv1_Controller
*/
public function postWebservicetyp()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['webservicetyp_kurzbz']))
+ if (isset($this->post()['webservicetyp_kurzbz']))
{
$result = $this->WebservicetypModel->update($this->post()['webservicetyp_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/system/message_old.php b/application/controllers/api/v1/system/message_old.php
index 2a9c25dd5..e10b6014c 100644
--- a/application/controllers/api/v1/system/message_old.php
+++ b/application/controllers/api/v1/system/message_old.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class message_old extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class message_old extends APIv1_Controller
{
$message_oldID = $this->get('message_old_id');
- if(isset($message_oldID))
+ if (isset($message_oldID))
{
$result = $this->message_oldModel->load($message_oldID);
@@ -52,9 +52,9 @@ class message_old extends APIv1_Controller
*/
public function postmessage_old()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['message_old_id']))
+ if (isset($this->post()['message_old_id']))
{
$result = $this->message_oldModel->update($this->post()['message_old_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Ablauf.php b/application/controllers/api/v1/testtool/Ablauf.php
index 9394e8bd5..d3b0c2d1b 100644
--- a/application/controllers/api/v1/testtool/Ablauf.php
+++ b/application/controllers/api/v1/testtool/Ablauf.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ablauf extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Ablauf extends APIv1_Controller
{
$ablaufID = $this->get('ablauf_id');
- if(isset($ablaufID))
+ if (isset($ablaufID))
{
$result = $this->AblaufModel->load($ablaufID);
@@ -52,9 +52,9 @@ class Ablauf extends APIv1_Controller
*/
public function postAblauf()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['ablauf_id']))
+ if (isset($this->post()['ablauf_id']))
{
$result = $this->AblaufModel->update($this->post()['ablauf_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Antwort.php b/application/controllers/api/v1/testtool/Antwort.php
index cf8b30e25..127725c96 100644
--- a/application/controllers/api/v1/testtool/Antwort.php
+++ b/application/controllers/api/v1/testtool/Antwort.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Antwort extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Antwort extends APIv1_Controller
{
$antwortID = $this->get('antwort_id');
- if(isset($antwortID))
+ if (isset($antwortID))
{
$result = $this->AntwortModel->load($antwortID);
@@ -52,9 +52,9 @@ class Antwort extends APIv1_Controller
*/
public function postAntwort()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['antwort_id']))
+ if (isset($this->post()['antwort_id']))
{
$result = $this->AntwortModel->update($this->post()['antwort_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Frage.php b/application/controllers/api/v1/testtool/Frage.php
index dcfe353fd..01d506fcc 100644
--- a/application/controllers/api/v1/testtool/Frage.php
+++ b/application/controllers/api/v1/testtool/Frage.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Frage extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Frage extends APIv1_Controller
{
$frageID = $this->get('frage_id');
- if(isset($frageID))
+ if (isset($frageID))
{
$result = $this->FrageModel->load($frageID);
@@ -52,9 +52,9 @@ class Frage extends APIv1_Controller
*/
public function postFrage()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['frage_id']))
+ if (isset($this->post()['frage_id']))
{
$result = $this->FrageModel->update($this->post()['frage_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Gebiet.php b/application/controllers/api/v1/testtool/Gebiet.php
index 9f8f2b8dd..51d671523 100644
--- a/application/controllers/api/v1/testtool/Gebiet.php
+++ b/application/controllers/api/v1/testtool/Gebiet.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Gebiet extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Gebiet extends APIv1_Controller
{
$gebietID = $this->get('gebiet_id');
- if(isset($gebietID))
+ if (isset($gebietID))
{
$result = $this->GebietModel->load($gebietID);
@@ -52,9 +52,9 @@ class Gebiet extends APIv1_Controller
*/
public function postGebiet()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['gebiet_id']))
+ if (isset($this->post()['gebiet_id']))
{
$result = $this->GebietModel->update($this->post()['gebiet_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Kategorie.php b/application/controllers/api/v1/testtool/Kategorie.php
index e28bc7193..ba835df85 100644
--- a/application/controllers/api/v1/testtool/Kategorie.php
+++ b/application/controllers/api/v1/testtool/Kategorie.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kategorie extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Kategorie extends APIv1_Controller
{
$kategorie_kurzbz = $this->get('kategorie_kurzbz');
- if(isset($kategorie_kurzbz))
+ if (isset($kategorie_kurzbz))
{
$result = $this->KategorieModel->load($kategorie_kurzbz);
@@ -52,9 +52,9 @@ class Kategorie extends APIv1_Controller
*/
public function postKategorie()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['kategorie_kurzbz']))
+ if (isset($this->post()['kategorie_kurzbz']))
{
$result = $this->KategorieModel->update($this->post()['kategorie_kurzbz'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Kriterien.php b/application/controllers/api/v1/testtool/Kriterien.php
index 357bcec1c..850b973a4 100644
--- a/application/controllers/api/v1/testtool/Kriterien.php
+++ b/application/controllers/api/v1/testtool/Kriterien.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Kriterien extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Kriterien extends APIv1_Controller
{
$kriterienID = $this->get('kriterien_id');
- if(isset($kriterienID))
+ if (isset($kriterienID))
{
$result = $this->KriterienModel->load($kriterienID);
@@ -52,9 +52,9 @@ class Kriterien extends APIv1_Controller
*/
public function postKriterien()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['kriterien_id']))
+ if (isset($this->post()['kriterien_id']))
{
$result = $this->KriterienModel->update($this->post()['kriterien_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Pruefling.php b/application/controllers/api/v1/testtool/Pruefling.php
index edf4a3c41..1d9144cdf 100644
--- a/application/controllers/api/v1/testtool/Pruefling.php
+++ b/application/controllers/api/v1/testtool/Pruefling.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Pruefling extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Pruefling extends APIv1_Controller
{
$prueflingID = $this->get('pruefling_id');
- if(isset($prueflingID))
+ if (isset($prueflingID))
{
$result = $this->PrueflingModel->load($prueflingID);
@@ -52,9 +52,9 @@ class Pruefling extends APIv1_Controller
*/
public function postPruefling()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['pruefling_id']))
+ if (isset($this->post()['pruefling_id']))
{
$result = $this->PrueflingModel->update($this->post()['pruefling_id'], $this->post());
}
diff --git a/application/controllers/api/v1/testtool/Vorschlag.php b/application/controllers/api/v1/testtool/Vorschlag.php
index aa2b219fb..cdd1fe439 100644
--- a/application/controllers/api/v1/testtool/Vorschlag.php
+++ b/application/controllers/api/v1/testtool/Vorschlag.php
@@ -12,7 +12,7 @@
*/
// ------------------------------------------------------------------------
-if(!defined('BASEPATH')) exit('No direct script access allowed');
+if (!defined('BASEPATH')) exit('No direct script access allowed');
class Vorschlag extends APIv1_Controller
{
@@ -35,7 +35,7 @@ class Vorschlag extends APIv1_Controller
{
$vorschlagID = $this->get('vorschlag_id');
- if(isset($vorschlagID))
+ if (isset($vorschlagID))
{
$result = $this->VorschlagModel->load($vorschlagID);
@@ -52,9 +52,9 @@ class Vorschlag extends APIv1_Controller
*/
public function postVorschlag()
{
- if($this->_validate($this->post()))
+ if ($this->_validate($this->post()))
{
- if(isset($this->post()['vorschlag_id']))
+ if (isset($this->post()['vorschlag_id']))
{
$result = $this->VorschlagModel->update($this->post()['vorschlag_id'], $this->post());
}
diff --git a/application/controllers/system/Message.php b/application/controllers/system/Message.php
index 3f0f00721..8ed3331b6 100755
--- a/application/controllers/system/Message.php
+++ b/application/controllers/system/Message.php
@@ -1,5 +1,5 @@
dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
// Check rights
@@ -47,7 +47,7 @@ class DB_Model extends FHC_Model
public function replace($data)
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
// Check rights
@@ -71,9 +71,9 @@ class DB_Model extends FHC_Model
public function update($id, $data)
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
- if(is_null($this->pk))
+ if (is_null($this->pk))
return $this->_error(lang('fhc_'.FHC_NOPK), FHC_MODEL_ERROR);
// Check rights
@@ -106,9 +106,9 @@ class DB_Model extends FHC_Model
public function load($id)
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
- if(is_null($this->pk))
+ if (is_null($this->pk))
return $this->_error(lang('fhc_'.FHC_NOPK), FHC_MODEL_ERROR);
@@ -142,7 +142,7 @@ class DB_Model extends FHC_Model
public function loadWhere($where = null)
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
// Check rights
@@ -169,9 +169,9 @@ class DB_Model extends FHC_Model
public function loadWhole()
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
- if(is_null($this->pk))
+ if (is_null($this->pk))
return $this->_error(lang('fhc_'.FHC_NOPK), FHC_MODEL_ERROR);
@@ -196,7 +196,7 @@ class DB_Model extends FHC_Model
public function addJoin($joinTable = null, $cond = null, $type = '')
{
// Check parameters
- if(is_null($joinTable) || is_null($cond) || !in_array($type, array('', 'LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER')))
+ if (is_null($joinTable) || is_null($cond) || !in_array($type, array('', 'LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER')))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
// Check rights for joined table
@@ -216,7 +216,7 @@ class DB_Model extends FHC_Model
public function addOrder($field = null, $type = 'ASC')
{
// Check Class-Attributes and parameters
- if(is_null($field) || !in_array($type, array('ASC', 'DESC')))
+ if (is_null($field) || !in_array($type, array('ASC', 'DESC')))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
$this->db->order_by($field, $type);
@@ -242,10 +242,10 @@ class DB_Model extends FHC_Model
public function addLimit($start = null, $end = null)
{
// Check Class-Attributes and parameters
- if(!is_numeric($start) || (is_numeric($start) && $start <= 0))
+ if (!is_numeric($start) || (is_numeric($start) && $start <= 0))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
- if(is_numeric($end) && $end > $start)
+ if (is_numeric($end) && $end > $start)
{
$this->db->limit($start, $end);
}
@@ -266,9 +266,9 @@ class DB_Model extends FHC_Model
public function delete($id)
{
// Check Class-Attributes
- if(is_null($this->dbTable))
+ if (is_null($this->dbTable))
return $this->_error(lang('fhc_'.FHC_NODBTABLE), FHC_MODEL_ERROR);
- if(is_null($this->pk))
+ if (is_null($this->pk))
return $this->_error(lang('fhc_'.FHC_NOPK), FHC_MODEL_ERROR);
// Check rights
@@ -335,7 +335,7 @@ class DB_Model extends FHC_Model
$quote='';
$len = strlen($s);
$v = '';
- for($i=$start+1; $i<$len;$i++)
+ for ($i=$start+1; $i<$len;$i++)
{
$ch = $s[$i];
if (!$string && $ch=='}')
diff --git a/application/core/FHC_Controller.php b/application/core/FHC_Controller.php
index b08696193..7c45a2fc3 100644
--- a/application/core/FHC_Controller.php
+++ b/application/core/FHC_Controller.php
@@ -1,5 +1,5 @@
lang->load('fhcomplete');
$uid = NULL;
- if(is_null($uid) && isset($this->session->uid))
+ if (is_null($uid) && isset($this->session->uid))
{
$uid = $this->session->uid;
}
diff --git a/application/helpers/fhcauth_helper.php b/application/helpers/fhcauth_helper.php
index 645952841..1a904ee55 100644
--- a/application/helpers/fhcauth_helper.php
+++ b/application/helpers/fhcauth_helper.php
@@ -10,7 +10,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
require_once 'include/authentication.class.php';
/**
diff --git a/application/helpers/fhcdb_helper.php b/application/helpers/fhcdb_helper.php
index c5eee6800..fd170c462 100644
--- a/application/helpers/fhcdb_helper.php
+++ b/application/helpers/fhcdb_helper.php
@@ -10,7 +10,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
//require_once 'include/basis.class.php';
/**
@@ -44,12 +44,12 @@ class basis_db
//Connection Herstellen
if (DB_CONNECT_PERSISTENT)
{
- if(!basis_db::$db_conn = pg_pconnect($conn_str))
+ if (!basis_db::$db_conn = pg_pconnect($conn_str))
die('Fehler beim Oeffnen der Datenbankverbindung');
}
else
{
- if(!basis_db::$db_conn = pg_connect($conn_str))
+ if (!basis_db::$db_conn = pg_connect($conn_str))
die('Fehler beim Oeffnen der Datenbankverbindung');
}
}
@@ -67,7 +67,7 @@ class basis_db
public function db_num_rows($result=null)
{
- if(is_null($result))
+ if (is_null($result))
return pg_num_rows($this->db_result);
else
return pg_num_rows($result);
@@ -75,16 +75,16 @@ class basis_db
public function db_fetch_object($result = null, $i=null)
{
- if(is_null($result))
+ if (is_null($result))
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_object($this->db_result);
else
return pg_fetch_object($this->db_result, $i);
}
else
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_object($result);
else
return pg_fetch_object($result, $i);
@@ -93,16 +93,16 @@ class basis_db
public function db_fetch_row($result = null, $i=null)
{
- if(is_null($result))
+ if (is_null($result))
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_row($this->db_result);
else
return pg_fetch_row($this->db_result, $i);
}
else
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_row($result);
else
return pg_fetch_row($result, $i);
@@ -111,16 +111,16 @@ class basis_db
public function db_fetch_assoc($result = null, $i=null)
{
- if(is_null($result))
+ if (is_null($result))
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_assoc($this->db_result);
else
return pg_fetch_assoc($this->db_result, $i);
}
else
{
- if(is_null($i))
+ if (is_null($i))
return pg_fetch_row($result);
else
return pg_fetch_row($result, $i);
@@ -129,7 +129,7 @@ class basis_db
public function db_result($result = null, $i,$item)
{
- if(is_null($result))
+ if (is_null($result))
{
return pg_result($this->db_result, $i,$item);
}
@@ -142,9 +142,9 @@ class basis_db
public function db_getResultJSON($result = null)
{
$rows=array();
- if(is_null($result))
+ if (is_null($result))
{
- while($r = pg_fetch_assoc($this->db_result))
+ while ($r = pg_fetch_assoc($this->db_result))
$rows[] = $r;
//print json_encode($rows);
@@ -153,7 +153,7 @@ class basis_db
{
pg_result_seek($result, 0);
//var_dump($result);
- while($r = pg_fetch_assoc($result))
+ while ($r = pg_fetch_assoc($result))
{
$rows[] = $r;
}
@@ -170,7 +170,7 @@ class basis_db
public function db_affected_rows($result=null)
{
- if(is_null($result))
+ if (is_null($result))
return pg_affected_rows($this->db_result);
else
return pg_affected_rows($result);
@@ -178,7 +178,7 @@ class basis_db
public function db_result_seek($result=null, $offset)
{
- if(is_null($result))
+ if (is_null($result))
return pg_result_seek($this->db_result, $offset);
else
return pg_result_seek($result, $offset);
@@ -186,7 +186,7 @@ class basis_db
public function db_fetch_array($result=null)
{
- if(is_null($result))
+ if (is_null($result))
return pg_fetch_array($this->db_result);
else
return pg_fetch_array($result);
@@ -194,7 +194,7 @@ class basis_db
public function db_num_fields($result=null)
{
- if(is_null($result))
+ if (is_null($result))
return pg_num_fields($this->db_result);
else
return pg_num_fields($result);
@@ -205,7 +205,7 @@ class basis_db
*/
public function db_field_name($result=null, $i)
{
- if(is_null($result))
+ if (is_null($result))
return pg_field_name($this->db_result, $i);
else
return pg_field_name($result, $i);
@@ -217,7 +217,7 @@ class basis_db
*/
public function db_free_result($result = null)
{
- if(is_null($result))
+ if (is_null($result))
{
return pg_free_result($this->db_result);
}
@@ -256,7 +256,7 @@ class basis_db
*/
public function db_null_value($var, $qoute=true)
{
- if($qoute)
+ if ($qoute)
return ($var!==''?$this->db_qoute($var):'null');
else
return ($var!==''?$var:'null');
@@ -288,9 +288,9 @@ class basis_db
*/
public function db_add_param($var, $type=FHC_STRING, $nullable=true)
{
- if(($var==='' || is_null($var)) && $type!=FHC_BOOLEAN)
+ if (($var==='' || is_null($var)) && $type!=FHC_BOOLEAN)
{
- if($nullable)
+ if ($nullable)
return 'null';
else
return "''";
@@ -300,7 +300,7 @@ class basis_db
{
case FHC_INTEGER:
$var = $this->db_escape($var);
- if(!is_numeric($var) && $var!=='')
+ if (!is_numeric($var) && $var!=='')
die('Invalid Integer Parameter detected:'.$var);
$var = $this->db_null_value($var, false);
break;
@@ -315,7 +315,7 @@ class basis_db
foreach($languages as $sk => $sp)
{
- if(!$sp || !isset($buf[$sp]))
+ if (!$sp || !isset($buf[$sp]))
$var[$sk] = "";
else
$var[$sk] = $this->db_escape($buf[$sp]);
@@ -327,11 +327,11 @@ class basis_db
break;
case FHC_BOOLEAN:
- if($var===true)
+ if ($var===true)
$var='true';
- elseif($var===false)
+ elseif ($var===false)
$var='false';
- elseif($var=='' && $nullable)
+ elseif ($var=='' && $nullable)
$var = 'null';
else
die('Invalid Boolean Parameter detected');
@@ -351,11 +351,11 @@ class basis_db
*/
public function db_parse_bool($var)
{
- if($var=='t')
+ if ($var=='t')
return true;
- elseif($var=='f')
+ elseif ($var=='f')
return false;
- elseif($var=='')
+ elseif ($var=='')
return '';
else
die('Invalid DB Boolean. Wrong DB-Engine?');
@@ -370,7 +370,7 @@ class basis_db
$string = '';
foreach($array as $row)
{
- if($string!='')
+ if ($string!='')
$string.=',';
$string.=$this->db_add_param($row);
}
@@ -439,7 +439,7 @@ function dbImplode4SQL($array)
foreach($array as $row)
{
- if($string != '')
+ if ($string != '')
{
$string.=',';
}
diff --git a/application/language/de-AT/calendar_lang.php b/application/language/de-AT/calendar_lang.php
index 8af5e8056..222f4f65b 100644
--- a/application/language/de-AT/calendar_lang.php
+++ b/application/language/de-AT/calendar_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['cal_su'] = 'Su';
$lang['cal_mo'] = 'Mo';
diff --git a/application/language/de-AT/date_lang.php b/application/language/de-AT/date_lang.php
index 39af5a239..7ff441e0e 100644
--- a/application/language/de-AT/date_lang.php
+++ b/application/language/de-AT/date_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['date_year'] = 'Year';
$lang['date_years'] = 'Years';
diff --git a/application/language/de-AT/db_lang.php b/application/language/de-AT/db_lang.php
index ed93452b4..91e2f41d3 100644
--- a/application/language/de-AT/db_lang.php
+++ b/application/language/de-AT/db_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
diff --git a/application/language/de-AT/email_lang.php b/application/language/de-AT/email_lang.php
index 84fb09109..1238962f8 100644
--- a/application/language/de-AT/email_lang.php
+++ b/application/language/de-AT/email_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['email_must_be_array'] = 'The email validation method must be passed an array.';
$lang['email_invalid_address'] = 'Invalid email address: %s';
diff --git a/application/language/de-AT/form_validation_lang.php b/application/language/de-AT/form_validation_lang.php
index 92d6d5ebb..ff8ff4ec2 100644
--- a/application/language/de-AT/form_validation_lang.php
+++ b/application/language/de-AT/form_validation_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['form_validation_required'] = 'The {field} field is required.';
$lang['form_validation_isset'] = 'The {field} field must have a value.';
diff --git a/application/language/de-AT/ftp_lang.php b/application/language/de-AT/ftp_lang.php
index 9e72bce42..a620e77d0 100644
--- a/application/language/de-AT/ftp_lang.php
+++ b/application/language/de-AT/ftp_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['ftp_no_connection'] = 'Unable to locate a valid connection ID. Please make sure you are connected before performing any file routines.';
$lang['ftp_unable_to_connect'] = 'Unable to connect to your FTP server using the supplied hostname.';
diff --git a/application/language/de-AT/imglib_lang.php b/application/language/de-AT/imglib_lang.php
index 7f23233b4..a034efc0d 100644
--- a/application/language/de-AT/imglib_lang.php
+++ b/application/language/de-AT/imglib_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['imglib_source_image_required'] = 'You must specify a source image in your preferences.';
$lang['imglib_gd_required'] = 'The GD image library is required for this feature.';
diff --git a/application/language/de-AT/number_lang.php b/application/language/de-AT/number_lang.php
index 0aaf51e72..197da7c2b 100644
--- a/application/language/de-AT/number_lang.php
+++ b/application/language/de-AT/number_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['terabyte_abbr'] = 'TB';
$lang['gigabyte_abbr'] = 'GB';
diff --git a/application/language/de-AT/pagination_lang.php b/application/language/de-AT/pagination_lang.php
index 4d36bdee8..4953c219b 100644
--- a/application/language/de-AT/pagination_lang.php
+++ b/application/language/de-AT/pagination_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['pagination_first_link'] = '‹ First';
$lang['pagination_next_link'] = '>';
diff --git a/application/language/de-AT/profiler_lang.php b/application/language/de-AT/profiler_lang.php
index 2d8fa51f4..b9cf41bed 100644
--- a/application/language/de-AT/profiler_lang.php
+++ b/application/language/de-AT/profiler_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
diff --git a/application/language/de-AT/seed_lang.php b/application/language/de-AT/seed_lang.php
index 0dd2e014c..42735e0e1 100644
--- a/application/language/de-AT/seed_lang.php
+++ b/application/language/de-AT/seed_lang.php
@@ -3,7 +3,7 @@
* FH-Complete
*
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['seed_none_found'] = 'No seeds were found.';
$lang['seed_not_found'] = 'No seed could be found with the version number: %s.';
diff --git a/application/language/de-AT/unit_test_lang.php b/application/language/de-AT/unit_test_lang.php
index 29a4137a5..bad094cbc 100644
--- a/application/language/de-AT/unit_test_lang.php
+++ b/application/language/de-AT/unit_test_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
diff --git a/application/language/de-AT/upload_lang.php b/application/language/de-AT/upload_lang.php
index 058dca993..c2f7bffc2 100644
--- a/application/language/de-AT/upload_lang.php
+++ b/application/language/de-AT/upload_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['upload_userfile_not_set'] = 'Unable to find a post variable called userfile.';
$lang['upload_file_exceeds_limit'] = 'The uploaded file exceeds the maximum allowed size in your PHP configuration file.';
diff --git a/application/language/en-US/calendar_lang.php b/application/language/en-US/calendar_lang.php
index 8af5e8056..222f4f65b 100644
--- a/application/language/en-US/calendar_lang.php
+++ b/application/language/en-US/calendar_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['cal_su'] = 'Su';
$lang['cal_mo'] = 'Mo';
diff --git a/application/language/en-US/date_lang.php b/application/language/en-US/date_lang.php
index 39af5a239..7ff441e0e 100644
--- a/application/language/en-US/date_lang.php
+++ b/application/language/en-US/date_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['date_year'] = 'Year';
$lang['date_years'] = 'Years';
diff --git a/application/language/en-US/db_lang.php b/application/language/en-US/db_lang.php
index ed93452b4..91e2f41d3 100644
--- a/application/language/en-US/db_lang.php
+++ b/application/language/en-US/db_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
diff --git a/application/language/en-US/email_lang.php b/application/language/en-US/email_lang.php
index 84fb09109..1238962f8 100644
--- a/application/language/en-US/email_lang.php
+++ b/application/language/en-US/email_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['email_must_be_array'] = 'The email validation method must be passed an array.';
$lang['email_invalid_address'] = 'Invalid email address: %s';
diff --git a/application/language/en-US/form_validation_lang.php b/application/language/en-US/form_validation_lang.php
index 92d6d5ebb..ff8ff4ec2 100644
--- a/application/language/en-US/form_validation_lang.php
+++ b/application/language/en-US/form_validation_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['form_validation_required'] = 'The {field} field is required.';
$lang['form_validation_isset'] = 'The {field} field must have a value.';
diff --git a/application/language/en-US/ftp_lang.php b/application/language/en-US/ftp_lang.php
index 9e72bce42..a620e77d0 100644
--- a/application/language/en-US/ftp_lang.php
+++ b/application/language/en-US/ftp_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['ftp_no_connection'] = 'Unable to locate a valid connection ID. Please make sure you are connected before performing any file routines.';
$lang['ftp_unable_to_connect'] = 'Unable to connect to your FTP server using the supplied hostname.';
diff --git a/application/language/en-US/imglib_lang.php b/application/language/en-US/imglib_lang.php
index 7f23233b4..a034efc0d 100644
--- a/application/language/en-US/imglib_lang.php
+++ b/application/language/en-US/imglib_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['imglib_source_image_required'] = 'You must specify a source image in your preferences.';
$lang['imglib_gd_required'] = 'The GD image library is required for this feature.';
diff --git a/application/language/en-US/migration_lang.php b/application/language/en-US/migration_lang.php
index bce9210d3..b067af819 100644
--- a/application/language/en-US/migration_lang.php
+++ b/application/language/en-US/migration_lang.php
@@ -35,7 +35,7 @@
* @since Version 3.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['migration_none_found'] = 'No migrations were found.';
$lang['migration_not_found'] = 'No migration could be found with the version number: %s.';
diff --git a/application/language/en-US/number_lang.php b/application/language/en-US/number_lang.php
index 0aaf51e72..197da7c2b 100644
--- a/application/language/en-US/number_lang.php
+++ b/application/language/en-US/number_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['terabyte_abbr'] = 'TB';
$lang['gigabyte_abbr'] = 'GB';
diff --git a/application/language/en-US/pagination_lang.php b/application/language/en-US/pagination_lang.php
index 4d36bdee8..4953c219b 100644
--- a/application/language/en-US/pagination_lang.php
+++ b/application/language/en-US/pagination_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['pagination_first_link'] = '‹ First';
$lang['pagination_next_link'] = '>';
diff --git a/application/language/en-US/profiler_lang.php b/application/language/en-US/profiler_lang.php
index 2d8fa51f4..b9cf41bed 100644
--- a/application/language/en-US/profiler_lang.php
+++ b/application/language/en-US/profiler_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
diff --git a/application/language/en-US/seed_lang.php b/application/language/en-US/seed_lang.php
index 0dd2e014c..42735e0e1 100644
--- a/application/language/en-US/seed_lang.php
+++ b/application/language/en-US/seed_lang.php
@@ -3,7 +3,7 @@
* FH-Complete
*
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['seed_none_found'] = 'No seeds were found.';
$lang['seed_not_found'] = 'No seed could be found with the version number: %s.';
diff --git a/application/language/en-US/unit_test_lang.php b/application/language/en-US/unit_test_lang.php
index 29a4137a5..bad094cbc 100644
--- a/application/language/en-US/unit_test_lang.php
+++ b/application/language/en-US/unit_test_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
diff --git a/application/language/en-US/upload_lang.php b/application/language/en-US/upload_lang.php
index 058dca993..c2f7bffc2 100644
--- a/application/language/en-US/upload_lang.php
+++ b/application/language/en-US/upload_lang.php
@@ -35,7 +35,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
$lang['upload_userfile_not_set'] = 'Unable to find a post variable called userfile.';
$lang['upload_file_exceeds_limit'] = 'The uploaded file exceeds the maximum allowed size in your PHP configuration file.';
diff --git a/application/libraries/FHC_Auth.php b/application/libraries/FHC_Auth.php
index 83b76e755..255ff6b1d 100644
--- a/application/libraries/FHC_Auth.php
+++ b/application/libraries/FHC_Auth.php
@@ -10,7 +10,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
require_once FCPATH.'include/authentication.class.php';
require_once FCPATH.'include/AddonAuthentication.php';
@@ -38,7 +38,7 @@ class FHC_Auth
public function basicAuthentication($username, $password)
{
$auth = new authentication();
- if($auth->checkpassword($username, $password))
+ if ($auth->checkpassword($username, $password))
{
return true;
}
diff --git a/application/libraries/FHC_Seed.php b/application/libraries/FHC_Seed.php
index a7944bb74..065a19259 100644
--- a/application/libraries/FHC_Seed.php
+++ b/application/libraries/FHC_Seed.php
@@ -10,7 +10,7 @@
* @since Version 1.0.0
* @filesource
*/
-defined('BASEPATH') OR exit('No direct script access allowed');
+if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* FHC-Seed Library
diff --git a/application/libraries/Format.php b/application/libraries/Format.php
index 0d3bf7732..0f7ea4a87 100644
--- a/application/libraries/Format.php
+++ b/application/libraries/Format.php
@@ -1,6 +1,6 @@
display_as[$field_info->name] :
ucfirst(str_replace("_"," ",$field_info->name));
- if($this->change_field_type !== null && isset($this->change_field_type[$field_info->name]))
+ if ($this->change_field_type !== null && isset($this->change_field_type[$field_info->name]))
{
$field_type = $this->change_field_type[$field_info->name];
@@ -70,12 +70,12 @@ class grocery_CRUD_Field_Types
$real_type = $field_info->crud_type;
}
- elseif(isset($this->relation[$field_info->name]))
+ elseif (isset($this->relation[$field_info->name]))
{
$real_type = 'relation';
$field_info->crud_type = 'relation';
}
- elseif(isset($this->upload_fields[$field_info->name]))
+ elseif (isset($this->upload_fields[$field_info->name]))
{
$real_type = 'upload_file';
$field_info->crud_type = 'upload_file';
@@ -88,7 +88,7 @@ class grocery_CRUD_Field_Types
switch ($real_type) {
case 'text':
- if(!empty($this->unset_texteditor) && in_array($field_info->name,$this->unset_texteditor))
+ if (!empty($this->unset_texteditor) && in_array($field_info->name,$this->unset_texteditor))
$field_info->extras = false;
else
$field_info->extras = 'text_editor';
@@ -105,7 +105,7 @@ class grocery_CRUD_Field_Types
break;
default:
- if(empty($field_info->extras))
+ if (empty($field_info->extras))
$field_info->extras = false;
break;
}
@@ -113,7 +113,7 @@ class grocery_CRUD_Field_Types
$types[$field_info->name] = $field_info;
}
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
foreach($this->relation_n_n as $field_name => $field_extras)
{
@@ -135,15 +135,15 @@ class grocery_CRUD_Field_Types
}
}
- if(!empty($this->add_fields))
+ if (!empty($this->add_fields))
foreach($this->add_fields as $field_object)
{
$field_name = isset($field_object->field_name) ? $field_object->field_name : $field_object;
- if(!isset($types[$field_name]))//Doesn't exist in the database? Create it for the CRUD
+ if (!isset($types[$field_name]))//Doesn't exist in the database? Create it for the CRUD
{
$extras = false;
- if($this->change_field_type !== null && isset($this->change_field_type[$field_name]))
+ if ($this->change_field_type !== null && isset($this->change_field_type[$field_name]))
{
$field_type = $this->change_field_type[$field_name];
$extras = $field_type->extras;
@@ -165,15 +165,15 @@ class grocery_CRUD_Field_Types
}
}
- if(!empty($this->edit_fields))
+ if (!empty($this->edit_fields))
foreach($this->edit_fields as $field_object)
{
$field_name = isset($field_object->field_name) ? $field_object->field_name : $field_object;
- if(!isset($types[$field_name]))//Doesn't exist in the database? Create it for the CRUD
+ if (!isset($types[$field_name]))//Doesn't exist in the database? Create it for the CRUD
{
$extras = false;
- if($this->change_field_type !== null && isset($this->change_field_type[$field_name]))
+ if ($this->change_field_type !== null && isset($this->change_field_type[$field_name]))
{
$field_type = $this->change_field_type[$field_name];
$extras = $field_type->extras;
@@ -264,9 +264,9 @@ class grocery_CRUD_Field_Types
break;
case 'true_false':
- if(is_array($field_info->extras) && array_key_exists($value,$field_info->extras)) {
+ if (is_array($field_info->extras) && array_key_exists($value,$field_info->extras)) {
$value = $field_info->extras[$value];
- } else if(isset($this->default_true_false_text[$value])) {
+ } else if (isset($this->default_true_false_text[$value])) {
$value = $this->default_true_false_text[$value];
}
break;
@@ -277,7 +277,7 @@ class grocery_CRUD_Field_Types
$value = $this->character_limiter(strip_tags($value),$this->character_limiter,"...");
break;
case 'date':
- if(!empty($value) && $value != '0000-00-00' && $value != '1970-01-01')
+ if (!empty($value) && $value != '0000-00-00' && $value != '1970-01-01')
{
list($year,$month,$day) = explode("-",$value);
@@ -289,7 +289,7 @@ class grocery_CRUD_Field_Types
}
break;
case 'datetime':
- if(!empty($value) && $value != '0000-00-00 00:00:00' && $value != '1970-01-01 00:00:00')
+ if (!empty($value) && $value != '0000-00-00 00:00:00' && $value != '1970-01-01 00:00:00')
{
list($year,$month,$day) = explode("-",$value);
list($hours,$minutes) = explode(":",substr($value,11));
@@ -327,7 +327,7 @@ class grocery_CRUD_Field_Types
break;
case 'upload_file':
- if(empty($value))
+ if (empty($value))
{
$value = "";
}
@@ -344,7 +344,7 @@ class grocery_CRUD_Field_Types
$file_url = base_url().$field_info->extras->upload_path."/$value";
$file_url_anchor = '';
}
@@ -409,7 +409,7 @@ class grocery_CRUD_Field_Types
protected function get_type($db_type)
{
$type = false;
- if(!empty($db_type->type))
+ if (!empty($db_type->type))
{
switch ($db_type->type) {
case '1':
@@ -418,7 +418,7 @@ class grocery_CRUD_Field_Types
case 'tinyint':
case 'mediumint':
case 'longint':
- if( $db_type->db_type == 'tinyint' && $db_type->db_max_length == 1)
+ if ( $db_type->db_type == 'tinyint' && $db_type->db_max_length == 1)
$type = 'true_false';
else
$type = 'integer';
@@ -426,13 +426,13 @@ class grocery_CRUD_Field_Types
case '254':
case 'string':
case 'enum':
- if($db_type->db_type != 'enum')
+ if ($db_type->db_type != 'enum')
$type = 'string';
else
$type = 'enum';
break;
case 'set':
- if($db_type->db_type != 'set')
+ if ($db_type->db_type != 'set')
$type = 'string';
else
$type = 'set';
@@ -488,41 +488,41 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function get_total_results()
{
- if(!empty($this->where))
+ if (!empty($this->where))
foreach($this->where as $where)
$this->basic_model->where($where[0],$where[1],$where[2]);
- if(!empty($this->or_where))
+ if (!empty($this->or_where))
foreach($this->or_where as $or_where)
$this->basic_model->or_where($or_where[0],$or_where[1],$or_where[2]);
- if(!empty($this->like))
+ if (!empty($this->like))
foreach($this->like as $like)
$this->basic_model->like($like[0],$like[1],$like[2]);
- if(!empty($this->or_like))
+ if (!empty($this->or_like))
foreach($this->or_like as $or_like)
$this->basic_model->or_like($or_like[0],$or_like[1],$or_like[2]);
- if(!empty($this->having))
+ if (!empty($this->having))
foreach($this->having as $having)
$this->basic_model->having($having[0],$having[1],$having[2]);
- if(!empty($this->or_having))
+ if (!empty($this->or_having))
foreach($this->or_having as $or_having)
$this->basic_model->or_having($or_having[0],$or_having[1],$or_having[2]);
- if(!empty($this->relation))
+ if (!empty($this->relation))
foreach($this->relation as $relation)
$this->basic_model->join_relation($relation[0],$relation[1],$relation[2]);
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
$columns = $this->get_columns();
foreach($columns as $column)
{
//Use the relation_n_n ONLY if the column is called . The set_relation_n_n are slow and it will make the table slower without any reason as we don't need those queries.
- if(isset($this->relation_n_n[$column->field_name]))
+ if (isset($this->relation_n_n[$column->field_name]))
{
$this->basic_model->set_relation_n_n_field($this->relation_n_n[$column->field_name]);
}
@@ -553,9 +553,9 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function set_ajax_list_queries($state_info = null)
{
- if(!empty($state_info->per_page))
+ if (!empty($state_info->per_page))
{
- if(empty($state_info->page) || !is_numeric($state_info->page) )
+ if (empty($state_info->page) || !is_numeric($state_info->page) )
$this->limit($state_info->per_page);
else
{
@@ -564,12 +564,12 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if(!empty($state_info->order_by))
+ if (!empty($state_info->order_by))
{
$this->order_by($state_info->order_by[0],$state_info->order_by[1]);
}
- if(!empty($state_info->search))
+ if (!empty($state_info->search))
{
if (!empty($this->relation)) {
foreach ($this->relation as $relation_name => $relation_values) {
@@ -589,7 +589,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
} else {
$this->like($temp_relation[$search_field] , $search_text);
}
- } elseif(isset($this->relation_n_n[$search_field])) {
+ } elseif (isset($this->relation_n_n[$search_field])) {
$escaped_text = $this->basic_model->escape_str($search_text);
$this->having($search_field." LIKE '%".$escaped_text."%'");
} else {
@@ -608,7 +608,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
} else {
$this->like($temp_relation[$state_info->search->field] , $state_info->search->text);
}
- } elseif(isset($this->relation_n_n[$state_info->search->field])) {
+ } elseif (isset($this->relation_n_n[$state_info->search->field])) {
$escaped_text = $this->basic_model->escape_str($state_info->search->text);
$this->having($state_info->search->field." LIKE '%".$escaped_text."%'");
} else {
@@ -621,15 +621,15 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$search_text = $state_info->search->text;
- if(!empty($this->where))
+ if (!empty($this->where))
foreach($this->where as $where)
$this->basic_model->having($where[0],$where[1],$where[2]);
foreach($columns as $column)
{
- if(isset($temp_relation[$column->field_name]))
+ if (isset($temp_relation[$column->field_name]))
{
- if(is_array($temp_relation[$column->field_name]))
+ if (is_array($temp_relation[$column->field_name]))
{
foreach($temp_relation[$column->field_name] as $search_field)
{
@@ -641,7 +641,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$this->or_like($temp_relation[$column->field_name], $search_text);
}
}
- elseif(isset($this->relation_n_n[$column->field_name]))
+ elseif (isset($this->relation_n_n[$column->field_name]))
{
//@todo have a where for the relation_n_n statement
}
@@ -656,7 +656,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function table_exists($table_name = null)
{
- if($this->basic_model->db_table_exists($table_name))
+ if ($this->basic_model->db_table_exists($table_name))
return true;
return false;
}
@@ -665,7 +665,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
list($field_name , $related_table , $related_field_title, $where_clause, $order_by) = $relation_info;
- if($primary_key_value !== null)
+ if ($primary_key_value !== null)
{
$primary_key = $this->basic_model->get_primary_key($related_table);
@@ -696,12 +696,12 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$unique_fields = $this->_unique_fields;
$add_fields = $this->get_add_fields();
- if(!empty($required_fields))
+ if (!empty($required_fields))
{
foreach($add_fields as $add_field)
{
$field_name = $add_field->field_name;
- if(!isset($this->validation_rules[$field_name]) && in_array( $field_name, $required_fields) )
+ if (!isset($this->validation_rules[$field_name]) && in_array( $field_name, $required_fields) )
{
$this->set_rules( $field_name, $field_types[$field_name]->display_as, 'required');
}
@@ -710,14 +710,14 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
/** Checking for unique fields. If the field value is not unique then
* return a validation error straight away, if not continue... */
- if(!empty($unique_fields))
+ if (!empty($unique_fields))
{
$form_validation = $this->form_validation();
foreach($add_fields as $add_field)
{
$field_name = $add_field->field_name;
- if(in_array( $field_name, $unique_fields) )
+ if (in_array( $field_name, $unique_fields) )
{
$form_validation->set_rules( $field_name,
$field_types[$field_name]->display_as,
@@ -725,7 +725,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if(!$form_validation->run())
+ if (!$form_validation->run())
{
$validation_result->error_message = $form_validation->error_string();
$validation_result->error_fields = $form_validation->_error_array;
@@ -734,7 +734,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if(!empty($this->validation_rules))
+ if (!empty($this->validation_rules))
{
$form_validation = $this->form_validation();
@@ -743,14 +743,14 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
foreach($add_fields as $add_field)
{
$field_name = $add_field->field_name;
- if(isset($this->validation_rules[$field_name]))
+ if (isset($this->validation_rules[$field_name]))
{
$rule = $this->validation_rules[$field_name];
$form_validation->set_rules($rule['field'],$rule['label'],$rule['rules']);
}
}
- if($form_validation->run())
+ if ($form_validation->run())
{
$validation_result->success = true;
}
@@ -770,7 +770,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function form_validation()
{
- if($this->form_validation === null)
+ if ($this->form_validation === null)
{
$this->form_validation = new grocery_CRUD_Form_validation();
$ci = &get_instance();
@@ -789,12 +789,12 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$unique_fields = $this->_unique_fields;
$edit_fields = $this->get_edit_fields();
- if(!empty($required_fields))
+ if (!empty($required_fields))
{
foreach($edit_fields as $edit_field)
{
$field_name = $edit_field->field_name;
- if(!isset($this->validation_rules[$field_name]) && in_array( $field_name, $required_fields) )
+ if (!isset($this->validation_rules[$field_name]) && in_array( $field_name, $required_fields) )
{
$this->set_rules( $field_name, $field_types[$field_name]->display_as, 'required');
}
@@ -804,7 +804,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
/** Checking for unique fields. If the field value is not unique then
* return a validation error straight away, if not continue... */
- if(!empty($unique_fields))
+ if (!empty($unique_fields))
{
$form_validation = $this->form_validation();
@@ -813,7 +813,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
foreach($edit_fields as $edit_field)
{
$field_name = $edit_field->field_name;
- if(in_array( $field_name, $unique_fields) )
+ if (in_array( $field_name, $unique_fields) )
{
$state_info = $this->getStateInfo();
$primary_key = $this->get_primary_key();
@@ -822,7 +822,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$this->basic_model->where($primary_key,$state_info->primary_key);
$row = $this->basic_model->get_row();
- if(!isset($row->$field_name)) {
+ if (!isset($row->$field_name)) {
throw new Exception("The field name doesn't exist in the database. ".
"Please use the unique fields only for fields ".
"that exist in the database");
@@ -830,7 +830,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$previous_field_name_value = $row->$field_name;
- if(!empty($previous_field_name_value) && $previous_field_name_value != $field_name_value) {
+ if (!empty($previous_field_name_value) && $previous_field_name_value != $field_name_value) {
$form_validation->set_rules( $field_name,
$field_types[$field_name]->display_as,
'is_unique['.$this->basic_db_table.'.'.$field_name.']');
@@ -840,7 +840,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if($form_validation_check && !$form_validation->run())
+ if ($form_validation_check && !$form_validation->run())
{
$validation_result->error_message = $form_validation->error_string();
$validation_result->error_fields = $form_validation->_error_array;
@@ -849,7 +849,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if(!empty($this->validation_rules))
+ if (!empty($this->validation_rules))
{
$form_validation = $this->form_validation();
@@ -858,14 +858,14 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
foreach($edit_fields as $edit_field)
{
$field_name = $edit_field->field_name;
- if(isset($this->validation_rules[$field_name]))
+ if (isset($this->validation_rules[$field_name]))
{
$rule = $this->validation_rules[$field_name];
$form_validation->set_rules($rule['field'],$rule['label'],$rule['rules']);
}
}
- if($form_validation->run())
+ if ($form_validation->run())
{
$validation_result->success = true;
}
@@ -887,21 +887,21 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$validation_result = $this->db_insert_validation();
- if($validation_result->success)
+ if ($validation_result->success)
{
$post_data = $state_info->unwrapped_data;
$add_fields = $this->get_add_fields();
- if($this->callback_insert === null)
+ if ($this->callback_insert === null)
{
- if($this->callback_before_insert !== null)
+ if ($this->callback_before_insert !== null)
{
$callback_return = call_user_func($this->callback_before_insert, $post_data);
- if(!empty($callback_return) && is_array($callback_return))
+ if (!empty($callback_return) && is_array($callback_return))
$post_data = $callback_return;
- elseif($callback_return === false)
+ elseif ($callback_return === false)
return false;
}
@@ -910,34 +910,34 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
foreach($add_fields as $num_row => $field)
{
/* If the multiselect or the set is empty then the browser doesn't send an empty array. Instead it sends nothing */
- if(isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect') && !isset($post_data[$field->field_name]))
+ if (isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect') && !isset($post_data[$field->field_name]))
{
$post_data[$field->field_name] = array();
}
- if(isset($post_data[$field->field_name]) && !isset($this->relation_n_n[$field->field_name]))
+ if (isset($post_data[$field->field_name]) && !isset($this->relation_n_n[$field->field_name]))
{
- if(isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && is_array($post_data[$field->field_name]) && empty($post_data[$field->field_name]))
+ if (isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && is_array($post_data[$field->field_name]) && empty($post_data[$field->field_name]))
{
$insert_data[$field->field_name] = null;
}
- elseif(isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && $post_data[$field->field_name] === '')
+ elseif (isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && $post_data[$field->field_name] === '')
{
$insert_data[$field->field_name] = null;
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'date')
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'date')
{
$insert_data[$field->field_name] = $this->_convert_date_to_sql_date($post_data[$field->field_name]);
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'readonly')
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'readonly')
{
//This empty if statement is to make sure that a readonly field will never inserted/updated
}
- elseif(isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect'))
+ elseif (isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect'))
{
$insert_data[$field->field_name] = !empty($post_data[$field->field_name]) ? implode(',',$post_data[$field->field_name]) : '';
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'datetime'){
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'datetime'){
$insert_data[$field->field_name] = $this->_convert_date_to_sql_date(substr($post_data[$field->field_name],0,10)).
substr($post_data[$field->field_name],10);
}
@@ -950,7 +950,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$insert_result = $this->basic_model->db_insert($insert_data);
- if($insert_result !== false)
+ if ($insert_result !== false)
{
$insert_primary_key = $insert_result;
}
@@ -959,7 +959,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
return false;
}
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
foreach($this->relation_n_n as $field_name => $field_info)
{
@@ -968,11 +968,11 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if($this->callback_after_insert !== null)
+ if ($this->callback_after_insert !== null)
{
$callback_return = call_user_func($this->callback_after_insert, $post_data, $insert_primary_key);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
@@ -982,13 +982,13 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$callback_return = call_user_func($this->callback_insert, $post_data);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
}
- if(isset($insert_primary_key))
+ if (isset($insert_primary_key))
return $insert_primary_key;
else
return true;
@@ -1004,22 +1004,22 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$edit_fields = $this->get_edit_fields();
- if($validation_result->success)
+ if ($validation_result->success)
{
$post_data = $state_info->unwrapped_data;
$primary_key = $state_info->primary_key;
- if($this->callback_update === null)
+ if ($this->callback_update === null)
{
- if($this->callback_before_update !== null)
+ if ($this->callback_before_update !== null)
{
$callback_return = call_user_func($this->callback_before_update, $post_data, $primary_key);
- if(!empty($callback_return) && is_array($callback_return))
+ if (!empty($callback_return) && is_array($callback_return))
{
$post_data = $callback_return;
}
- elseif($callback_return === false)
+ elseif ($callback_return === false)
{
return false;
}
@@ -1031,34 +1031,34 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
foreach($edit_fields as $num_row => $field)
{
/* If the multiselect or the set is empty then the browser doesn't send an empty array. Instead it sends nothing */
- if(isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect') && !isset($post_data[$field->field_name]))
+ if (isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect') && !isset($post_data[$field->field_name]))
{
$post_data[$field->field_name] = array();
}
- if(isset($post_data[$field->field_name]) && !isset($this->relation_n_n[$field->field_name]))
+ if (isset($post_data[$field->field_name]) && !isset($this->relation_n_n[$field->field_name]))
{
- if(isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && is_array($post_data[$field->field_name]) && empty($post_data[$field->field_name]))
+ if (isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && is_array($post_data[$field->field_name]) && empty($post_data[$field->field_name]))
{
$update_data[$field->field_name] = null;
}
- elseif(isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && $post_data[$field->field_name] === '')
+ elseif (isset($types[$field->field_name]->db_null) && $types[$field->field_name]->db_null && $post_data[$field->field_name] === '')
{
$update_data[$field->field_name] = null;
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'date')
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'date')
{
$update_data[$field->field_name] = $this->_convert_date_to_sql_date($post_data[$field->field_name]);
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'readonly')
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'readonly')
{
//This empty if statement is to make sure that a readonly field will never inserted/updated
}
- elseif(isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect'))
+ elseif (isset($types[$field->field_name]->crud_type) && ($types[$field->field_name]->crud_type == 'set' || $types[$field->field_name]->crud_type == 'multiselect'))
{
$update_data[$field->field_name] = !empty($post_data[$field->field_name]) ? implode(',',$post_data[$field->field_name]) : '';
}
- elseif(isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'datetime'){
+ elseif (isset($types[$field->field_name]->crud_type) && $types[$field->field_name]->crud_type == 'datetime'){
$update_data[$field->field_name] = $this->_convert_date_to_sql_date(substr($post_data[$field->field_name],0,10)).
substr($post_data[$field->field_name],10);
}
@@ -1069,12 +1069,12 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if($this->basic_model->db_update($update_data, $primary_key) === false)
+ if ($this->basic_model->db_update($update_data, $primary_key) === false)
{
return false;
}
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
foreach($this->relation_n_n as $field_name => $field_info)
{
@@ -1090,11 +1090,11 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if($this->callback_after_update !== null)
+ if ($this->callback_after_update !== null)
{
$callback_return = call_user_func($this->callback_after_update, $post_data, $primary_key);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
@@ -1105,7 +1105,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$callback_return = call_user_func($this->callback_update, $post_data, $primary_key);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
@@ -1122,21 +1122,21 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function _convert_date_to_sql_date($date)
{
$date = substr($date,0,10);
- if(preg_match('/\d{4}-\d{2}-\d{2}/',$date))
+ if (preg_match('/\d{4}-\d{2}-\d{2}/',$date))
{
//If it's already a sql-date don't convert it!
return $date;
- }elseif(empty($date))
+ }elseif (empty($date))
{
return '';
}
$date_array = preg_split( '/[-\.\/ ]/', $date);
- if($this->php_date_format == 'd/m/Y')
+ if ($this->php_date_format == 'd/m/Y')
{
$sql_date = date('Y-m-d',mktime(0,0,0,$date_array[1],$date_array[0],$date_array[2]));
}
- elseif($this->php_date_format == 'm/d/Y')
+ elseif ($this->php_date_format == 'm/d/Y')
{
$sql_date = date('Y-m-d',mktime(0,0,0,$date_array[0],$date_array[1],$date_array[2]));
}
@@ -1150,7 +1150,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function _get_field_names_to_search(array $relation_values)
{
- if(!strstr($relation_values[2],'{'))
+ if (!strstr($relation_values[2],'{'))
return $this->_unique_join_name($relation_values[0]).'.'.$relation_values[2];
else
{
@@ -1192,20 +1192,20 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$primary_key_value = $state_info->primary_key;
- if($this->callback_delete === null)
+ if ($this->callback_delete === null)
{
- if($this->callback_before_delete !== null)
+ if ($this->callback_before_delete !== null)
{
$callback_return = call_user_func($this->callback_before_delete, $primary_key_value);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
}
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
foreach($this->relation_n_n as $field_name => $field_info)
{
@@ -1215,16 +1215,16 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$delete_result = $this->basic_model->db_delete($primary_key_value);
- if($delete_result === false)
+ if ($delete_result === false)
{
return false;
}
- if($this->callback_after_delete !== null)
+ if ($this->callback_after_delete !== null)
{
$callback_return = call_user_func($this->callback_after_delete, $primary_key_value);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
@@ -1235,7 +1235,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$callback_return = call_user_func($this->callback_delete, $primary_key_value);
- if($callback_return === false)
+ if ($callback_return === false)
{
return false;
}
@@ -1256,44 +1256,44 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function get_list()
{
- if(!empty($this->order_by))
+ if (!empty($this->order_by))
$this->basic_model->order_by($this->order_by[0],$this->order_by[1]);
- if(!empty($this->where))
+ if (!empty($this->where))
foreach($this->where as $where)
$this->basic_model->where($where[0],$where[1],$where[2]);
- if(!empty($this->or_where))
+ if (!empty($this->or_where))
foreach($this->or_where as $or_where)
$this->basic_model->or_where($or_where[0],$or_where[1],$or_where[2]);
- if(!empty($this->like))
+ if (!empty($this->like))
foreach($this->like as $like)
$this->basic_model->like($like[0],$like[1],$like[2]);
- if(!empty($this->or_like))
+ if (!empty($this->or_like))
foreach($this->or_like as $or_like)
$this->basic_model->or_like($or_like[0],$or_like[1],$or_like[2]);
- if(!empty($this->having))
+ if (!empty($this->having))
foreach($this->having as $having)
$this->basic_model->having($having[0],$having[1],$having[2]);
- if(!empty($this->or_having))
+ if (!empty($this->or_having))
foreach($this->or_having as $or_having)
$this->basic_model->or_having($or_having[0],$or_having[1],$or_having[2]);
- if(!empty($this->relation))
+ if (!empty($this->relation))
foreach($this->relation as $relation)
$this->basic_model->join_relation($relation[0],$relation[1],$relation[2]);
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
$columns = $this->get_columns();
foreach($columns as $column)
{
//Use the relation_n_n ONLY if the column is called . The set_relation_n_n are slow and it will make the table slower without any reason as we don't need those queries.
- if(isset($this->relation_n_n[$column->field_name]))
+ if (isset($this->relation_n_n[$column->field_name]))
{
$this->basic_model->set_relation_n_n_field($this->relation_n_n[$column->field_name]);
}
@@ -1301,12 +1301,12 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
- if($this->theme_config['crud_paging'] === true)
+ if ($this->theme_config['crud_paging'] === true)
{
- if($this->limit === null)
+ if ($this->limit === null)
{
$default_per_page = $this->config->default_per_page;
- if(is_numeric($default_per_page) && $default_per_page >1)
+ if (is_numeric($default_per_page) && $default_per_page >1)
{
$this->basic_model->limit($default_per_page);
}
@@ -1330,7 +1330,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$values = $this->basic_model->get_edit_values($primary_key_value);
- if(!empty($this->relation_n_n))
+ if (!empty($this->relation_n_n))
{
foreach($this->relation_n_n as $field_name => $field_info)
{
@@ -1358,17 +1358,17 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function upload_file($state_info)
{
- if(isset($this->upload_fields[$state_info->field_name]) )
+ if (isset($this->upload_fields[$state_info->field_name]) )
{
- if($this->callback_upload === null)
+ if ($this->callback_upload === null)
{
- if($this->callback_before_upload !== null)
+ if ($this->callback_before_upload !== null)
{
$callback_before_upload_response = call_user_func($this->callback_before_upload, $_FILES, $this->upload_fields[$state_info->field_name]);
- if($callback_before_upload_response === false)
+ if ($callback_before_upload_response === false)
return false;
- elseif(is_string($callback_before_upload_response))
+ elseif (is_string($callback_before_upload_response))
return $callback_before_upload_response;
}
@@ -1385,7 +1385,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$allowed_files = $this->config->file_upload_allow_file_types;
$reg_exp = '';
- if(!empty($upload_info->allowed_file_types)){
+ if (!empty($upload_info->allowed_file_types)){
$reg_exp = '/(\\.|\\/)('.$upload_info->allowed_file_types.')$/i';
}else{
$reg_exp = '/(\\.|\\/)('.$allowed_files.')$/i';
@@ -1405,7 +1405,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
$upload_handler->default_config_path = $this->default_config_path;
$uploader_response = $upload_handler->post();
- if(is_array($uploader_response))
+ if (is_array($uploader_response))
{
foreach($uploader_response as &$response)
{
@@ -1414,15 +1414,15 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
}
}
- if($this->callback_after_upload !== null)
+ if ($this->callback_after_upload !== null)
{
$callback_after_upload_response = call_user_func($this->callback_after_upload, $uploader_response , $this->upload_fields[$state_info->field_name] , $_FILES );
- if($callback_after_upload_response === false)
+ if ($callback_after_upload_response === false)
return false;
- elseif(is_string($callback_after_upload_response))
+ elseif (is_string($callback_after_upload_response))
return $callback_after_upload_response;
- elseif(is_array($callback_after_upload_response))
+ elseif (is_array($callback_after_upload_response))
$uploader_response = $callback_after_upload_response;
}
@@ -1432,7 +1432,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
{
$upload_response = call_user_func($this->callback_upload, $_FILES, $this->upload_fields[$state_info->field_name] );
- if($upload_response === false)
+ if ($upload_response === false)
{
return false;
}
@@ -1451,13 +1451,13 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function delete_file($state_info)
{
- if(isset($state_info->field_name) && isset($this->upload_fields[$state_info->field_name]))
+ if (isset($state_info->field_name) && isset($this->upload_fields[$state_info->field_name]))
{
$upload_info = $this->upload_fields[$state_info->field_name];
- if(file_exists("{$upload_info->upload_path}/{$state_info->file_name}"))
+ if (file_exists("{$upload_info->upload_path}/{$state_info->file_name}"))
{
- if( unlink("{$upload_info->upload_path}/{$state_info->file_name}") )
+ if ( unlink("{$upload_info->upload_path}/{$state_info->file_name}") )
{
$this->basic_model->db_file_delete($state_info->field_name, $state_info->file_name);
@@ -1482,7 +1482,7 @@ class grocery_CRUD_Model_Driver extends grocery_CRUD_Field_Types
protected function ajax_relation($state_info)
{
- if(!isset($this->relation[$state_info->field_name]))
+ if (!isset($this->relation[$state_info->field_name]))
return false;
list($field_name, $related_table, $related_field_title, $where_clause, $order_by) = $this->relation[$state_info->field_name];
@@ -1536,7 +1536,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
{
//var_dump($this->theme_path);
//var_dump($this->theme);
- if(!file_exists($this->theme_path.$this->theme.'/views/list_template.php'))
+ if (!file_exists($this->theme_path.$this->theme.'/views/list_template.php'))
{
throw new Exception('The template does not exist. Please check your files and try again.', 12);
die();
@@ -1586,7 +1586,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
$data->paging_options = $this->config->paging_options;
$data->default_per_page = is_numeric($default_per_page) && $default_per_page >1 && in_array($default_per_page,$data->paging_options)? $default_per_page : 25;
- if($data->list === false)
+ if ($data->list === false)
{
throw new Exception('It is impossible to get data. Please check your model and try again.', 13);
$data->list = array();
@@ -1600,7 +1600,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
$data->list[$num_row]->read_url = $data->read_url.'/'.$row->{$data->primary_key};
}
- if(!$ajax)
+ if (!$ajax)
{
$this->_add_js_vars(array('dialog_forms' => $this->config->dialog_forms));
@@ -1728,7 +1728,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
$value = str_replace(array(" ","&",">","<"),array(" ","&",">","<"),$value);
//If the value has only spaces and nothing more then add the whitespace html character
- if(str_replace(" ","",$value) == "")
+ if (str_replace(" ","",$value) == "")
$value = " ";
return strip_tags($value);
@@ -1756,7 +1756,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
protected function change_list_add_actions($list)
{
- if(empty($this->actions))
+ if (empty($this->actions))
return $list;
$primary_key = $this->get_primary_key();
@@ -1766,7 +1766,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
$actions_urls = array();
foreach($this->actions as $unique_id => $action)
{
- if(!empty($action->url_callback))
+ if (!empty($action->url_callback))
{
$actions_urls[$unique_id] = call_user_func($action->url_callback, $row->$primary_key, $row);
}
@@ -1795,9 +1795,9 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
{
$field_name = $column->field_name;
$field_value = isset( $row->{$column->field_name} ) ? $row->{$column->field_name} : null;
- if( $has_callbacks && isset($this->callback_column[$field_name]) )
+ if ( $has_callbacks && isset($this->callback_column[$field_name]) )
$list[$num_row]->$field_name = call_user_func($this->callback_column[$field_name], $field_value, $row);
- elseif(isset($types[$field_name]))
+ elseif (isset($types[$field_name]))
$list[$num_row]->$field_name = $this->change_list_value($types[$field_name] , $field_value);
else
$list[$num_row]->$field_name = $field_value;
@@ -1896,7 +1896,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
protected function delete_layout($delete_result = true)
{
@ob_end_clean();
- if($delete_result === false)
+ if ($delete_result === false)
{
$error_message = ' '.$this->l('delete_error_message').'
'.$this->l('insert_success_message'); - if(!$this->unset_back_to_list && !empty($insert_result) && !$this->unset_edit) + if (!$this->unset_back_to_list && !empty($insert_result) && !$this->unset_edit) { $success_message .= " ".$this->l('form_edit')." {$this->subject} "; @@ -1950,7 +1950,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver } } - if(!$this->unset_back_to_list && !$this->_is_ajax()) + if (!$this->unset_back_to_list && !$this->_is_ajax()) { $success_message .= " ".$this->l('form_go_back_to_list').""; } @@ -1977,7 +1977,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver protected function upload_layout($upload_result, $field_name) { @ob_end_clean(); - if($upload_result !== false && !is_string($upload_result) && empty($upload_result[0]->error)) + if ($upload_result !== false && !is_string($upload_result) && empty($upload_result[0]->error)) { echo json_encode( (object)array( @@ -1988,9 +1988,9 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver else { $result = (object)array('success' => false); - if(is_string($upload_result)) + if (is_string($upload_result)) $result->message = $upload_result; - if(!empty($upload_result[0]->error)) + if (!empty($upload_result[0]->error)) $result->message = $upload_result[0]->error; echo json_encode($result); @@ -2002,7 +2002,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver protected function delete_file_layout($upload_result) { @ob_end_clean(); - if($upload_result !== false) + if ($upload_result !== false) { echo json_encode( (object)array( 'success' => true ) ); } @@ -2127,7 +2127,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver unset($css_files[sha1($this->default_theme_path.'/bootstrap/css/bootstrap/bootstrap.min.css')]); } - if($this->echo_and_die === false) + if ($this->echo_and_die === false) { /** Initialize JavaScript variables */ $js_vars = array( @@ -2147,7 +2147,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver 'output' => $this->views_as_string, ); } - elseif($this->echo_and_die === true) + elseif ($this->echo_and_die === true) { echo $this->views_as_string; die(); @@ -2157,14 +2157,14 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver protected function update_layout($update_result = false, $state_info = null) { @ob_end_clean(); - if($update_result === false) + if ($update_result === false) { echo json_encode(array('success' => $update_result)); } else { $success_message = '
'.$this->l('update_success_message'); - if(!$this->unset_back_to_list && !$this->_is_ajax()) + if (!$this->unset_back_to_list && !$this->_is_ajax()) { $success_message .= " ".$this->l('form_go_back_to_list').""; } @@ -2185,7 +2185,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js'); $this->set_js_config($this->default_javascript_path.'/jquery_plugins/config/jquery.numeric.config.js'); $extra_attributes = ''; - if(!empty($field_info->db_max_length)) + if (!empty($field_info->db_max_length)) $extra_attributes .= "maxlength='{$field_info->db_max_length}'"; $input = ""; return $input; @@ -2237,7 +2237,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver protected function get_text_input($field_info,$value) { - if($field_info->extras == 'text_editor') + if ($field_info->extras == 'text_editor') { $editor = $this->config->default_text_editor; switch ($editor) { @@ -2280,19 +2280,19 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery-ui-timepicker-addon.js'); - if($this->language !== 'english') + if ($this->language !== 'english') { include($this->default_config_path.'/language_alias.php'); - if(array_key_exists($this->language, $language_alias)) + if (array_key_exists($this->language, $language_alias)) { $i18n_date_js_file = $this->default_javascript_path.'/jquery_plugins/ui/i18n/datepicker/jquery.ui.datepicker-'.$language_alias[$this->language].'.js'; - if(file_exists($i18n_date_js_file)) + if (file_exists($i18n_date_js_file)) { $this->set_js_lib($i18n_date_js_file); } $i18n_datetime_js_file = $this->default_javascript_path.'/jquery_plugins/ui/i18n/timepicker/jquery-ui-timepicker-'.$language_alias[$this->language].'.js'; - if(file_exists($i18n_datetime_js_file)) + if (file_exists($i18n_datetime_js_file)) { $this->set_js_lib($i18n_datetime_js_file); } @@ -2301,7 +2301,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $this->set_js_config($this->default_javascript_path.'/jquery_plugins/config/jquery-ui-timepicker-addon.config.js'); - if(!empty($value) && $value != '0000-00-00 00:00:00' && $value != '1970-01-01 00:00:00'){ + if (!empty($value) && $value != '0000-00-00 00:00:00' && $value != '1970-01-01 00:00:00'){ list($year,$month,$day) = explode('-',substr($value,0,10)); $date = date($this->php_date_format, mktime(0,0,0,$month,$day,$year)); $datetime = $date.substr($value,10); @@ -2318,7 +2318,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver protected function get_hidden_input($field_info,$value) { - if($field_info->extras !== null && $field_info->extras != false) + if ($field_info->extras !== null && $field_info->extras != false) $value = $field_info->extras; $input = ""; return $input; @@ -2329,7 +2329,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $value = !is_string($value) ? '' : $value; $extra_attributes = ''; - if(!empty($field_info->db_max_length)) + if (!empty($field_info->db_max_length)) $extra_attributes .= "maxlength='{$field_info->db_max_length}'"; $input = ""; return $input; @@ -2340,13 +2340,13 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); - if($this->language !== 'english') + if ($this->language !== 'english') { include($this->default_config_path.'/language_alias.php'); - if(array_key_exists($this->language, $language_alias)) + if (array_key_exists($this->language, $language_alias)) { $i18n_date_js_file = $this->default_javascript_path.'/jquery_plugins/ui/i18n/datepicker/jquery.ui.datepicker-'.$language_alias[$this->language].'.js'; - if(file_exists($i18n_date_js_file)) + if (file_exists($i18n_date_js_file)) { $this->set_js_lib($i18n_date_js_file); } @@ -2355,7 +2355,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $this->set_js_config($this->default_javascript_path.'/jquery_plugins/config/jquery.datepicker.config.js'); - if(!empty($value) && $value != '0000-00-00' && $value != '1970-01-01') + if (!empty($value) && $value != '0000-00-00' && $value != '1970-01-01') { list($year,$month,$day) = explode('-',substr($value,0,10)); $date = date($this->php_date_format, mktime(0,0,0,$month,$day,$year)); @@ -2492,7 +2492,7 @@ class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver $input = "