PHP Interface Swiftriver\Core\Modules\SiSPS\PushParsers\IPushParser

Afficher le fichier Open project: ushahidi/Swiftriver-2011

Méthodes publiques

Méthode Description
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".

Method Details

GetDescription() public méthode

This method returns a string describing the implementation details of this parser
public GetDescription ( ) : string
Résultat string - implementation details

GetSettings() public méthode

This function allows us to get the settings for each parser
public GetSettings ( ) : settings[]
Résultat settings[]

PushAndParse() public méthode

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)
Résultat Swiftriver\Core\ObjectModel\Content[] contentItems

ReturnType() public méthode

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