ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilServicesAuthenticationExtractor Class Reference

PhpIncludeInspection More...

+ Inheritance diagram for ilServicesAuthenticationExtractor:
+ Collaboration diagram for ilServicesAuthenticationExtractor:

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from ilBaseExtractor
 $ilExtractedParams
 

Detailed Description

PhpIncludeInspection

Class ilServicesAuthenticationExtractor

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

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

Member Function Documentation

◆ extract()

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

Implements ilExtractor.

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

References ilBaseExtractor\$ilExtractedParams, extractAfterLogin(), and ilExtractedParams\setSubjectType().

23  {
24  $this->ilExtractedParams->setSubjectType('authentication');
25 
26  switch ($event) {
27  case 'afterLogin':
28  $this->extractAfterLogin($parameters);
29  break;
30  // case 'expiredSessionDetected': Can this be supported? No params... TODO: Add some thinking to it...
31  // case 'reachedSessionPoolLimit': Can this be supported? No params... TODO: Add some thinking to it...
32 
33  }
34 
36  }
Class ilExtractedParams.
+ Here is the call graph for this function:

◆ extractAfterLogin()

ilServicesAuthenticationExtractor::extractAfterLogin (   $parameters)
protected
Parameters
array$parameters

Definition at line 41 of file class.ilServicesAuthenticationExtractor.php.

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

Referenced by extract().

42  {
44  $this->ilExtractedParams->setContextType('user');
45  $this->ilExtractedParams->setContextId(ilObjUser::_lookupId($parameters['username']));
46  }
static _lookupId($a_user_str)
Lookup id by login.
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: