Projektabgabe Übersicht: added flag "inVisualLibrary with event"

This commit is contained in:
Alexei Karpenko
2025-11-10 14:43:28 +01:00
parent 34242e12ea
commit 6861e26ed6
2 changed files with 21 additions and 5 deletions
@@ -14,6 +14,8 @@
if (!defined('BASEPATH')) exit('No direct script access allowed');
use CI3_Events as Events;
class PaabgabeUebersicht extends FHCAPI_Controller
{
const DOWNLOAD_PERMISSION = 'lehre/abgabetool:download';
@@ -59,6 +61,12 @@ class PaabgabeUebersicht extends FHCAPI_Controller
if (isError($result)) $this->terminateWithError(getError($result), self::ERROR_TYPE_DB);
// check wether Abgabe is in visual library
if (hasData($result))
{
Events::trigger('in_visual_library', getData($result));
}
$this->terminateWithSuccess(getData($result) ?: []);
}