mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Moved old libraries to CI
- Extended Controllers functionalities - Added controls to ueberbuchung.php, zeitwuensche.php and funktion_det.php pages to avoid warnings and notices, especially when no data are in DB - Removed fhcdb_helper.php because it's no more needed
This commit is contained in:
@@ -65,6 +65,27 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getLastStatus()
|
||||
{
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
$result = $this->PrestudentModel->getLastStatus($prestudent_id, $studiensemester_kurzbz, $status_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
|
||||
@@ -46,6 +46,31 @@ class Ort extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
$raumtyp_kurzbz = $this->get('raumtyp_kurzbz');
|
||||
|
||||
$this->OrtModel->addOrder('ort_kurzbz');
|
||||
|
||||
if (!is_null($raumtyp_kurzbz) && $raumtyp_kurzbz != '')
|
||||
{
|
||||
$result = $this->OrtModel->addJoin('public.tbl_ortraumtyp', 'ort_kurzbz');
|
||||
if ($result->error == EXIT_SUCCESS)
|
||||
{
|
||||
$result = $this->OrtModel->loadWhere(array('raumtyp_kurzbz' => $raumtyp_kurzbz));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->OrtModel->loadWhole();
|
||||
}
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
|
||||
Reference in New Issue
Block a user