PHP Class Pop\Feed\Format\AbstractFormat

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Method to parse a feed object
public __construct ( mixed $options, integer $limit ) : AbstractFormat
$options mixed
$limit integer
Résultat AbstractFormat

__get() public méthode

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

__isset() public méthode

Return the isset value of feed[$name].
public __isset ( string $name ) : boolean
$name string
Résultat boolean

__set() public méthode

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

__unset() public méthode

Unset feed[$name].
public __unset ( string $name ) : void
$name string
Résultat void

calculateTime() public static méthode

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

getFeed() public méthode

Method to get the feed
public getFeed ( ) : array
Résultat array

getLimit() public méthode

Method to get the limit
public getLimit ( ) : integer
Résultat integer

getOptions() public méthode

Method to get the feed options
public getOptions ( ) : mixed
Résultat mixed

obj() public méthode

Method to get the parsed object
public obj ( ) : mixed
Résultat mixed

parse() abstract public méthode

Method to parse a feed object
abstract public parse ( ) : void
Résultat void

setFeed() public méthode

Method to set the feed
public setFeed ( array $feed = [] ) : AbstractFormat
$feed array
Résultat AbstractFormat

url() public méthode

Method to get the URL
public url ( ) : string
Résultat string

Property Details

$context protected_oe property

Stream context
protected resource $context
Résultat resource

$contextOptions protected_oe property

Context options
protected int $contextOptions
Résultat integer

$feed protected_oe property

Feed content
protected array $feed
Résultat array

$limit protected_oe property

Feed limit
protected int $limit
Résultat integer

$obj protected_oe property

Parsed object
protected mixed $obj
Résultat mixed

$options protected_oe property

Feed options
protected mixed $options
Résultat mixed

$source protected_oe property

Feed source
protected string $source
Résultat string

$url protected_oe property

URL to parse
protected string $url
Résultat string

$urls protected_oe property

Feed URLs templates
protected array $urls
Résultat array