ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilServicesAuthenticationExtractor.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
require_once
'./Services/WorkflowEngine/classes/extractors/class.ilBaseExtractor.php'
;
6
14
class
ilServicesAuthenticationExtractor
extends
ilBaseExtractor
15
{
22
public
function
extract
($event, $parameters)
23
{
24
$this->
ilExtractedParams
->
setSubjectType
(
'authentication'
);
25
26
switch
($event)
27
{
28
case
'afterLogin'
:
29
$this->
extractAfterLogin
($parameters);
30
break
;
31
// case 'expiredSessionDetected': Can this be supported? No params... TODO: Add some thinking to it...
32
// case 'reachedSessionPoolLimit': Can this be supported? No params... TODO: Add some thinking to it...
33
34
}
35
36
return
$this->ilExtractedParams
;
37
}
38
42
protected
function
extractAfterLogin
($parameters)
43
{
44
$this->
ilExtractedParams
->
setSubjectId
(0);
45
$this->
ilExtractedParams
->
setContextType
(
'user'
);
46
$this->
ilExtractedParams
->
setContextId
(
ilObjUser::_lookupId
($parameters[
'username'
]));
47
}
48
}
ilExtractedParams\setSubjectId
setSubjectId($subject_id)
Definition:
class.ilExtractedParams.php:52
ilObjUser\_lookupId
static _lookupId($a_user_str)
Lookup id by login.
Definition:
class.ilObjUser.php:787
ilExtractedParams\setContextType
setContextType($context_type)
Definition:
class.ilExtractedParams.php:68
ilBaseExtractor\$ilExtractedParams
$ilExtractedParams
Definition:
class.ilBaseExtractor.php:17
ilServicesAuthenticationExtractor\extract
extract($event, $parameters)
Definition:
class.ilServicesAuthenticationExtractor.php:22
ilExtractedParams
Class ilExtractedParams.
Definition:
class.ilExtractedParams.php:11
ilExtractedParams\setContextId
setContextId($context_id)
Definition:
class.ilExtractedParams.php:84
ilServicesAuthenticationExtractor\extractAfterLogin
extractAfterLogin($parameters)
Definition:
class.ilServicesAuthenticationExtractor.php:42
ilBaseExtractor
PhpIncludeInspection
Definition:
class.ilBaseExtractor.php:14
ilServicesAuthenticationExtractor
PhpIncludeInspection
Definition:
class.ilServicesAuthenticationExtractor.php:14
php
ilExtractedParams\setSubjectType
setSubjectType($subject_type)
Definition:
class.ilExtractedParams.php:36
Services
WorkflowEngine
classes
extractors
class.ilServicesAuthenticationExtractor.php
Generated on Fri Jan 24 2025 19:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)