Class SimplePie_Item
Manages all item-related data
Used by SimplePie::get_item()
and SimplePie::get_items()
This class can be overloaded with SimplePie::set_item_class()
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/Item.php
public
|
#
__construct(
Create a new item object This is usually used by Parameters
|
public
|
#
set_registry(
Set the registry handler This is usually used by Parameters
Since
1.3
|
public
string
|
|
public
|
|
public
array
|
#
get_item_tags( string $namespace, string $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 Parameters
Returnsarray Since
1.0
See |
public
string
|
|
public
string
|
|
public
|
|
public
string
|
#
get_id( boolean $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 Parameters
Returnsstring Since
Beta 2
|
public
string|null
|
|
public
string|null
|
#
get_description( boolean $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 Parameters
Returnsstring|null Since
0.8
|
public
string|null
|
#
get_content( boolean $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 Parameters
Returnsstring|null Since
1.0
|
public
|
#
get_category( integer $key = 0 )
Get a category for the item Parameters
Returns
Since
Beta 3 (previously called
get_categories() since Beta 2) |
public
array|null
|
#
get_categories( )
Get all categories for the item Uses ReturnsSince
Beta 3
|
public
|
#
get_author( integer $key = 0 )
Get an author for the item Parameters
Returns
Since
Beta 2
|
public
|
#
get_contributor( integer $key = 0 )
Get a contributor for the item Parameters
Returns
Since
1.1
|
public
array|null
|
|
public
array|null
|
#
get_authors( )
Get all authors for the item Uses ReturnsSince
Beta 2
|
public
string
|
#
get_copyright( )
Get the copyright info for the item Uses Returnsstring Since
1.1
|
public
integer|string|null
|
#
get_date( string $date_format = 'j F Y, g:i a' )
Get the posting date/time for the item Uses Note: obeys PHP's timezone setting. To get a UTC date/time, use Parameters
Returnsinteger|string|null Since
Beta 2 (previously called
get_item_date since 0.8) |
public
integer|string|null
|
#
get_updated_date( string $date_format = 'j F Y, g:i a' )
Get the update date/time for the item Uses Note: obeys PHP's timezone setting. To get a UTC date/time, use Parameters
Returnsinteger|string|null |
public
integer|string|null
|
#
get_local_date( string $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. Parameters
Returnsinteger|string|null Since
1.0
|
public
integer|string|null
|
#
get_gmdate( string $date_format = 'j F Y, g:i a' )
Get the posting date/time for the item (UTC time) Parameters
Returnsinteger|string|null See |
public
integer|string|null
|
#
get_updated_gmdate( string $date_format = 'j F Y, g:i a' )
Get the update date/time for the item (UTC time) Parameters
Returnsinteger|string|null See |
public
string|null
|
#
get_permalink( )
Get the permalink for the item Returns the first link available with a relationship of "alternate".
Identical to Returnsstring|null Permalink URL Since
0.8
See |
public
string|null
|
|
public
array|null
|
|
public
|
#
get_enclosure( integer $key = 0, $prefer = null )
Get an enclosure from the item Supports the <enclosure> RSS tag, as well as Media RSS and iTunes RSS. Parameters
Returns
Since
Beta 2
|
public
array|null
|
#
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. Returnsarray|null List of SimplePie_Enclosure items Since
Beta 2
|
public
string|null
|
#
get_latitude( )
Get the latitude coordinates for the item Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications Uses Returnsstring|null Since
1.0
Link |
public
string|null
|
#
get_longitude( )
Get the longitude coordinates for the item Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications Uses Returnsstring|null Since
1.0
Link |
public
|
public
|
$feed |
|
#
Parent feed |
public
array
|
$data | array() |
#
Raw data |
protected
|
$registry |
|