Interface \Prado\Web\Services\IFeedContentProvider
IFeedContentProvider interface.
Namespace: \Prado\Web\ServicesIFeedContentProvider interface must be implemented by a feed class who provides feed content.
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Knut Urdalen <knut.urdalen@gmail.com>
Since: 3.1
public
|
getContentType() : string
Sets the content type of the feed content to be sent.
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 |
public
|
|
public
|
init(TXmlElement $config) : mixed
Initializes the feed content provider.
This method is invoked (before getFeedContent) when the feed provider is requested by a user. |
|