mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Added method getLastStatus to controller Prestudentstatus
This commit is contained in:
@@ -49,6 +49,27 @@ class Prestudentstatus 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->PrestudentstatusModel->getLastStatus($prestudent_id, $studiensemester_kurzbz, $status_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
|
||||
Reference in New Issue
Block a user