Class SimplePie_Core
SimplePie
Direct known subclasses
SimplePie
public
|
|
public
|
|
public
|
|
public
|
#
force_feed( boolean $enable = false )
Force the given data/URL to be treated as a feed no matter what it appears like |
public
|
|
public
boolean
|
|
public
|
#
set_raw_data( string $data )
Allows you to use a string of RSS/Atom data instead of a remote feed. |
public
|
#
set_timeout( integer $timeout = 10 )
Allows you to override the default timeout for fetching remote feeds. |
public
|
#
force_fsockopen( boolean $enable = false )
Forces SimplePie to use fsockopen() instead of the preferred cURL functions. |
public
|
|
public
|
#
set_cache_duration( integer $seconds = 3600 )
Set the length of time (in seconds) that the contents of a feed will be cached. |
public
|
#
set_autodiscovery_cache_duration( integer $seconds = 604800 )
Set the length of time (in seconds) that the autodiscovered feed URL will be cached. |
public
|
#
set_cache_location( string $location = './cache' )
Set the file system location where the cached files should be stored. |
public
|
#
enable_order_by_date( boolean $enable = true )
Determines whether feed items should be sorted into reverse chronological order. |
public
|
#
set_input_encoding( string $encoding = false )
Allows you to override the character encoding reported by the feed. |
public
|
#
set_autodiscovery_level( integer $level = SIMPLEPIE_LOCATOR_ALL )
Set how much feed autodiscovery to do |
public
|
|
deprecated
public
|
#
set_cache_class( string $class = 'SimplePie_Cache' )
Allows you to change which class SimplePie uses for caching. |
deprecated
public
|
#
set_locator_class( string $class = 'SimplePie_Locator' )
Allows you to change which class SimplePie uses for auto-discovery. |
deprecated
public
|
#
set_parser_class( string $class = 'SimplePie_Parser' )
Allows you to change which class SimplePie uses for XML parsing. |
deprecated
public
|
#
set_file_class( string $class = 'SimplePie_File' )
Allows you to change which class SimplePie uses for remote file fetching. |
deprecated
public
|
#
set_sanitize_class( string $class = 'SimplePie_Sanitize' )
Allows you to change which class SimplePie uses for data sanitization. |
deprecated
public
|
#
set_item_class( string $class = 'SimplePie_Item' )
Allows you to change which class SimplePie uses for handling feed items. |
deprecated
public
|
#
set_author_class( string $class = 'SimplePie_Author' )
Allows you to change which class SimplePie uses for handling author data. |
deprecated
public
|
#
set_category_class( string $class = 'SimplePie_Category' )
Allows you to change which class SimplePie uses for handling category data. |
deprecated
public
|
#
set_enclosure_class( string $class = 'SimplePie_Enclosure' )
Allows you to change which class SimplePie uses for feed enclosures. |
deprecated
public
|
#
set_caption_class( string $class = 'SimplePie_Caption' )
Allows you to change which class SimplePie uses for <media:text> captions |
deprecated
public
|
#
set_copyright_class( string $class = 'SimplePie_Copyright' )
Allows you to change which class SimplePie uses for <media:copyright> |
deprecated
public
|
#
set_credit_class( string $class = 'SimplePie_Credit' )
Allows you to change which class SimplePie uses for <media:credit> |
deprecated
public
|
#
set_rating_class( string $class = 'SimplePie_Rating' )
Allows you to change which class SimplePie uses for <media:rating> |
deprecated
public
|
#
set_restriction_class( string $class = 'SimplePie_Restriction' )
Allows you to change which class SimplePie uses for <media:restriction> |
deprecated
public
|
#
set_content_type_sniffer_class( string $class = 'SimplePie_Content_Type_Sniffer' )
Allows you to change which class SimplePie uses for content-type sniffing. |
deprecated
public
|
#
set_source_class( string $class = 'SimplePie_Source' )
Allows you to change which class SimplePie uses item sources. |
public
|
#
set_useragent( string $ua = SIMPLEPIE_USERAGENT )
Allows you to override the default user agent string. |
public
|
#
set_cache_name_function( mixed $function = 'md5' )
Set callback function to create cache filename with |
public
|
#
set_stupidly_fast( boolean $set = false )
Set options to make SP as fast as possible. Forgoes a substantial amount of data sanitization in favor of speed. |
public
|
#
set_max_checked_feeds( integer $max = 10 )
Set maximum number of feeds to check with autodiscovery |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
set_url_replacements( array $element_attribute = array('a' => 'href', 'area' => 'href', 'blockquote' => 'cite', 'del' => 'cite', 'form' => 'action', 'img' => array('longdesc', 'src'), 'input' => 'src', 'ins' => 'cite', 'q' => 'cite') )
Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed |
public
|
#
set_image_handler( str $page = false, str $qs = 'i' )
Set the handler to enable the display of cached images. |
public
|
|
public
|
|
public
string
|
|
public
string|boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
public
array
|
$data | array() |
#
Raw data |
public
mixed
|
$error |
|
#
Error string |
public
object
|
$sanitize |
|
#
Instance of SimplePie_Sanitize (or other class) |
public
string
|
$useragent | SIMPLEPIE_USERAGENT |
#
SimplePie Useragent |
public
string
|
$feed_url |
|
#
Feed URL |
public
object
|
$file |
|
#
Instance of SimplePie_File to use as a feed |
public
string
|
$raw_data |
|
#
Raw feed data |
public
integer
|
$timeout | 10 |
#
Timeout for fetching remote files |
public
boolean
|
$force_fsockopen | false |
#
Forces fsockopen() to be used for remote files instead of cURL, even if a new enough version is installed |
public
boolean
|
$force_feed | false |
#
Force the given data/URL to be treated as a feed no matter what it appears like |
public
boolean
|
$xml_dump | false |
#
Enable/Disable XML dump |
public
boolean
|
$cache | true |
#
Enable/Disable Caching |
public
integer
|
$cache_duration | 3600 |
#
Cache duration (in seconds) |
public
integer
|
$autodiscovery_cache_duration | 604800 |
#
Auto-discovery cache duration (in seconds) |
public
string
|
$cache_location | './cache' |
#
Cache location (relative to executing script) |
public
string
|
$cache_name_function | 'md5' |
#
Function that creates the cache filename |
public
boolean
|
$order_by_date | true |
#
Reorder feed by date descending |
public
mixed
|
$input_encoding | false |
#
Force input encoding to be set to the follow value (false, or anything type-cast to false, disables this feature) |
public
integer
|
$autodiscovery | SIMPLEPIE_LOCATOR_ALL |
#
Feed Autodiscovery Level |
public
|
$registry |
|
|
public
integer
|
$max_checked_feeds | 10 |
#
Maximum number of feeds to check with autodiscovery |
public
array
|
$all_discovered_feeds | array() |
#
All the feeds found during the autodiscovery process |
public
string
|
$image_handler | '' |
#
Web-accessible path to the handler_image.php file. |
public
array
|
$multifeed_url | array() |
#
Stores the URLs when multiple feeds are being initialized. |
public
array
|
$multifeed_objects | array() |
#
Stores SimplePie objects when multiple feeds initialized. |
public
array
|
$config_settings | null |
#
Stores the get_object_vars() array for use with multifeeds. |
public
integer
|
$item_limit | 0 |
#
Stores the number of items to return per-feed with multifeeds. |
public
array
|
$strip_attributes | array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc') |
#
Stores the default attributes to be stripped by strip_attributes(). |
public
array
|
$strip_htmltags | array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style') |
#
Stores the default tags to be stripped by strip_htmltags(). |