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
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

공개 프로퍼티들

프로퍼티 타입 설명
$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