ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
5require_once './Services/WorkflowEngine/classes/extractors/class.ilBaseExtractor.php';
6
15{
22 public function extract($event, $parameters)
23 {
24 $this->ilExtractedParams->setSubjectType('news');
25
26 switch($event)
27 {
28 case 'readNews':
29 case 'unreadNews':
30 $this->extractNews($parameters);
31 break;
32 }
34 }
35
39 protected function extractNews($parameters)
40 {
42 $this->ilExtractedParams->setContextType('news_ids');
43 $this->ilExtractedParams->setContextId(implode(',', $parameters['news_ids']));
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
Class ilExtractedParams.
@noinspection PhpIncludeInspection