PHP 클래스 Pop\Feed\Format\AbstractFormat

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

보호된 프로퍼티들

프로퍼티 타입 설명
$context resource Stream context
$contextOptions integer Context options
$feed array Feed content
$limit integer Feed limit
$obj mixed Parsed object
$options mixed Feed options
$source string Feed source
$url string URL to parse
$urls array Feed URLs templates

공개 메소드들

메소드 설명
__construct ( mixed $options, integer $limit ) : AbstractFormat Method to parse a feed object
__get ( string $name ) : mixed Get method to return the value of feed[$name].
__isset ( string $name ) : boolean Return the isset value of feed[$name].
__set ( string $name, mixed $value ) : void Set method to set the property to the value of feed[$name].
__unset ( string $name ) : void Unset feed[$name].
calculateTime ( string $time ) : string Method to calculate the elapsed time between the date passed and now.
getFeed ( ) : array Method to get the feed
getLimit ( ) : integer Method to get the limit
getOptions ( ) : mixed Method to get the feed options
obj ( ) : mixed Method to get the parsed object
parse ( ) : void Method to parse a feed object
setFeed ( array $feed = [] ) : AbstractFormat Method to set the feed
url ( ) : string Method to get the URL

메소드 상세

__construct() 공개 메소드

Method to parse a feed object
public __construct ( mixed $options, integer $limit ) : AbstractFormat
$options mixed
$limit integer
리턴 AbstractFormat

__get() 공개 메소드

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

__isset() 공개 메소드

Return the isset value of feed[$name].
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Set method to set the property to the value of feed[$name].
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

Unset feed[$name].
public __unset ( string $name ) : void
$name string
리턴 void

calculateTime() 공개 정적인 메소드

Method to calculate the elapsed time between the date passed and now.
public static calculateTime ( string $time ) : string
$time string
리턴 string

getFeed() 공개 메소드

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

getLimit() 공개 메소드

Method to get the limit
public getLimit ( ) : integer
리턴 integer

getOptions() 공개 메소드

Method to get the feed options
public getOptions ( ) : mixed
리턴 mixed

obj() 공개 메소드

Method to get the parsed object
public obj ( ) : mixed
리턴 mixed

parse() 추상적인 공개 메소드

Method to parse a feed object
abstract public parse ( ) : void
리턴 void

setFeed() 공개 메소드

Method to set the feed
public setFeed ( array $feed = [] ) : AbstractFormat
$feed array
리턴 AbstractFormat

url() 공개 메소드

Method to get the URL
public url ( ) : string
리턴 string

프로퍼티 상세

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

Stream context
protected resource $context
리턴 resource

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

Context options
protected int $contextOptions
리턴 integer

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

Feed content
protected array $feed
리턴 array

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

Feed limit
protected int $limit
리턴 integer

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

Parsed object
protected mixed $obj
리턴 mixed

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

Feed options
protected mixed $options
리턴 mixed

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

Feed source
protected string $source
리턴 string

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

URL to parse
protected string $url
리턴 string

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

Feed URLs templates
protected array $urls
리턴 array