ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilServicesNewsExtractor.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
14
class
ilServicesNewsExtractor
extends
ilBaseExtractor
15
{
22
public
function
extract
($event, $parameters)
23
{
24
$this->
ilExtractedParams
->
setSubjectType
(
'news'
);
25
26
switch
($event) {
27
case
'readNews'
:
28
case
'unreadNews'
:
29
$this->
extractNews
($parameters);
30
break
;
31
}
32
return
$this->ilExtractedParams
;
33
}
34
38
protected
function
extractNews
($parameters)
39
{
40
$this->
ilExtractedParams
->
setSubjectId
(0);
41
$this->
ilExtractedParams
->
setContextType
(
'news_ids'
);
42
$this->
ilExtractedParams
->
setContextId
(implode(
','
, $parameters[
'news_ids'
]));
43
}
44
}
ilExtractedParams\setSubjectId
setSubjectId($subject_id)
Definition:
class.ilExtractedParams.php:52
ilServicesNewsExtractor
PhpIncludeInspection
Definition:
class.ilServicesNewsExtractor.php:14
ilExtractedParams\setContextType
setContextType($context_type)
Definition:
class.ilExtractedParams.php:68
ilBaseExtractor\$ilExtractedParams
$ilExtractedParams
Definition:
class.ilBaseExtractor.php:17
ilServicesNewsExtractor\extractNews
extractNews($parameters)
Definition:
class.ilServicesNewsExtractor.php:38
ilExtractedParams
Class ilExtractedParams.
Definition:
class.ilExtractedParams.php:11
ilExtractedParams\setContextId
setContextId($context_id)
Definition:
class.ilExtractedParams.php:84
ilServicesNewsExtractor\extract
extract($event, $parameters)
Definition:
class.ilServicesNewsExtractor.php:22
ilBaseExtractor
PhpIncludeInspection
Definition:
class.ilBaseExtractor.php:14
ilExtractedParams\setSubjectType
setSubjectType($subject_type)
Definition:
class.ilExtractedParams.php:36
Services
WorkflowEngine
classes
extractors
class.ilServicesNewsExtractor.php
Generated on Tue Jan 28 2025 19:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)