mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-15 14:02:17 +00:00
use "getStudiensemester" from dedicated Lists Controller
This commit is contained in:
@@ -19,7 +19,6 @@ class Prestudent extends FHCAPI_Controller
|
||||
'getAufmerksamdurch' => self::PERM_LOGGED,
|
||||
'getBerufstaetigkeit' => self::PERM_LOGGED,
|
||||
'getTypenStg' => self::PERM_LOGGED,
|
||||
'getStudiensemester' => self::PERM_LOGGED,
|
||||
'getStudienplaene' => self::PERM_LOGGED
|
||||
]);
|
||||
|
||||
@@ -265,20 +264,6 @@ class Prestudent extends FHCAPI_Controller
|
||||
return $this->terminateWithSuccess(getData($result) ?: []);
|
||||
}
|
||||
|
||||
public function getStudiensemester()
|
||||
{
|
||||
$this->load->model('organisation/Studiensemester_model', 'StudiensemesterModel');
|
||||
|
||||
$this->StudiensemesterModel->addOrder('start', 'DESC');
|
||||
$this->StudiensemesterModel->addLimit(20);
|
||||
|
||||
$result = $this->StudiensemesterModel->load();
|
||||
if (isError($result)) {
|
||||
$this->terminateWithError(getError($result), self::ERROR_TYPE_GENERAL);
|
||||
}
|
||||
return $this->terminateWithSuccess(getData($result) ?: []);
|
||||
}
|
||||
|
||||
public function getStudienplaene($prestudent_ids)
|
||||
{
|
||||
$prestudent_ids = urldecode($prestudent_ids);
|
||||
|
||||
Reference in New Issue
Block a user