ILIAS  release_4-4 Revision
ilForumAppEventListener Class Reference

Forum listener. More...

+ Collaboration diagram for ilForumAppEventListener:

Static Public Member Functions

static handleEvent ($a_component, $a_event, $a_parameter)
 Handle an event in a listener. More...
 

Detailed Description

Forum listener.

Listens to events of other components.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilForumAppEventListener.php.

Member Function Documentation

◆ handleEvent()

static ilForumAppEventListener::handleEvent (   $a_component,
  $a_event,
  $a_parameter 
)
static

Handle an event in a listener.

Parameters
string$a_componentcomponent, e.g. "Modules/Forum" or "Services/User"
string$a_eventevent e.g. "createUser", "updateUser", "deleteUser", ...
array$a_parameterparameter array (assoc), array("name" => ..., "phone_office" => ...)

Definition at line 20 of file class.ilForumAppEventListener.php.

References ilForumNotification\_clearForcedForumNotifications().

21  {
22  switch($a_component)
23  {
24  case "Services/News":
25  switch ($a_event)
26  {
27  case "readNews":
28  // here we could set postings to read, if news is
29  // read (has to be implemented)
30  break;
31  }
32  break;
33 
34  case "Services/Tree":
35  switch ($a_event)
36  {
37  case "moveTree":
38  include_once './Modules/Forum/classes/class.ilForumNotification.php';
40  break;
41  }
42  break;
43  }
44  }
static _clearForcedForumNotifications($a_parameter)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: