PHP Interface Prado\Web\Services\IFeedContentProvider

IFeedContentProvider interface must be implemented by a feed class who provides feed content.
Since: 3.1
Author: Qiang Xue ([email protected])
Author: Knut Urdalen ([email protected])
Datei anzeigen Open project: pradosoft/prado

Public Methods

Method Description
getContentType ( ) : string Sets the content type of the feed content to be sent.
getFeedContent ( ) : string
init ( $config ) Initializes the feed content provider.

Method Details

getContentType() public method

Some examples are: RSS 1.0 feed: application/rdf+xml RSS 2.0 feed: application/rss+xml or application/xml or text/xml ATOM feed: application/atom+xml
Since: 3.1.1
public getContentType ( ) : string
return string the content type for the feed content.

getFeedContent() public method

public getFeedContent ( ) : string
return string feed content in proper XML format

init() public method

This method is invoked (before {@link getFeedContent}) when the feed provider is requested by a user.
public init ( $config )