mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Added new permission to access to tbl_studiengang table using basis/studiengang
- Added method getStudiengang to class Studiengang2 to get a studiengang from pk - Added method addDistinct to class DB_Model to add the distinct clause to a query
This commit is contained in:
@@ -27,6 +27,22 @@ class Studiengang2 extends APIv1_Controller
|
||||
$this->StudiengangModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
public function getStudiengang()
|
||||
{
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
|
||||
if(isset($studiengang_kz))
|
||||
{
|
||||
$result = $this->StudiengangModel->load($studiengang_kz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
public function getAllForBewerbung()
|
||||
{
|
||||
$this->response($this->StudiengangModel->getAllForBewerbung(), REST_Controller::HTTP_OK);
|
||||
|
||||
Reference in New Issue
Block a user