ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilBaseExtractor.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/interfaces/ilExtractor.php';
6 
14 abstract class ilBaseExtractor implements ilExtractor
15 {
17  protected $ilExtractedParams;
18 
25  {
27  }
28 
35  abstract public function extract($event, $parameters);
36 
40  protected function extractWithUser($parameters)
41  {
42  $this->ilExtractedParams->setSubjectId($parameters['obj_id']);
43  $this->ilExtractedParams->setContextType('usr_id');
44  $this->ilExtractedParams->setContextId($parameters['usr_id']);
45  }
46 
50  protected function extractWithoutUser($parameters)
51  {
52  $this->ilExtractedParams->setSubjectId($parameters['obj_id']);
53  $this->ilExtractedParams->setContextType('null');
55  }
56 }
Interface ilExtractor.
Definition: ilExtractor.php:7
extractWithoutUser($parameters)
extract($event, $parameters)
Class ilExtractedParams.
extractWithUser($parameters)
PhpIncludeInspection
__construct(ilExtractedParams $ilExtractedParams)
ilBaseExtractor constructor.