ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilServicesObjectExtractor.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('object');
25
26 switch ($event) {
27 case 'create':
28 case 'update':
29 $this->extractObject($parameters);
30 break;
31 }
32
34 }
35
39 protected function extractObject($parameters)
40 {
41 $this->ilExtractedParams->setSubjectId($parameters['obj_id']);
42 $this->ilExtractedParams->setContextType($parameters['obj_type']);
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
Class ilExtractedParams.
@noinspection PhpIncludeInspection