Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($feed, $data) | |
set_registry (SimplePie_Registry $registry) | |
__toString () | |
__destruct () | |
get_item_tags ($namespace, $tag) | |
get_base ($element=array()) | |
sanitize ($data, $type, $base='') | |
get_feed () | |
get_id ($hash=false) | |
get_title () | |
get_description ($description_only=false) | |
get_content ($content_only=false) | |
get_category ($key=0) | |
get_categories () | |
get_author ($key=0) | |
get_contributor ($key=0) | |
get_contributors () | |
get_authors () | |
get_copyright () | |
get_date ($date_format='j F Y, g:i a') | |
get_updated_date ($date_format='j F Y, g:i a') | |
get_local_date ($date_format='%c') | |
get_gmdate ($date_format='j F Y, g:i a') | |
get_updated_gmdate ($date_format='j F Y, g:i a') | |
get_permalink () | |
get_link ($key=0, $rel='alternate') | |
get_links ($rel='alternate') | |
get_enclosure ($key=0, $prefer=null) | |
get_enclosures () | |
get_latitude () | |
get_longitude () | |
get_source () | |
Champs de données | |
$feed | |
$data = array() | |
Attributs protégés | |
$registry | |
__construct | ( | $feed, | |
$data | |||
) |
Create a new item object
This is usually used by {
SimplePie | $feed | Parent feed |
array | $data | Raw data |
__destruct | ( | ) |
Remove items that link back to this before destroying this object
__toString | ( | ) |
Get a string representation of the item
get_author | ( | $key = 0 | ) |
Get an author for the item
int | $key | The author that you want to return. Remember that arrays begin with 0, not 1 |
Références $key, get_authors(), et null.
get_authors | ( | ) |
Get all authors for the item
Uses <atom:author>
, <author>
, <dc:creator>
or <itunes:author>
Références $author, $name, $uri, $url, elseif, get_base(), get_item_tags(), get_source(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_ITUNES, et SIMPLEPIE_NAMESPACE_RSS_20.
Référencé par get_author().
get_base | ( | $element = array() | ) |
Get the base URL value from the parent feed
Uses <xml:base>
array | $element |
Référencé par get_authors(), get_content(), get_contributors(), get_copyright(), get_description(), get_enclosures(), get_links(), et get_title().
get_categories | ( | ) |
Get all categories for the item
Uses <atom:category>
, <category>
or <dc:subject>
Références $category, $label, get_item_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().
get_category | ( | $key = 0 | ) |
Get a category for the item
get_categories()
since Beta 2) int | $key | The category that you want to return. Remember that arrays begin with 0, not 1 |
Références $key, get_categories(), et null.
get_content | ( | $content_only = false | ) |
Get the content for the item
Prefers full content over summaries, but will return a summary if full content does not exist.
To prefer summaries instead, use {
Uses <atom:content>
or <content:encoded>
(RSS 1.0 Content Module)
boolean | $content_only | Should we avoid falling back to the description? |
Références $return, elseif, get_base(), get_description(), get_item_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_HTML, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, et SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT.
Référencé par get_description().
get_contributor | ( | $key = 0 | ) |
Get a contributor for the item
int | $key | The contrbutor that you want to return. Remember that arrays begin with 0, not 1 |
Références $key, get_contributors(), et null.
get_contributors | ( | ) |
Get all contributors for the item
Uses <atom:contributor>
Références $name, $uri, $url, get_base(), get_item_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, et SIMPLEPIE_NAMESPACE_ATOM_10.
Référencé par get_contributor().
get_copyright | ( | ) |
Get the copyright info for the item
Uses <atom:rights>
or <dc:rights>
Références $return, elseif, get_base(), get_item_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, et SIMPLEPIE_NAMESPACE_DC_11.
get_date | ( | $date_format = 'j F Y , |
|
g:i a' | |||
) |
Get the posting date/time for the item
Uses <atom:published>
, <atom:updated>
, <atom:issued>
, <atom:modified>
, <pubDate>
or <dc:date>
Note: obeys PHP's timezone setting. To get a UTC date/time, use {
get_item_date
since 0.8)string | $date_format | Supports any PHP date format from { |
Références $return, elseif, get_item_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.
Référencé par get_gmdate(), et get_local_date().
get_description | ( | $description_only = false | ) |
Get the content for the item
Prefers summaries over full content , but will return full content if a summary does not exist.
To prefer full content instead, use {
Uses <atom:summary>
, <description>
, <dc:description>
or <itunes:subtitle>
boolean | $description_only | Should we avoid falling back to the content? |
Références $return, elseif, get_base(), get_content(), get_item_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.
Référencé par get_content().
get_enclosure | ( | $key = 0 , |
|
$prefer = null |
|||
) |
Get an enclosure from the item
Supports the <enclosure> RSS tag, as well as Media RSS and iTunes RSS.
int | $key | The enclosure that you want to return. Remember that arrays begin with 0, not 1 |
Références $key, get_enclosures(), et null.
Référencé par get_permalink().
get_enclosures | ( | ) |
Get all available enclosures (podcasts, etc.)
Supports the <enclosure> RSS tag, as well as Media RSS and iTunes RSS.
At this point, we're pretty much assuming that all enclosures for an item are the same content. Anything else is too complicated to properly support.
Références $category, $content, $description, $hash, $height, $keywords, $label, $lang, $link, $rating, $title, $type, $url, $value, $width, elseif, get_base(), get_feed(), get_item_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_ITUNES, SIMPLEPIE_NAMESPACE_MEDIARSS, et SIMPLEPIE_NAMESPACE_RSS_20.
Référencé par get_enclosure().
get_feed | ( | ) |
Get the parent feed
Note: this may not work as you think for multifeeds!
Références $feed.
Référencé par get_enclosures().
get_gmdate | ( | $date_format = 'j F Y , |
|
g:i a' | |||
) |
Get the posting date/time for the item (UTC time)
string | $date_format | Supports any PHP date format from { |
Références $date, get_date(), et null.
get_id | ( | $hash = false | ) |
Get the unique identifier for the item
This is usually used when writing code to check for new items in a feed.
Uses <atom:id>
, <guid>
, <dc:identifier>
or the about
attribute for RDF. If none of these are supplied (or $hash
is true), creates an MD5 hash based on the permalink and title. If either of those are not supplied, creates a hash based on the full feed data.
boolean | $hash | Should we force using a hash instead of the supplied ID? |
Références $hash, $return, elseif, get_item_tags(), get_permalink(), get_title(), 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.
get_item_tags | ( | $namespace, | |
$tag | |||
) |
Get data for an item-level element
This method allows you to get access to ANY element/attribute that is a sub-element of the item/entry tag.
See {
string | $namespace | The URL of the XML namespace of the elements you're trying to access |
string | $tag | Tag name |
Références null.
Référencé par get_authors(), get_categories(), get_content(), get_contributors(), get_copyright(), get_date(), get_description(), get_enclosures(), get_id(), get_latitude(), get_links(), get_longitude(), get_source(), get_title(), et get_updated_date().
get_latitude | ( | ) |
Get the latitude coordinates for the item
Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications
Uses <geo:lat>
or <georss:point>
Références $return, elseif, get_item_tags(), null, SIMPLEPIE_NAMESPACE_GEORSS, et SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO.
get_link | ( | $key = 0 , |
|
$rel = 'alternate' |
|||
) |
Get a single link for the item
int | $key | The link that you want to return. Remember that arrays begin with 0, not 1 |
string | $rel | The relationship of the link to return |
Références $key, $rel, get_links(), et null.
Référencé par get_permalink().
get_links | ( | $rel = 'alternate' | ) |
Get all links for the item
Uses <atom:link>
, <link>
or <guid>
string | $rel | The relationship of links to return |
Références $key, $link, $rel, elseif, get_base(), get_item_tags(), 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().
get_local_date | ( | $date_format = '%c' | ) |
Get the localized posting date/time for the item
Returns the date formatted in the localized language. To display in languages other than the server's default, you need to change the locale with setlocale(). The available localizations depend on which ones are installed on your web server.
string | $date_format | Supports any PHP date format from { |
Références $date, elseif, get_date(), null, sanitize(), et SIMPLEPIE_CONSTRUCT_TEXT.
get_longitude | ( | ) |
Get the longitude coordinates for the item
Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications
Uses <geo:long>
, <geo:lon>
or <georss:point>
Références $return, elseif, get_item_tags(), null, SIMPLEPIE_NAMESPACE_GEORSS, et SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO.
get_permalink | ( | ) |
Get the permalink for the item
Returns the first link available with a relationship of "alternate". Identical to {
Références $link, elseif, get_enclosure(), get_link(), et null.
Référencé par get_id().
get_source | ( | ) |
Get the <atom:source>
for the item
Références $return, get_item_tags(), null, et SIMPLEPIE_NAMESPACE_ATOM_10.
Référencé par get_authors().
get_title | ( | ) |
Get the title of the item
Uses <atom:title>
, <title>
or <dc:title>
get_item_title
since 0.8) Références $return, elseif, get_base(), get_item_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.
Référencé par get_id().
get_updated_date | ( | $date_format = 'j F Y , |
|
g:i a' | |||
) |
Get the update date/time for the item
Uses <atom:updated>
Note: obeys PHP's timezone setting. To get a UTC date/time, use {
string | $date_format | Supports any PHP date format from { |
Références $return, get_item_tags(), null, sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, et SIMPLEPIE_NAMESPACE_ATOM_10.
Référencé par get_updated_gmdate().
get_updated_gmdate | ( | $date_format = 'j F Y , |
|
g:i a' | |||
) |
Get the update date/time for the item (UTC time)
string | $date_format | Supports any PHP date format from { |
Références $date, get_updated_date(), et null.
sanitize | ( | $data, | |
$type, | |||
$base = '' |
|||
) |
Sanitize feed data
private
string | $data | Data to sanitize |
int | $type | One of the SIMPLEPIE_CONSTRUCT_* constants |
string | $base | Base URL to resolve URLs against |
Références $base, $data, et $type.
Référencé par get_authors(), get_categories(), get_content(), get_contributors(), get_copyright(), get_date(), get_description(), get_enclosures(), get_id(), get_links(), get_local_date(), get_title(), et get_updated_date().
set_registry | ( | SimplePie_Registry | $registry | ) |
Set the registry handler
This is usually used by {
SimplePie_Registry | $registry |
Références $registry.
$data = array() |
Référencé par __construct(), et sanitize().
$feed |
Référencé par __construct(), et get_feed().
|
protected |
Référencé par set_registry().