24 require_once
'./Services/WorkflowEngine/classes/class.ilWorkflowEngine.php';
74 $this->db = $DIC->database();
80 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
82 $cached_listeners = $ilGlobalCache->get(
'listeners');
83 if (is_array($cached_listeners)) {
84 $this->listener = $cached_listeners;
91 $this->listener =
array();
93 $sql =
"SELECT * FROM il_event_handling" .
94 " WHERE type = " .
$ilDB->quote(
"listen",
"text");
97 $this->listener[
$row[
"id"]][] = $row[
"component"];
100 $ilGlobalCache->set(
'listeners', $this->listener);
112 public function raise($a_component, $a_event, $a_parameter =
"")
114 if (is_array($this->listener[$a_component])) {
115 foreach ($this->listener[$a_component] as
$listener) {
117 $last_slash = strripos($listener,
'/');
118 $comp = substr($listener, 0, $last_slash);
121 if ($comp ==
'Plugins') {
122 $name = substr($listener, $last_slash + 1);
125 if ($pdata[
'name'] ==
$name) {
127 $pdata[
'component_type'],
128 $pdata[
'component_name'],
133 $plugin->handleEvent($a_component, $a_event, $a_parameter);
137 $class =
'il' . substr($listener, $last_slash + 1) .
'AppEventListener';
138 $file =
"./" . $listener .
"/classes/class." . $class .
".php";
141 if (is_file(
$file)) {
143 call_user_func(
array($class,
'handleEvent'), $a_component, $a_event, $a_parameter);
150 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
152 foreach ($plugins as $pl) {
159 $plugin->handleEvent($a_component, $a_event, $a_parameter);
163 $workflow_engine->handleEvent($a_component, $a_event, $a_parameter);
static getActivePluginsForSlot($a_ctype, $a_cname, $a_slot_id)
Get all active plugins for a slot.
static getInstance($component)
static getActivePlugins()
Get info for all active plugins.
ilWorkflowEngine is part of the petri net based workflow engine.
foreach($_POST as $key=> $value) $res
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
Create styles array
The data for the language used.
__construct()
Constructor.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file