mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Codesniffer compliant: if, for and while
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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')));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user