Öffentliche Methoden | |
__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 () | |
Datenfelder | |
$feed | |
$data = array() | |
Geschützte Attribute | |
$registry | |
__construct | ( | $feed, | |
$data | |||
) |
Create a new item object
This is usually used by {
SimplePie | $feed | Parent feed |
array | $data | Raw data |
__destruct | ( | ) |
__toString | ( | ) |
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 |
Definiert in Zeile 502 der Datei Item.php.
Benutzt get_authors().
get_authors | ( | ) |
Get all authors for the item
Uses <atom:author>
, <author>
, <dc:creator>
or <itunes:author>
Definiert in Zeile 609 der Datei Item.php.
Benutzt get_base(), get_item_tags(), get_source(), 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 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von get_author().
get_base | ( | $element = array() ) |
Get the base URL value from the parent feed
Uses <xml:base>
array | $element |
Definiert in Zeile 165 der Datei Item.php.
Wird benutzt von get_authors(), get_content(), get_contributors(), get_copyright(), get_description(), get_enclosures(), get_links() und get_title().
get_categories | ( | ) |
Get all categories for the item
Uses <atom:category>
, <category>
or <dc:subject>
Definiert in Zeile 438 der Datei Item.php.
Benutzt get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von 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 |
Definiert in Zeile 417 der Datei Item.php.
Benutzt get_categories().
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? |
Definiert in Zeile 386 der Datei Item.php.
Benutzt get_base(), get_description(), get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_HTML, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10 und SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT.
Wird benutzt von 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 |
Definiert in Zeile 522 der Datei Item.php.
Benutzt get_contributors().
get_contributors | ( | ) |
Get all contributors for the item
Uses <atom:contributor>
Definiert in Zeile 543 der Datei Item.php.
Benutzt get_base(), get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03 und SIMPLEPIE_NAMESPACE_ATOM_10.
Wird benutzt von get_contributor().
get_copyright | ( | ) |
Get the copyright info for the item
Uses <atom:rights>
or <dc:rights>
Definiert in Zeile 699 der Datei Item.php.
Benutzt get_base(), get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10 und 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 { |
Definiert in Zeile 733 der Datei Item.php.
Benutzt get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von get_gmdate() und 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? |
Definiert in Zeile 323 der Datei Item.php.
Benutzt get_base(), get_content(), get_item_tags(), 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 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von 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 |
Definiert in Zeile 1059 der Datei Item.php.
Benutzt get_enclosures().
Wird benutzt von 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.
Add support for end-user defined sorting of enclosures by type/handler (so we can prefer the faster-loading FLV over MP4).
If an element exists at a level, but it's value is empty, we should fall back to the value from the parent (if it exists).
Definiert in Zeile 1086 der Datei Item.php.
Benutzt get_base(), get_feed(), get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_IRI, SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_ITUNES, SIMPLEPIE_NAMESPACE_MEDIARSS und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von get_enclosure().
get_feed | ( | ) |
Get the parent feed
Note: this may not work as you think for multifeeds!
Definiert in Zeile 194 der Datei Item.php.
Benutzt $feed.
Wird benutzt von 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 { |
Definiert in Zeile 888 der Datei Item.php.
Benutzt get_date().
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? |
Definiert in Zeile 213 der Datei Item.php.
Benutzt get_item_tags(), get_permalink(), get_title(), sanitize(), SIMPLEPIE_CONSTRUCT_TEXT, SIMPLEPIE_NAMESPACE_ATOM_03, SIMPLEPIE_NAMESPACE_ATOM_10, SIMPLEPIE_NAMESPACE_DC_10, SIMPLEPIE_NAMESPACE_DC_11, SIMPLEPIE_NAMESPACE_RDF und 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 |
Definiert in Zeile 145 der Datei Item.php.
Wird benutzt von 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() und 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>
Definiert in Zeile 2898 der Datei Item.php.
Benutzt get_item_tags(), SIMPLEPIE_NAMESPACE_GEORSS und 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 |
Definiert in Zeile 953 der Datei Item.php.
Benutzt get_links().
Wird benutzt von 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 |
Definiert in Zeile 975 der Datei Item.php.
Benutzt get_base(), get_item_tags(), 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 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von 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 { |
Definiert in Zeile 865 der Datei Item.php.
Benutzt get_date(), sanitize() und 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>
Definiert in Zeile 2926 der Datei Item.php.
Benutzt get_item_tags(), SIMPLEPIE_NAMESPACE_GEORSS und 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 {
Definiert in Zeile 927 der Datei Item.php.
Benutzt get_enclosure() und get_link().
Wird benutzt von get_id().
get_source | ( | ) |
Get the <atom:source>
for the item
Definiert in Zeile 2952 der Datei Item.php.
Benutzt get_item_tags() und SIMPLEPIE_NAMESPACE_ATOM_10.
Wird benutzt von get_authors().
get_title | ( | ) |
Get the title of the item
Uses <atom:title>
, <title>
or <dc:title>
get_item_title
since 0.8) Definiert in Zeile 268 der Datei Item.php.
Benutzt get_base(), get_item_tags(), 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 und SIMPLEPIE_NAMESPACE_RSS_20.
Wird benutzt von 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 { |
Definiert in Zeile 812 der Datei Item.php.
Benutzt get_item_tags(), sanitize(), SIMPLEPIE_CONSTRUCT_TEXT und SIMPLEPIE_NAMESPACE_ATOM_10.
Wird benutzt von 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 { |
Definiert in Zeile 906 der Datei Item.php.
Benutzt get_updated_date().
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 |
Definiert in Zeile 180 der Datei Item.php.
Benutzt $data.
Wird benutzt von 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() und get_updated_date().
set_registry | ( | SimplePie_Registry | $registry) |
Set the registry handler
This is usually used by {
SimplePie_Registry | $registry |
Definiert in Zeile 105 der Datei Item.php.
Benutzt $registry.
$data = array() |
Definiert in Zeile 72 der Datei Item.php.
Wird benutzt von __construct() und sanitize().
$feed |
Definiert in Zeile 64 der Datei Item.php.
Wird benutzt von __construct() und get_feed().
|
protected |
Definiert in Zeile 80 der Datei Item.php.
Wird benutzt von set_registry().