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

PhpIncludeInspection More...

+ Inheritance diagram for ilModulesOrgUnitExtractor:
+ Collaboration diagram for ilModulesOrgUnitExtractor:

Public Member Functions

 extract ($event, $parameters)
 
- Public Member Functions inherited from ilBaseExtractor
 __construct (ilExtractedParams $ilExtractedParams)
 ilBaseExtractor constructor. More...
 
 extract ($event, $parameters)
 

Protected Member Functions

 extractWithUser ($parameters)
 
- Protected Member Functions inherited from ilBaseExtractor
 extractWithUser ($parameters)
 
 extractWithoutUser ($parameters)
 

Additional Inherited Members

- Protected Attributes inherited from ilBaseExtractor
 $ilExtractedParams
 

Detailed Description

PhpIncludeInspection

Class ilModulesOrgUnitExtractor

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 14 of file class.ilModulesOrgUnitExtractor.php.

Member Function Documentation

◆ extract()

ilModulesOrgUnitExtractor::extract (   $event,
  $parameters 
)
Parameters
string$event
array$parameters
Returns

Implements ilExtractor.

Definition at line 22 of file class.ilModulesOrgUnitExtractor.php.

References ilBaseExtractor\$ilExtractedParams, ilBaseExtractor\extractWithoutUser(), extractWithUser(), and ilExtractedParams\setSubjectType().

23  {
24  $this->ilExtractedParams->setSubjectType('orgunit');
25 
26  switch($event)
27  {
28  case 'assignUsersToEmployeeRole':
29  case 'assignUsersToSuperiorRole':
30  case 'deassignUserFromEmployeeRole':
31  case 'deassignUserFromSuperiorRole':
32  case 'assignUserToLocalRole':
33  case 'deassignUserFromLocalRole':
34  $this->extractWithUser($parameters);
35  break;
36  case 'initDefaultRoles':
37  case 'delete':
38  $this->extractWithoutUser($parameters);
39  }
40 
42  }
extractWithoutUser($parameters)
Class ilExtractedParams.
+ Here is the call graph for this function:

◆ extractWithUser()

ilModulesOrgUnitExtractor::extractWithUser (   $parameters)
protected
Parameters
array$parameters

Definition at line 47 of file class.ilModulesOrgUnitExtractor.php.

References ilExtractedParams\setContextId(), ilExtractedParams\setContextType(), and ilExtractedParams\setSubjectId().

Referenced by extract().

48  {
49 
50  $this->ilExtractedParams->setSubjectId($parameters['obj_id']);
51  $this->ilExtractedParams->setContextType('usr_id');
52  $this->ilExtractedParams->setContextId($parameters['user_id']); // usr_id in many other places
53  }
Class ilExtractedParams.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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