ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilServicesNewsExtractor Class Reference

PhpIncludeInspection More...

+ Inheritance diagram for ilServicesNewsExtractor:
+ Collaboration diagram for ilServicesNewsExtractor:

Public Member Functions

 extract ($event, $parameters)
 
- Public Member Functions inherited from ilBaseExtractor
 __construct (ilExtractedParams $ilExtractedParams)
 ilBaseExtractor constructor. More...
 
 extract ($event, $parameters)
 

Protected Member Functions

 extractNews ($parameters)
 
- Protected Member Functions inherited from ilBaseExtractor
 extractWithUser ($parameters)
 
 extractWithoutUser ($parameters)
 

Additional Inherited Members

- Protected Attributes inherited from ilBaseExtractor
 $ilExtractedParams
 

Detailed Description

PhpIncludeInspection

Class ilServicesNewsExtractor

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 14 of file class.ilServicesNewsExtractor.php.

Member Function Documentation

◆ extract()

ilServicesNewsExtractor::extract (   $event,
  $parameters 
)
Parameters
string$event
array$parameters
Returns

Implements ilExtractor.

Definition at line 22 of file class.ilServicesNewsExtractor.php.

References ilBaseExtractor\$ilExtractedParams, extractNews(), and ilExtractedParams\setSubjectType().

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  }
Class ilExtractedParams.
+ Here is the call graph for this function:

◆ extractNews()

ilServicesNewsExtractor::extractNews (   $parameters)
protected
Parameters
array$parameters

Definition at line 39 of file class.ilServicesNewsExtractor.php.

References ilExtractedParams\setContextId(), ilExtractedParams\setContextType(), and ilExtractedParams\setSubjectId().

Referenced by extract().

40  {
42  $this->ilExtractedParams->setContextType('news_ids');
43  $this->ilExtractedParams->setContextId(implode(',', $parameters['news_ids']));
44  }
Class ilExtractedParams.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: