PHP Класс Swiftriver\Core\Modules\SiSPS\Parsers\FeedsParser

Наследование: implements Swiftriver\Core\Modules\SiSPS\Parsers\IParser
Показать файл Открыть проект

Открытые методы

Метод Описание
GetAndParse ( Channel $channel ) Implementation of IParser::GetAndParse
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 FeedsParser may return array("Blogs", "News Feeds");
ReturnRequiredParameters ( ) : array() This method returns an array of the required parameters that are necessary 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 FeedsParser returns "Feeds".

Приватные методы

Метод Описание
GenerateImageTag ( $image_url )
GenerateLink ( $link_url )
GenerateTextFromPhotoComment ( $comment )
GetSimplePieContentEntries ( $channel, $config, $logger, $feedUrl )
GetXMLContentEntries ( $channel, $config, $logger, $feedUrl )

Описание методов

GetAndParse() публичный Метод

Implementation of IParser::GetAndParse
public GetAndParse ( Channel $channel )
$channel Swiftriver\Core\ObjectModel\Channel

ListSubTypes() публичный Метод

This method returns a string array with the names of all the source types this parser is designed to parse. For example the FeedsParser may return array("Blogs", "News Feeds");
public ListSubTypes ( ) : string[]
Результат string[]

ReturnRequiredParameters() публичный Метод

This method returns an array of the required parameters that are necessary to run this parser. The Array should be in the following format: array( "SubType" => array ( ConfigurationElements ) )
public ReturnRequiredParameters ( ) : array()
Результат array()

ReturnType() публичный Метод

This method returns a string describing the type of sources it can parse. For example, the FeedsParser returns "Feeds".
public ReturnType ( ) : string
Результат string type of sources parsed