35         return require ilEventHandlingBuildEventInfoObjective::PATH();
    41     public function hasEvent(
string $component, 
string $type, 
string $type_specification): bool
    45                 "component" => $component,
    47                 "type_specification" => $type_specification
    49             $this->event_handling_data,
    58     public function getEvent(
string $component, 
string $type, 
string $type_specification): array
    60         if ($this->
hasEvent($component, $type, $type_specification)) {
    62                 "component" => $component,
    64                 "type_specification" => $type_specification
    68         throw new \InvalidArgumentException(
    69             "There is no event with the component \"" . $component . 
"\", type \"" . $type
    70             . 
"\" and type specification \"" . $type_specification . 
"\"."    80         foreach ($this->event_handling_data as $event_key => $event_values) {
    81             if ($event_values[
"type"] == $type) {
    82                 yield $this->event_handling_data[$event_key];
 getEvent(string $component, string $type, string $type_specification)
Get the event with the given component, type and type specification. 
 
hasEvent(string $component, string $type, string $type_specification)
Check if an event exists. 
 
readEventHandlingData()
Read the event data stored in the artifact. 
 
array $event_handling_data
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getEventsByType(string $type)
Get all events of the given type.