ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilServicesUserExtractor.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('user');
25 
26  switch($event)
27  {
28  case 'afterCreate':
29  case 'afterUpdate':
30  $this->extractUser($parameters);
31  break;
32  case 'deleteUser':
33  $this->extractUserById($parameters);
34  }
35 
37  }
38 
42  protected function extractUser($parameters)
43  {
44  $this->ilExtractedParams->setSubjectId($parameters['user_obj']->getId());
45  $this->ilExtractedParams->setContextType('null');
47  }
48 
52  protected function extractUserById($parameters)
53  {
54  $this->ilExtractedParams->setSubjectId($parameters['usr_id']);
55  $this->ilExtractedParams->setContextType('null');
57  }
58 }
Class ilExtractedParams.
PhpIncludeInspection