ILIAS  release_8 Revision v8.23
ilOrgUnitAppEventListener Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilOrgUnitAppEventListener:

Static Public Member Functions

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

Static Protected Attributes

static array $ref_ids = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitAppEventListener

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Member Function Documentation

◆ handleEvent()

static ilOrgUnitAppEventListener::handleEvent ( string  $a_component,
string  $a_event,
array  $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 33 of file class.ilOrgUnitAppEventListener.php.

References $DIC, $ref_id, and ilObject\_lookupType().

33  : void
34  {
35  switch ($a_component) {
36  case 'Services/Tree':
37  switch ($a_event) {
38  case 'moveTree':
39  $moved_ref_id = $a_parameter['source_id'];
40  if (ilObject2::_lookupType($moved_ref_id, true) == 'orgu') {
41  self::rebuildOrguPathRecurvice($moved_ref_id);
42  }
43 
44  break;
45  }
46  break;
47  }
48  }
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

Field Documentation

◆ $ref_ids

array ilOrgUnitAppEventListener::$ref_ids = []
staticprotected

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


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