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])
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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 )