PHP Интерфейс Swiftriver\Core\Modules\SiSPS\PushParsers\IPushParser

Показать файл Открыть проект

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

Метод Описание
GetDescription ( ) : string This method returns a string describing the implementation details of this parser
GetSettings ( ) : settings[] This function allows us to get the settings for each parser
PushAndParse ( String $raw_content = null, String $post_content = null, String $get_content = null, String $file_content = null ) : Swiftriver\Core\ObjectModel\Content[] Provided with the raw content, this method parses the raw content and converts it to SwiftRiver content object model
ReturnType ( ) : string This method returns a string describing the type of sources it can parse. For example, the RSSParser returns "Feeds".

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

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

This method returns a string describing the implementation details of this parser
public GetDescription ( ) : string
Результат string - implementation details

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

This function allows us to get the settings for each parser
public GetSettings ( ) : settings[]
Результат settings[]

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

Provided with the raw content, this method parses the raw content and converts it to SwiftRiver content object model
public PushAndParse ( String $raw_content = null, String $post_content = null, String $get_content = null, String $file_content = null ) : Swiftriver\Core\ObjectModel\Content[]
$raw_content String (if content gets sent raw)
$post_content String (if content gets sent as HTTP POST)
$get_content String (if content gets sent as HTTP GET)
$file_content String (if content gets sent a file over HTTP upload)
Результат Swiftriver\Core\ObjectModel\Content[] contentItems

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

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