ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
24
public
function
__construct
(
ilExtractedParams
$ilExtractedParams
)
25
{
26
$this->
ilExtractedParams
=
$ilExtractedParams
;
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'
);
54
$this->
ilExtractedParams
->
setContextId
(0);
55
}
56
}
ilExtractedParams\setSubjectId
setSubjectId($subject_id)
Definition:
class.ilExtractedParams.php:52
ilExtractor
Interface ilExtractor.
Definition:
ilExtractor.php:7
ilBaseExtractor\extractWithoutUser
extractWithoutUser($parameters)
Definition:
class.ilBaseExtractor.php:50
ilExtractedParams\setContextType
setContextType($context_type)
Definition:
class.ilExtractedParams.php:68
ilBaseExtractor\$ilExtractedParams
$ilExtractedParams
Definition:
class.ilBaseExtractor.php:17
ilBaseExtractor\extract
extract($event, $parameters)
ilExtractedParams
Class ilExtractedParams.
Definition:
class.ilExtractedParams.php:11
ilExtractedParams\setContextId
setContextId($context_id)
Definition:
class.ilExtractedParams.php:84
ilBaseExtractor\extractWithUser
extractWithUser($parameters)
Definition:
class.ilBaseExtractor.php:40
ilBaseExtractor
PhpIncludeInspection
Definition:
class.ilBaseExtractor.php:14
ilBaseExtractor\__construct
__construct(ilExtractedParams $ilExtractedParams)
ilBaseExtractor constructor.
Definition:
class.ilBaseExtractor.php:24
Services
WorkflowEngine
classes
extractors
class.ilBaseExtractor.php
Generated on Tue Jan 28 2025 19:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)