refactor detail Header, relaod array if semester changed, show no status if no status, phrase

This commit is contained in:
ma0068
2026-03-09 11:42:24 +01:00
parent 9b4fa132dc
commit 2237e9f1b7
6 changed files with 129 additions and 8 deletions
@@ -0,0 +1,30 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
use \DateTime as DateTime;
class DetailHeader extends FHCAPI_Controller
{
public function __construct()
{
parent::__construct([
'getSemesterStati' => ['admin:r', 'assistenz:r'],
]);
}
//------------------------------------------------------------------------------------------------------------------
// Public methods
public function getSemesterStati($prestudent_id)
{
$this->load->model('crm/Prestudentstatus_model', 'PrestudentstatusModel');
$result = $this->PrestudentstatusModel->getAllPrestudentstatiWithStudiensemester($prestudent_id);
$data = $this->getDataOrTerminateWithError($result);
$this->terminateWithSuccess($data);
}
}