PHP Класс 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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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 ) --------------------------------------------------------------------

Описание методов

__construct() публичный Метод

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

clear() публичный Метод

* Initialize the feed data
public clear ( )

errorInResponse() публичный Метод

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

getChannelData() публичный Метод

* Return channel data for the feed
public getChannelData ( )

getFeed() публичный Метод

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

parse() публичный Метод

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

set_cache_life() публичный Метод

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

set_feed_url() публичный Метод

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

Описание свойств

$cache_dir публичное свойство

Cache lifetime
public $cache_dir

$cache_life публичное свойство

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

$callback публичное свойство

Flag to write to cache
public $callback

$channel_data публичное свойство

Associative array containing all the feed items
public $channel_data

$data публичное свойство

Feed URI
public $data

$feed_unavailable публичное свойство

Store RSS Channel Data in an array
public $feed_unavailable

$feed_uri публичное свойство

public $feed_uri

$write_cache_flag публичное свойство

Cache directory
public $write_cache_flag