use "getStudiensemester" from dedicated Lists Controller

This commit is contained in:
cgfhtw
2024-07-15 15:13:41 +02:00
parent 780dce293d
commit 0a457c4bac
3 changed files with 5 additions and 24 deletions
@@ -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);