ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  case 'afterCreate':
28  case 'afterUpdate':
29  $this->extractUser($parameters);
30  break;
31  case 'deleteUser':
32  $this->extractUserById($parameters);
33  }
34 
36  }
37 
41  protected function extractUser($parameters)
42  {
43  $this->ilExtractedParams->setSubjectId($parameters['user_obj']->getId());
44  $this->ilExtractedParams->setContextType('null');
46  }
47 
51  protected function extractUserById($parameters)
52  {
53  $this->ilExtractedParams->setSubjectId($parameters['usr_id']);
54  $this->ilExtractedParams->setContextType('null');
56  }
57 }
Class ilExtractedParams.
PhpIncludeInspection