ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilOrgUnitAppEventListener Class Reference

Class ilOrgUnitAppEventListener. More...

+ Collaboration diagram for ilOrgUnitAppEventListener:

Static Public Member Functions

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

Static Protected Attributes

static $ref_ids = array()
 

Detailed Description

Member Function Documentation

◆ handleEvent()

static ilOrgUnitAppEventListener::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 22 of file class.ilOrgUnitAppEventListener.php.

References $ref_id, and ilObject2\_lookupType().

22  {
23  switch ($a_component) {
24  case 'Services/Tree':
25  switch ($a_event) {
26  case 'moveTree':
27  $moved_ref_id = $a_parameter['source_id'];
28  if (ilObject2::_lookupType($moved_ref_id, true) == 'orgu') {
29  self::rebuildOrguPathRecurvice($moved_ref_id);
30  }
31 
32  break;
33  }
34  break;
35  }
36  }
static _lookupType($a_id, $a_reference=false)
+ Here is the call graph for this function:

Field Documentation

◆ $ref_ids

ilOrgUnitAppEventListener::$ref_ids = array()
staticprotected

Definition at line 12 of file class.ilOrgUnitAppEventListener.php.


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