ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
5require_once './Services/WorkflowEngine/classes/extractors/class.ilBaseExtractor.php';
6
15{
22 public function extract($event, $parameters)
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 }
37
41 protected function extractAfterLogin($parameters)
42 {
44 $this->ilExtractedParams->setContextType('user');
45 $this->ilExtractedParams->setContextId(ilObjUser::_lookupId($parameters['username']));
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
Class ilExtractedParams.
static _lookupId($a_user_str)
Lookup id by login.