ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
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 
37  }
38 
42  protected function extractAfterLogin($parameters)
43  {
45  $this->ilExtractedParams->setContextType('user');
46  $this->ilExtractedParams->setContextId(ilObjUser::_lookupId($parameters['username']));
47  }
48 }
static _lookupId($a_user_str)
Lookup id by login.
Class ilExtractedParams.
PhpIncludeInspection