Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
sort_items ($a, $b) | |
merge_items ($urls, $start=0, $end=0, $limit=0) |
SimplePie::__destruct | ( | ) |
Remove items that link back to this before destroying this object
Références $item.
SimplePie::__toString | ( | ) |
Used for converting object to a string
SimplePie::enable_cache | ( | $enable = true | ) |
SimplePie::enable_order_by_date | ( | $enable = true | ) |
Determines whether feed items should be sorted into reverse chronological order.
public
bool | $enable | Sort as reverse chronological order. |
Référencé par set_stupidly_fast().
SimplePie::enable_xml_dump | ( | $enable = false | ) |
Outputs the raw XML content of the feed, after it has gone through SimplePie's filters.
Used only for debugging, this function will output the XML content as text/xml. When SimplePie reads in a feed, it does a bit of cleaning up before trying to parse it. Many parts of the feed are re-written in memory, and in the end, you have a parsable feed. XML dump shows you the actual XML that SimplePie tries to parse, which may or may not be very different from the original feed.
public
bool | $enable | Enable XML dump |
SimplePie::encode_instead_of_strip | ( | $enable = true | ) |
SimplePie::error | ( | ) |
SimplePie::force_feed | ( | $enable = false | ) |
Force the given data/URL to be treated as a feed no matter what it appears like
public
bool | $enable | Force the given data/URL to be treated as a feed |
Référencé par init().
SimplePie::force_fsockopen | ( | $enable = false | ) |
Forces SimplePie to use fsockopen() instead of the preferred cURL functions.
public
bool | $enable | Force fsockopen() to be used |
Référencé par get_favicon(), et init().
SimplePie::get_all_discovered_feeds | ( | ) |
Références $all_discovered_feeds.
SimplePie::get_author | ( | $key = 0 | ) |
SimplePie::get_authors | ( | ) |
Références $author, $name, $uri, $url, SimplePie_Misc\array_unique(), get_base(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, et SIMPLEPIE_NAMESPACE_ITUNES.
Référencé par get_author().
SimplePie::get_base | ( | $element = array() | ) |
Références elseif, get_link(), get_type(), null, SIMPLEPIE_TYPE_RSS_SYNDICATION, et subscribe_url().
Référencé par get_authors(), get_contributors(), get_copyright(), get_description(), get_favicon(), get_image_link(), get_image_url(), get_links(), et get_title().
SimplePie::get_categories | ( | ) |
Références $category, $label, SimplePie_Misc\array_unique(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, et SIMPLEPIE_NAMESPACE_RSS_20.
Référencé par get_category().
SimplePie::get_category | ( | $key = 0 | ) |
SimplePie::get_channel_tags | ( | $namespace, | |
$tag | |||
) |
Références $return, $tag, $type, get_feed_tags(), get_type(), null, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, SIMPLEPIE_NAMESPACE_RSS_20, SIMPLEPIE_TYPE_ATOM_ALL, SIMPLEPIE_TYPE_RSS_090, SIMPLEPIE_TYPE_RSS_10, et SIMPLEPIE_TYPE_RSS_SYNDICATION.
Référencé par get_authors(), get_categories(), get_contributors(), get_copyright(), get_description(), get_favicon(), get_image_tags(), get_image_url(), get_items(), get_language(), get_latitude(), get_links(), get_longitude(), et get_title().
SimplePie::get_contributor | ( | $key = 0 | ) |
SimplePie::get_contributors | ( | ) |
Références $name, $uri, $url, SimplePie_Misc\array_unique(), get_base(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, et SIMPLEPIE_NAMESPACE_ATOM_10.
Référencé par get_contributor().
SimplePie::get_copyright | ( | ) |
Références $return, SimplePie_Misc\atom_03_construct_type(), SimplePie_Misc\atom_10_construct_type(), elseif, get_base(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_description | ( | ) |
Références $return, SimplePie_Misc\atom_03_construct_type(), SimplePie_Misc\atom_10_construct_type(), elseif, get_base(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_HTML, SIMPLEPIE_CONSTRUCT_MAYBE_HTML, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_ITUNES, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_encoding | ( | ) |
Références sanitize().
Référencé par handle_content_type().
SimplePie::get_favicon | ( | ) |
Returns the URL for the favicon of the feed's website.
Références $cache, $file, $return, $url, SimplePie_Misc\absolutize_url(), elseif, force_fsockopen(), get_base(), get_channel_tags(), get_link(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_FILE_SOURCE_REMOTE, et SIMPLEPIE_NAMESPACE_ATOM_10.
SimplePie::get_feed_tags | ( | $namespace, | |
$tag | |||
) |
Références $tag, $type, get_type(), null, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_RDF, SIMPLEPIE_NAMESPACE_RSS_20, SIMPLEPIE_TYPE_ATOM_03, SIMPLEPIE_TYPE_ATOM_10, SIMPLEPIE_TYPE_RSS_RDF, et SIMPLEPIE_TYPE_RSS_SYNDICATION.
Référencé par get_channel_tags(), get_image_tags(), et get_items().
SimplePie::get_image_height | ( | ) |
Références $return, elseif, get_image_tags(), get_type(), null, SIMPLEPIE_NAMESPACE_RSS_20, et SIMPLEPIE_TYPE_RSS_SYNDICATION.
SimplePie::get_image_link | ( | ) |
Références $return, elseif, get_base(), get_image_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_image_tags | ( | $namespace, | |
$tag | |||
) |
Références $image, $tag, $type, get_channel_tags(), get_feed_tags(), get_type(), null, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, SIMPLEPIE_NAMESPACE_RSS_20, SIMPLEPIE_TYPE_RSS_090, SIMPLEPIE_TYPE_RSS_10, et SIMPLEPIE_TYPE_RSS_SYNDICATION.
Référencé par get_image_height(), get_image_link(), get_image_title(), get_image_url(), et get_image_width().
SimplePie::get_image_title | ( | ) |
Références $return, elseif, get_image_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_image_url | ( | ) |
Références $return, elseif, get_base(), get_channel_tags(), get_image_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_ITUNES, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_image_width | ( | ) |
Références $return, elseif, get_image_tags(), get_type(), null, SIMPLEPIE_NAMESPACE_RSS_20, et SIMPLEPIE_TYPE_RSS_SYNDICATION.
SimplePie::get_item | ( | $key = 0 | ) |
SimplePie::get_item_quantity | ( | $max = 0 | ) |
SimplePie::get_items | ( | $start = 0 , |
|
$end = 0 |
|||
) |
Références $item, $key, get_channel_tags(), get_feed_tags(), merge_items(), null, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
Référencé par get_item(), et get_item_quantity().
SimplePie::get_language | ( | ) |
Références $return, elseif, get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_RDF, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_latitude | ( | ) |
Références $return, elseif, get_channel_tags(), null, SIMPLEPIE_NAMESPACE_GEORSS, et SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO.
SimplePie::get_link | ( | $key = 0 , |
|
$rel = 'alternate' |
|||
) |
Références $key, get_links(), et null.
Référencé par get_base(), get_favicon(), get_permalink(), et subscribe_service().
SimplePie::get_links | ( | $rel = 'alternate' | ) |
Références $key, $link, elseif, get_base(), get_channel_tags(), SimplePie_Misc\is_isegment_nz_nc(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
Référencé par get_link().
SimplePie::get_longitude | ( | ) |
Références $return, elseif, get_channel_tags(), null, SIMPLEPIE_NAMESPACE_GEORSS, et SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO.
SimplePie::get_permalink | ( | ) |
Added for parity between the parent-level and the item/entry-level.
Références get_link().
SimplePie::get_title | ( | ) |
Références $return, SimplePie_Misc\atom_03_construct_type(), SimplePie_Misc\atom_10_construct_type(), elseif, get_base(), get_channel_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_MAYBE_HTML, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, et SIMPLEPIE_NAMESPACE_RSS_20.
SimplePie::get_type | ( | ) |
Références elseif, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_RDF, SIMPLEPIE_NAMESPACE_RSS_090, SIMPLEPIE_NAMESPACE_RSS_10, SIMPLEPIE_NAMESPACE_RSS_20, SIMPLEPIE_TYPE_ALL, SIMPLEPIE_TYPE_ATOM_03, SIMPLEPIE_TYPE_ATOM_10, SIMPLEPIE_TYPE_NONE, SIMPLEPIE_TYPE_RSS_090, SIMPLEPIE_TYPE_RSS_091, SIMPLEPIE_TYPE_RSS_091_NETSCAPE, SIMPLEPIE_TYPE_RSS_091_USERLAND, SIMPLEPIE_TYPE_RSS_092, SIMPLEPIE_TYPE_RSS_093, SIMPLEPIE_TYPE_RSS_094, SIMPLEPIE_TYPE_RSS_10, SIMPLEPIE_TYPE_RSS_20, et SIMPLEPIE_TYPE_RSS_ALL.
Référencé par get_base(), get_channel_tags(), get_feed_tags(), get_image_height(), get_image_tags(), get_image_width(), et init().
SimplePie::handle_content_type | ( | $mime = 'text/html' | ) |
SimplePie::init | ( | ) |
Références $cache, $data, $file, $i, $input_encoding, $raw_data, $url, SimplePie_Misc\change_encoding(), elseif, error(), force_feed(), force_fsockopen(), get_type(), null, SimplePie_Misc\output_javascript(), SimplePie_Misc\parse_url(), sanitize(), set_feed_url(), SIMPLEPIE_BUILD, SIMPLEPIE_FILE_SOURCE_REMOTE, SIMPLEPIE_PHP5, SIMPLEPIE_TYPE_NONE, et SimplePie_Misc\xml_encoding().
Référencé par SimplePie().
|
static |
Références $item, $limit, $urls, et null.
Référencé par get_items().
SimplePie::remove_div | ( | $enable = true | ) |
Références sanitize().
Référencé par set_stupidly_fast().
SimplePie::sanitize | ( | $data, | |
$type, | |||
$base = '' |
|||
) |
Références $base, $data, et $type.
Référencé par encode_instead_of_strip(), get_authors(), get_categories(), get_contributors(), get_copyright(), get_description(), get_encoding(), get_favicon(), get_image_link(), get_image_title(), get_image_url(), get_language(), get_links(), get_title(), init(), remove_div(), set_image_handler(), set_output_encoding(), set_sanitize_class(), set_url_replacements(), SimplePie(), strip_attributes(), strip_comments(), strip_htmltags(), subscribe_feed(), subscribe_itunes(), subscribe_outlook(), subscribe_podcast(), subscribe_service(), et subscribe_url().
SimplePie::set_author_class | ( | $class = 'SimplePie_Author' | ) |
Allows you to change which class SimplePie uses for handling author data. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_autodiscovery_cache_duration | ( | $seconds = 604800 | ) |
Set the length of time (in seconds) that the autodiscovered feed URL will be cached.
public
int | $seconds | The autodiscovered feed URL cache duration. |
SimplePie::set_autodiscovery_level | ( | $level = SIMPLEPIE_LOCATOR_ALL | ) |
Set how much feed autodiscovery to do
public
int | $level | Feed Autodiscovery Level (level can be a combination of the above constants, see bitwise OR operator) |
SimplePie::set_cache_class | ( | $class = 'SimplePie_Cache' | ) |
Allows you to change which class SimplePie uses for caching. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_cache_duration | ( | $seconds = 3600 | ) |
Set the length of time (in seconds) that the contents of a feed will be cached.
public
int | $seconds | The feed content cache duration. |
Référencé par SimplePie().
SimplePie::set_cache_location | ( | $location = './cache' | ) |
Set the file system location where the cached files should be stored.
public
string | $location | The file system location. |
Référencé par SimplePie().
SimplePie::set_cache_name_function | ( | $function = 'md5' | ) |
Set callback function to create cache filename with
public
mixed | $function | Callback function |
Références $function.
SimplePie::set_caption_class | ( | $class = 'SimplePie_Caption' | ) |
Allows you to change which class SimplePie uses for <media:text> captions Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_category_class | ( | $class = 'SimplePie_Category' | ) |
Allows you to change which class SimplePie uses for handling category data. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_content_type_sniffer_class | ( | $class = 'SimplePie_Content_Type_Sniffer' | ) |
Allows you to change which class SimplePie uses for content-type sniffing. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_copyright_class | ( | $class = 'SimplePie_Copyright' | ) |
Allows you to change which class SimplePie uses for <media:copyright> Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_credit_class | ( | $class = 'SimplePie_Credit' | ) |
Allows you to change which class SimplePie uses for <media:credit> Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_enclosure_class | ( | $class = 'SimplePie_Enclosure' | ) |
Allows you to change which class SimplePie uses for feed enclosures. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_favicon_handler | ( | $page = false , |
|
$qs = 'i' |
|||
) |
Set the handler to enable the display of cached favicons.
public
str | $page | Web-accessible path to the handler_favicon.php file. |
str | $qs | The query string that the value should be passed to. |
SimplePie::set_feed_url | ( | $url | ) |
This is the URL of the feed you want to parse.
This allows you to enter the URL of the feed you want to parse, or the website you want to try to use auto-discovery on. This takes priority over any set raw data.
You can set multiple feeds to mash together by passing an array instead of a string for the $url. Remember that with each additional feed comes additional processing and resources.
public
mixed | $url | This is the URL (or array of URLs) that you want to parse. |
Références $url, et SimplePie_Misc\fix_protocol().
Référencé par init(), et SimplePie().
SimplePie::set_file | ( | & | $file | ) |
Provides an instance of SimplePie_File to use as a feed
public
object | &$file | Instance of SimplePie_File (or subclass) |
Références $file.
SimplePie::set_file_class | ( | $class = 'SimplePie_File' | ) |
Allows you to change which class SimplePie uses for remote file fetching. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_image_handler | ( | $page = false , |
|
$qs = 'i' |
|||
) |
Set the handler to enable the display of cached images.
public
str | $page | Web-accessible path to the handler_image.php file. |
str | $qs | The query string that the value should be passed to. |
Références sanitize().
Référencé par set_stupidly_fast().
SimplePie::set_input_encoding | ( | $encoding = false | ) |
Allows you to override the character encoding reported by the feed.
public
string | $encoding | Character encoding. |
SimplePie::set_item_class | ( | $class = 'SimplePie_Item' | ) |
Allows you to change which class SimplePie uses for handling feed items. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_item_limit | ( | $limit = 0 | ) |
Set the limit for items returned per-feed with multifeeds.
public
integer | $limit | The maximum number of items to return. |
Références $limit.
SimplePie::set_javascript | ( | $get = 'js' | ) |
Set javascript query string parameter
public
mixed | $get | Javascript query string parameter |
SimplePie::set_locator_class | ( | $class = 'SimplePie_Locator' | ) |
Allows you to change which class SimplePie uses for auto-discovery. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_max_checked_feeds | ( | $max = 10 | ) |
Set maximum number of feeds to check with autodiscovery
public
int | $max | Maximum number of feeds to check |
SimplePie::set_output_encoding | ( | $encoding = 'UTF-8' | ) |
SimplePie::set_parser_class | ( | $class = 'SimplePie_Parser' | ) |
Allows you to change which class SimplePie uses for XML parsing. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_rating_class | ( | $class = 'SimplePie_Rating' | ) |
Allows you to change which class SimplePie uses for <media:rating> Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_raw_data | ( | $data | ) |
Allows you to use a string of RSS/Atom data instead of a remote feed.
If you have a feed available as a string in PHP, you can tell SimplePie to parse that data string instead of a remote feed. Any set feed URL takes precedence.
public
string | $data | RSS or Atom data as a string. |
Références $data.
SimplePie::set_restriction_class | ( | $class = 'SimplePie_Restriction' | ) |
Allows you to change which class SimplePie uses for <media:restriction> Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_sanitize_class | ( | $class = 'SimplePie_Sanitize' | ) |
Allows you to change which class SimplePie uses for data sanitization. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, SimplePie_Misc\is_subclass_of(), et sanitize().
SimplePie::set_source_class | ( | $class = 'SimplePie_Source' | ) |
Allows you to change which class SimplePie uses item sources. Useful when you are overloading or extending SimplePie's default classes.
public
string | $class | Name of custom class. PHP4 extends documentation http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation |
Références $class, et SimplePie_Misc\is_subclass_of().
SimplePie::set_stupidly_fast | ( | $set = false | ) |
Set options to make SP as fast as possible. Forgoes a substantial amount of data sanitization in favor of speed.
public
bool | $set | Whether to set them or not |
Références enable_order_by_date(), remove_div(), set_image_handler(), strip_attributes(), strip_comments(), et strip_htmltags().
SimplePie::set_timeout | ( | $timeout = 10 | ) |
Allows you to override the default timeout for fetching remote feeds.
This allows you to change the maximum time the feed's server to respond and send the feed back.
public
int | $timeout | The maximum number of seconds to spend waiting to retrieve a feed. |
Références $timeout.
SimplePie::set_url_replacements | ( | $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
array | $element_attribute | Element/attribute key/value pairs |
Références sanitize().
SimplePie::set_useragent | ( | $ua = SIMPLEPIE_USERAGENT | ) |
Allows you to override the default user agent string.
public
string | $ua | New user agent string. |
The SimplePie class contains feed level data and options
There are two ways that you can create a new SimplePie object. The first is by passing a feed URL as a parameter to the SimplePie constructor (as well as optionally setting the cache location and cache expiry). This will initialise the whole feed with all of the default settings, and you can begin accessing methods and properties immediately.
The second way is to create the SimplePie object with no parameters at all. This will enable you to set configuration options. After setting them, you must initialise the feed using $feed->init(). At that point the object's methods and properties will be available to you. This format is what is used throughout this documentation.
public
string | $feed_url | This is the URL you want to parse. |
string | $cache_location | This is where you want the cache to be stored. |
int | $cache_duration | This is the number of seconds that you want to store the cache file for. |
Références $cache_duration, $cache_location, $feed_url, init(), null, sanitize(), set_cache_duration(), set_cache_location(), et set_feed_url().
|
static |
array Stores the default attributes to be stripped by SimplePie::strip_attributes | ( | $attribs = '' | ) |
Références $attribs, $strip_attributes, et sanitize().
Référencé par set_stupidly_fast().
SimplePie::strip_comments | ( | $strip = false | ) |
Références sanitize().
Référencé par set_stupidly_fast().
array Stores the default tags to be stripped by SimplePie::strip_htmltags | ( | $tags = '' , |
|
$encode = null |
|||
) |
Références $strip_htmltags, null, et sanitize().
Référencé par set_stupidly_fast().
SimplePie::subscribe_aol | ( | ) |
SimplePie::subscribe_bloglines | ( | ) |
SimplePie::subscribe_eskobo | ( | ) |
SimplePie::subscribe_feed | ( | ) |
Références SimplePie_Misc\fix_protocol(), null, sanitize(), et SIMPLEPIE_CONSTRUCT_IRI.
SimplePie::subscribe_feedfeeds | ( | ) |
SimplePie::subscribe_feedster | ( | ) |
SimplePie::subscribe_google | ( | ) |
SimplePie::subscribe_gritwire | ( | ) |
SimplePie::subscribe_itunes | ( | ) |
Références SimplePie_Misc\fix_protocol(), null, sanitize(), et SIMPLEPIE_CONSTRUCT_IRI.
SimplePie::subscribe_msn | ( | ) |
SimplePie::subscribe_netvibes | ( | ) |
SimplePie::subscribe_newsburst | ( | ) |
SimplePie::subscribe_newsgator | ( | ) |
SimplePie::subscribe_odeo | ( | ) |
SimplePie::subscribe_outlook | ( | ) |
Références SimplePie_Misc\fix_protocol(), null, sanitize(), et SIMPLEPIE_CONSTRUCT_IRI.
SimplePie::subscribe_podcast | ( | ) |
Références SimplePie_Misc\fix_protocol(), null, sanitize(), et SIMPLEPIE_CONSTRUCT_IRI.
SimplePie::subscribe_podnova | ( | ) |
SimplePie::subscribe_rojo | ( | ) |
SimplePie::subscribe_service | ( | $feed_url, | |
$site_url = null |
|||
) |
Creates the subscribe_* methods' return data
private
string | $feed_url | String to prefix to the feed URL |
string | $site_url | String to prefix to the site URL (and suffix to the feed URL) |
Références $feed_url, $return, get_link(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, et subscribe_url().
Référencé par subscribe_aol(), subscribe_bloglines(), subscribe_eskobo(), subscribe_feedfeeds(), subscribe_feedster(), subscribe_google(), subscribe_gritwire(), subscribe_msn(), subscribe_netvibes(), subscribe_newsburst(), subscribe_newsgator(), subscribe_odeo(), subscribe_podnova(), subscribe_rojo(), et subscribe_yahoo().
SimplePie::subscribe_url | ( | ) |
Références null, sanitize(), et SIMPLEPIE_CONSTRUCT_IRI.
Référencé par get_base(), et subscribe_service().
SimplePie::subscribe_yahoo | ( | ) |
SimplePie::$all_discovered_feeds = array() |
Référencé par get_all_discovered_feeds().
SimplePie::$author_class = 'SimplePie_Author' |
SimplePie::$autodiscovery = SIMPLEPIE_LOCATOR_ALL |
SimplePie::$autodiscovery_cache_duration = 604800 |
SimplePie::$cache = true |
Référencé par get_favicon(), et init().
SimplePie::$cache_class = 'SimplePie_Cache' |
SimplePie::$cache_duration = 3600 |
Référencé par SimplePie().
SimplePie::$cache_location = './cache' |
Référencé par SimplePie().
SimplePie::$cache_name_function = 'md5' |
SimplePie::$caption_class = 'SimplePie_Caption' |
SimplePie::$category_class = 'SimplePie_Category' |
SimplePie::$config_settings = null |
SimplePie::$content_type_sniffer_class = 'SimplePie_Content_Type_Sniffer' |
SimplePie::$copyright_class = 'SimplePie_Copyright' |
SimplePie::$credit_class = 'SimplePie_Credit' |
SimplePie::$data = array() |
Référencé par init(), sanitize(), et set_raw_data().
SimplePie::$enclosure_class = 'SimplePie_Enclosure' |
SimplePie::$error |
Référencé par error().
SimplePie::$favicon_handler = '' |
SimplePie::$feed_url |
Référencé par SimplePie(), et subscribe_service().
SimplePie::$file |
Référencé par get_favicon(), init(), et set_file().
SimplePie::$file_class = 'SimplePie_File' |
SimplePie::$force_feed = false |
SimplePie::$force_fsockopen = false |
SimplePie::$image_handler = '' |
SimplePie::$item_class = 'SimplePie_Item' |
SimplePie::$item_limit = 0 |
SimplePie::$javascript = 'js' |
SimplePie::$locator_class = 'SimplePie_Locator' |
SimplePie::$max_checked_feeds = 10 |
SimplePie::$multifeed_objects = array() |
SimplePie::$multifeed_url = array() |
SimplePie::$order_by_date = true |
SimplePie::$parser_class = 'SimplePie_Parser' |
SimplePie::$rating_class = 'SimplePie_Rating' |
SimplePie::$raw_data |
Référencé par init().
SimplePie::$restriction_class = 'SimplePie_Restriction' |
SimplePie::$sanitize |
SimplePie::$source_class = 'SimplePie_Source' |
SimplePie::$strip_attributes = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc') |
Référencé par strip_attributes().
SimplePie::$strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style') |
Référencé par strip_htmltags().
SimplePie::$timeout = 10 |
Référencé par set_timeout().
SimplePie::$useragent = SIMPLEPIE_USERAGENT |
SimplePie::$xml_dump = false |