PHP Интерфейс Prado\Web\Services\IFeedContentProvider

IFeedContentProvider interface must be implemented by a feed class who provides feed content.
С версии: 3.1
Автор: Qiang Xue ([email protected])
Автор: Knut Urdalen ([email protected])
Показать файл Открыть проект

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

Метод Описание
getContentType ( ) : string Sets the content type of the feed content to be sent.
getFeedContent ( ) : string
init ( $config ) Initializes the feed content provider.

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

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

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
С версии: 3.1.1
public getContentType ( ) : string
Результат string the content type for the feed content.

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

public getFeedContent ( ) : string
Результат string feed content in proper XML format

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

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