PHP 클래스 Pop\Feed\Reader

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter Pop\Feed\Format\AbstractFormat Feed adapter
$dateFormat string Feed date format
$template string Feed item template

공개 메소드들

메소드 설명
__construct ( AbstractFormat $adapter ) : Reader Constructor
__get ( string $name ) : mixed Get method to return the value of feed[$name].
__toString ( ) : string Render feed reader object to string
adapter ( ) : AbstractFormat Method to get the adapter object
factory ( AbstractFormat $adapter ) : Reader Static method to instantiate the data object and return itself to facilitate chaining methods together.
feed ( ) : array Method to get the adapter object feed
getByAccountId ( string $service, string $id, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader Static method to create a Feed Reader object from an account ID
getByAccountName ( string $service, string $name, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader Static method to create a Feed Reader object from an account name
getByUrl ( string $url, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader Static method to create a Feed Reader object from a URL
getDateFormat ( ) : string Method to get feed date format
getTemplate ( ) : string Method to get feed template
isAtom ( ) : boolean Method to determine if the feed type is Atom
isFacebook ( ) : boolean Method to determine if the feed type is Facebook
isJson ( ) : boolean Method to determine if the feed type is JSON
isPhp ( ) : boolean Method to determine if the feed type is PHP
isPlaylist ( ) : boolean Method to determine if the feed type is a playlist
isRss ( ) : boolean Method to determine if the feed type is RSS
isTwitter ( ) : boolean Method to determine if the feed type is Twitter
isVimeo ( ) : boolean Method to determine if the feed type is Twitter
isYoutube ( ) : boolean Method to determine if the feed type is YouTube
render ( boolean $ret = false ) : mixed Method to render the feed
setDateFormat ( string $date ) : Reader Method to set date format
setTemplate ( string $tmpl ) : Reader Method to set item template

보호된 메소드들

메소드 설명
getSource ( string $url ) : array Static method to create a Feed Reader object from a URL

메소드 상세

__construct() 공개 메소드

Instantiate the feed object.
public __construct ( AbstractFormat $adapter ) : Reader
$adapter Pop\Feed\Format\AbstractFormat
리턴 Reader

__get() 공개 메소드

Get method to return the value of feed[$name].
public __get ( string $name ) : mixed
$name string
리턴 mixed

__toString() 공개 메소드

Render feed reader object to string
public __toString ( ) : string
리턴 string

adapter() 공개 메소드

Method to get the adapter object
public adapter ( ) : AbstractFormat
리턴 Pop\Feed\Format\AbstractFormat

factory() 공개 정적인 메소드

Static method to instantiate the data object and return itself to facilitate chaining methods together.
public static factory ( AbstractFormat $adapter ) : Reader
$adapter Pop\Feed\Format\AbstractFormat
리턴 Reader

feed() 공개 메소드

Method to get the adapter object feed
public feed ( ) : array
리턴 array

getByAccountId() 공개 정적인 메소드

Static method to create a Feed Reader object from an account ID
public static getByAccountId ( string $service, string $id, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader
$service string
$id string
$limit integer
$prefix string
리턴 Reader

getByAccountName() 공개 정적인 메소드

Static method to create a Feed Reader object from an account name
public static getByAccountName ( string $service, string $name, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader
$service string
$name string
$limit integer
$prefix string
리턴 Reader

getByUrl() 공개 정적인 메소드

Static method to create a Feed Reader object from a URL
public static getByUrl ( string $url, integer $limit, string $prefix = 'Pop\Feed\Format\' ) : Reader
$url string
$limit integer
$prefix string
리턴 Reader

getDateFormat() 공개 메소드

Method to get feed date format
public getDateFormat ( ) : string
리턴 string

getSource() 보호된 정적인 메소드

Static method to create a Feed Reader object from a URL
protected static getSource ( string $url ) : array
$url string
리턴 array

getTemplate() 공개 메소드

Method to get feed template
public getTemplate ( ) : string
리턴 string

isAtom() 공개 메소드

Method to determine if the feed type is Atom
public isAtom ( ) : boolean
리턴 boolean

isFacebook() 공개 메소드

Method to determine if the feed type is Facebook
public isFacebook ( ) : boolean
리턴 boolean

isJson() 공개 메소드

Method to determine if the feed type is JSON
public isJson ( ) : boolean
리턴 boolean

isPhp() 공개 메소드

Method to determine if the feed type is PHP
public isPhp ( ) : boolean
리턴 boolean

isPlaylist() 공개 메소드

Method to determine if the feed type is a playlist
public isPlaylist ( ) : boolean
리턴 boolean

isRss() 공개 메소드

Method to determine if the feed type is RSS
public isRss ( ) : boolean
리턴 boolean

isTwitter() 공개 메소드

Method to determine if the feed type is Twitter
public isTwitter ( ) : boolean
리턴 boolean

isVimeo() 공개 메소드

Method to determine if the feed type is Twitter
public isVimeo ( ) : boolean
리턴 boolean

isYoutube() 공개 메소드

Method to determine if the feed type is YouTube
public isYoutube ( ) : boolean
리턴 boolean

render() 공개 메소드

Method to render the feed
public render ( boolean $ret = false ) : mixed
$ret boolean
리턴 mixed

setDateFormat() 공개 메소드

Method to set date format
public setDateFormat ( string $date ) : Reader
$date string
리턴 Reader

setTemplate() 공개 메소드

Method to set item template
public setTemplate ( string $tmpl ) : Reader
$tmpl string
리턴 Reader

프로퍼티 상세

$adapter 보호되어 있는 프로퍼티

Feed adapter
protected AbstractFormat,Pop\Feed\Format $adapter
리턴 Pop\Feed\Format\AbstractFormat

$dateFormat 보호되어 있는 프로퍼티

Feed date format
protected string $dateFormat
리턴 string

$template 보호되어 있는 프로퍼티

Feed item template
protected string $template
리턴 string