PHP Class Swiftriver\Core\Modules\SiSPS\Parsers\GoogleNewsParser

Author: mg[at]swiftrly[dot]org
Inheritance: implements Swiftriver\Core\Modules\SiSPS\Parsers\IParser
Mostra file Open project: ushahidi/Swiftriver-2011

Public Methods

Method Description
BloggerSearch ( $searchPhrase, $logger, $channel )
GetAndParse ( Channel $channel ) : Swiftriver\Core\ObjectModel\Content[] Given a set of parameters, this method should fetch content from a channel and parse each content into the Swiftriver object model : Content Item. The $lastSuccess datetime is passed to the function to ensure that content that has already been parsed is not duplicated.
GetSimplePieContentEntries ( $feedUrl, $logger, $channel )
GoogleNewsSearch ( $searchPhrase, $logger, $channel )
ListSubTypes ( ) : string[] This method returns a string array with the names of all the source types this parser is designed to parse. For example the RSSParser may return array("Blogs", "News Feeds");
ReturnRequiredParameters ( ) : array() This method returns an array of the required paramters that are nessesary to run this parser. The Array should be in the following format: array( "SubType" => array ( ConfigurationElements ) )
ReturnType ( ) : string This method returns a string describing the type of sources it can parse. For example, the RSSParser returns "Feeds".
WordpressSearch ( $searchPhrase, $logger, $channel )

Method Details

BloggerSearch() public method

public BloggerSearch ( $searchPhrase, $logger, $channel )

GetAndParse() public method

Given a set of parameters, this method should fetch content from a channel and parse each content into the Swiftriver object model : Content Item. The $lastSuccess datetime is passed to the function to ensure that content that has already been parsed is not duplicated.
public GetAndParse ( Channel $channel ) : Swiftriver\Core\ObjectModel\Content[]
$channel Swiftriver\Core\ObjectModel\Channel
return Swiftriver\Core\ObjectModel\Content[] contentItems

GetSimplePieContentEntries() public method

public GetSimplePieContentEntries ( $feedUrl, $logger, $channel )

GoogleNewsSearch() public method

public GoogleNewsSearch ( $searchPhrase, $logger, $channel )

ListSubTypes() public method

This method returns a string array with the names of all the source types this parser is designed to parse. For example the RSSParser may return array("Blogs", "News Feeds");
public ListSubTypes ( ) : string[]
return string[]

ReturnRequiredParameters() public method

This method returns an array of the required paramters that are nessesary to run this parser. The Array should be in the following format: array( "SubType" => array ( ConfigurationElements ) )
public ReturnRequiredParameters ( ) : array()
return array()

ReturnType() public method

This method returns a string describing the type of sources it can parse. For example, the RSSParser returns "Feeds".
public ReturnType ( ) : string
return string type of sources parsed

WordpressSearch() public method

public WordpressSearch ( $searchPhrase, $logger, $channel )