PHP Class Feed_parser, TastyIgniter

This class is written based entirely on the work found below www.techbytes.co.in/blogs/2006/01/15/consuming-rss-with-php-the-simple-way/ All credit should be given to the original author
Mostrar archivo Open project: tastyigniter/tastyigniter

Public Properties

Property Type Description
$cache_dir Cache lifetime
$cache_life Boolean variable which indicates whether an RSS feed was unavailable
$callback Flag to write to cache
$channel_data Associative array containing all the feed items
$data Feed URI
$feed_unavailable Store RSS Channel Data in an array
$feed_uri
$write_cache_flag Cache directory

Public Methods

Method Description
__construct ( $callback = FALSE ) Callback to read custom data
clear ( ) * Initialize the feed data
errorInResponse ( ) * Were we unable to retreive the feeds ?
getChannelData ( ) * Return channel data for the feed
getFeed ( $num ) * Return the feeds one at a time: when there are no more feeds return false
parse ( ) --------------------------------------------------------------------
set_cache_life ( $period = NULL ) --------------------------------------------------------------------
set_feed_url ( $url = NULL ) --------------------------------------------------------------------

Method Details

__construct() public method

Callback to read custom data
public __construct ( $callback = FALSE )

clear() public method

* Initialize the feed data
public clear ( )

errorInResponse() public method

* Were we unable to retreive the feeds ?
public errorInResponse ( )

getChannelData() public method

* Return channel data for the feed
public getChannelData ( )

getFeed() public method

* Return the feeds one at a time: when there are no more feeds return false
public getFeed ( $num )

parse() public method

--------------------------------------------------------------------
public parse ( )

set_cache_life() public method

--------------------------------------------------------------------
public set_cache_life ( $period = NULL )

set_feed_url() public method

--------------------------------------------------------------------
public set_feed_url ( $url = NULL )

Property Details

$cache_dir public_oe property

Cache lifetime
public $cache_dir

$cache_life public_oe property

Boolean variable which indicates whether an RSS feed was unavailable
public $cache_life

$callback public_oe property

Flag to write to cache
public $callback

$channel_data public_oe property

Associative array containing all the feed items
public $channel_data

$data public_oe property

Feed URI
public $data

$feed_unavailable public_oe property

Store RSS Channel Data in an array
public $feed_unavailable

$feed_uri public_oe property

public $feed_uri

$write_cache_flag public_oe property

Cache directory
public $write_cache_flag