\Pop\Feed\FormatAbstractFormat

Abstract feed format class

Summary

Methods
Properties
Constants
__construct()
calculateTime()
parse()
url()
file()
obj()
setFeed()
getFeed()
getOptions()
getLimit()
__set()
__get()
__isset()
__unset()
No public properties found
No constants found
No protected methods found
$urls
$url
$file
$obj
$limit
$feed
$contextOptions
$context
$source
$options
N/A
No private methods found
No private properties found
N/A

Properties

$urls

$urls : array

Feed URLs templates

Type

array

$url

$url : string

URL to parse

Type

string

$file

$file : string

File to parse

Type

string

$obj

$obj : mixed

Parsed object

Type

mixed

$limit

$limit : integer

Feed limit

Type

integer

$feed

$feed : array

Feed content

Type

array

$contextOptions

$contextOptions : integer

Context options

Type

integer

$context

$context : resource

Stream context

Type

resource

$source

$source : string

Feed source

Type

string

$options

$options : mixed

Feed options

Type

mixed

Methods

__construct()

__construct(mixed  $options, integer  $limit) : \Pop\Feed\Format\AbstractFormat

Constructor method

Parameters

mixed $options
integer $limit

Throws

\Pop\Feed\Format\Exception

Returns

\Pop\Feed\Format\AbstractFormat

calculateTime()

calculateTime(string  $time) : string

Calculate the elapsed time between the date passed and now.

Parameters

string $time

Returns

string

parse()

parse() : void

Parse a feed object

url()

url() : string

Get the URL

Returns

string

file()

file() : string

Get the file

Returns

string

obj()

obj() : mixed

Get the parsed object

Returns

mixed

getFeed()

getFeed() : array

Get the feed

Returns

array

getOptions()

getOptions() : mixed

Get the feed options

Returns

mixed

getLimit()

getLimit() : integer

Get the limit

Returns

integer

__set()

__set(string  $name, mixed  $value) : void

Set method to set the property to the value of feed[$name].

Parameters

string $name
mixed $value

__get()

__get(string  $name) : mixed

Get method to return the value of feed[$name].

Parameters

string $name

Returns

mixed

__isset()

__isset(string  $name) : boolean

Return the isset value of feed[$name].

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset feed[$name].

Parameters

string $name