ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  case 'readNews':
28  case 'unreadNews':
29  $this->extractNews($parameters);
30  break;
31  }
33  }
Class ilExtractedParams.
+ Here is the call graph for this function:

◆ extractNews()

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

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

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

Referenced by extract().

39  {
41  $this->ilExtractedParams->setContextType('news_ids');
42  $this->ilExtractedParams->setContextId(implode(',', $parameters['news_ids']));
43  }
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: