\SimplePie_Core
SimplePie class.
Class for backward compatibility.
Synopsis
class SimplePie_Core
extends SimplePie
{
- // Inherited members from SimplePie
- public array $data;
- public $error;
- public $sanitize;
- public string $useragent;
- public $feed_url;
- public $file;
- public $raw_data;
- public integer $timeout;
- public bool $force_fsockopen;
- public bool $force_feed;
- public bool $cache;
- public integer $cache_duration;
- public integer $autodiscovery_cache_duration;
- public string $cache_location;
- public string $cache_name_function;
- public bool $order_by_date;
- public boolean $input_encoding;
- public int $autodiscovery;
- public SimplePie_Registry $registry;
- public integer $max_checked_feeds;
- public array $all_discovered_feeds;
- public string $image_handler;
- public array $multifeed_url;
- public array $multifeed_objects;
- public $config_settings;
- public integer $item_limit;
- public array $strip_attributes;
- public array $strip_htmltags;
- // Inherited methods from SimplePie
- public void __construct()
- public void __toString()
- public void __destruct()
- public void force_feed()
- public void set_feed_url()
- public bool set_file()
- public void set_raw_data()
- public void set_timeout()
- public void force_fsockopen()
- public void enable_cache()
- public void set_cache_duration()
- public void set_autodiscovery_cache_duration()
- public void set_cache_location()
- public void enable_order_by_date()
- public void set_input_encoding()
- public void set_autodiscovery_level()
- public SimplePie_Registry get_registry()
- public void set_cache_class()
- public void set_locator_class()
- public void set_parser_class()
- public void set_file_class()
- public void set_sanitize_class()
- public void set_item_class()
- public void set_author_class()
- public void set_category_class()
- public void set_enclosure_class()
- public void set_caption_class()
- public void set_copyright_class()
- public void set_credit_class()
- public void set_rating_class()
- public void set_restriction_class()
- public void set_content_type_sniffer_class()
- public void set_source_class()
- public void set_useragent()
- public void set_cache_name_function()
- public void set_stupidly_fast()
- public void set_max_checked_feeds()
- public void remove_div()
- public void strip_htmltags()
- public void encode_instead_of_strip()
- public void strip_attributes()
- public void set_output_encoding()
- public void strip_comments()
- public void set_url_replacements()
- public void set_image_handler()
- public void set_item_limit()
- public boolean init()
- protected array|true fetch_data()
- public string|array error()
- public string|boolean get_raw_data()
- public string get_encoding()
- public void handle_content_type()
- public int get_type()
- public string|null subscribe_url()
- public array get_feed_tags()
- public array get_channel_tags()
- public array get_image_tags()
- public string get_base()
- public string sanitize()
- public string|null get_title()
- public SimplePie_Category|null get_category()
- public array|null get_categories()
- public SimplePie_Author|null get_author()
- public array|null get_authors()
- public SimplePie_Author|null get_contributor()
- public array|null get_contributors()
- public string|null get_link()
- public string|null get_permalink()
- public array|null get_links()
- public void get_all_discovered_feeds()
- public string|null get_description()
- public string|null get_copyright()
- public string|null get_language()
- public string|null get_latitude()
- public string|null get_longitude()
- public string|null get_image_title()
- public string|null get_image_url()
- public string|null get_image_link()
- public int|float|null get_image_width()
- public int|float|null get_image_height()
- public int get_item_quantity()
- public SimplePie_Item|null get_item()
- public array|null get_items()
- public void set_favicon_handler()
- public void get_favicon()
- public mixed __call()
- public static boolean sort_items()
- public static array merge_items()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
1742+ | If we have a perm redirect we should return the new URL |
1742+ | When we make the above change, let's support <itunes:new-feed-url> as well |
1742+ | Also, |atom:link|@rel=self |
Members
public
- $all_discovered_feeds — array
- $autodiscovery — int
- $autodiscovery_cache_duration — int
- $cache — bool
- $cache_duration — int
- $cache_location — string
- $cache_name_function — string
- $config_settings — array
- $data — array
- $error — mixed
- $feed_url — string
- $file —
- $force_feed — bool
- $force_fsockopen — bool
- $image_handler — string
- $input_encoding — mixed
- $item_limit — integer
- $max_checked_feeds — int
- $multifeed_objects — array
- $multifeed_url — array
- $order_by_date — bool
- $raw_data — string
- $registry
—
SimplePie_Registry
Class registry object - $sanitize —
- $strip_attributes — array
- $timeout — int
- $useragent — string
Methods
Inherited from SimplePie
protected
- fetch_data() — Fetch the data via SimplePie_File
public
- __call() — Magic method handler
- __toString() — Used for converting object to a string
- enable_cache() — Enable/disable caching in SimplePie.
- enable_order_by_date() — Set whether feed items should be sorted into reverse chronological order
- encode_instead_of_strip()
- error() — Get the error message for the occured error
- force_feed() — Force the given data/URL to be treated as a feed
- force_fsockopen() — Force SimplePie to use fsockopen() instead of cURL
- get_all_discovered_feeds()
- get_base() — Get the base URL value from the feed
- get_categories() — Get all categories for the feed
- get_category() — Get a category for the feed
- get_contributor() — Get a contributor for the feed
- get_contributors() — Get all contributors for the feed
- get_copyright() — Get the copyright info for the feed
- get_description() — Get the content for the item
- get_encoding() — Get the character encoding used for output
- get_favicon() — Get the favicon for the current feed
- get_image_height() — Get the feed logo's height
- get_image_link() — Get the feed logo's link
- get_image_title() — Get the feed logo's title
- get_image_url() — Get the feed logo's URL
- get_image_width() — Get the feed logo's link
- get_item() — Get a single item from the feed
- get_item_quantity() — Get the number of items in the feed
- get_items() — Get all items from the feed
- get_language() — Get the language for the feed
- get_latitude() — Get the latitude coordinates for the item
- get_link() — Get a single link for the feed
- get_links() — Get all links for the feed
- get_longitude() — Get the longitude coordinates for the feed
- get_permalink() — Get the permalink for the item
- get_raw_data() — Get the raw XML
- get_registry() — Get the class registry
- get_title() — Get the title of the feed
- get_type() — Get the type of the feed
- handle_content_type() — Send the content-type header with correct encoding
- init() — Initialize the feed object
- merge_items() — Merge items from several feeds into one
- remove_div()
- sanitize() — Sanitize feed data
- set_autodiscovery_cache_duration() — Set the length of time (in seconds) that the autodiscovered feed URL will be cached
- set_autodiscovery_level() — Set how much feed autodiscovery to do
- set_cache_class() — Set which class SimplePie uses for caching
- set_cache_duration() — Set the length of time (in seconds) that the contents of a feed will be cached
- set_cache_location() — Set the file system location where the cached files should be stored
- set_cache_name_function() — Set callback function to create cache filename with
- set_category_class() — Set which class SimplePie uses for handling category data
- set_content_type_sniffer_class() — Set which class SimplePie uses for content-type sniffing
- set_copyright_class() — Set which class SimplePie uses for `<media:copyright>`
- set_credit_class() — Set which class SimplePie uses for `<media:credit>`
- set_enclosure_class() — Set which class SimplePie uses for feed enclosures
- set_favicon_handler() — Set the favicon handler
- set_feed_url() — Set the URL of the feed you want to parse
- set_file() — Set an instance of {@see SimplePie_File} to use as a feed
- set_file_class() — Set which class SimplePie uses for remote file fetching
- set_image_handler() — Set the handler to enable the display of cached images.
- set_input_encoding() — Set the character encoding used to parse the feed
- set_item_class() — Set which class SimplePie uses for handling feed items
- set_item_limit() — Set the limit for items returned per-feed with multifeeds
- set_locator_class() — Set which class SimplePie uses for auto-discovery
- set_max_checked_feeds() — Set maximum number of feeds to check with autodiscovery
- set_output_encoding() — Set the output encoding
- set_parser_class() — Set which class SimplePie uses for XML parsing
- set_rating_class() — Set which class SimplePie uses for `<media:rating>`
- set_raw_data() — Set the raw XML data to parse
- set_restriction_class() — Set which class SimplePie uses for `<media:restriction>`
- set_sanitize_class() — Set which class SimplePie uses for data sanitization
- set_source_class() — Set which class SimplePie uses item sources
- set_stupidly_fast() — Set options to make SP as fast as possible
- set_timeout() — Set the the default timeout for fetching remote feeds
- set_url_replacements() — Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed
- set_useragent() — Set the user agent string
- sort_items() — Sorting callback for items
- strip_attributes()
- strip_comments()
- subscribe_url() — Get the URL for the feed