\SimplePie_Item
Manages all item-related data
Used by and This class can be overloaded with
Synopsis
class SimplePie_Item
{
- // methods
- public void __construct()
- public void set_registry()
- public string __toString()
- public void __destruct()
- public array get_item_tags()
- public string get_base()
- public string sanitize()
- public SimplePie get_feed()
- public string get_id()
- public string|null get_title()
- public string|null get_description()
- public string|null get_content()
- public SimplePie_Category|null get_category()
- public array|null get_categories()
- public SimplePie_Author|null get_author()
- public SimplePie_Author|null get_contributor()
- public array|null get_contributors()
- public array|null get_authors()
- public string get_copyright()
- public int|string|null get_date()
- public int|string|null get_updated_date()
- public int|string|null get_local_date()
- public int|string|null get_gmdate()
- public int|string|null get_updated_gmdate()
- public string|null get_permalink()
- public string|null get_link()
- public array|null get_links()
- public SimplePie_Enclosure|null get_enclosure()
- public array|null get_enclosures()
- public string|null get_latitude()
- public string|null get_longitude()
- public SimplePie_Source|null get_source()
Tasks
Line | Task |
---|---|
1065+ | Add ability to prefer one type of content over another (in a media group). |
1092+ | Add support for end-user defined sorting of enclosures by type/handler (so we can prefer the faster-loading FLV over MP4). |
1092+ | 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). |
Members
protected
- $registry
—
SimplePie_Registry
Registry object
public
- $data
—
array
Raw data - $feed
—
SimplePie
Parent feed
Methods
public
- __construct() — Create a new item object
- __destruct() — Remove items that link back to this before destroying this object
- __toString() — Get a string representation of the item
- get_base() — Get the base URL value from the parent feed
- get_categories() — Get all categories for the item
- get_category() — Get a category for the item
- get_content() — Get the content for the item
- get_contributor() — Get a contributor for the item
- get_contributors() — Get all contributors for the item
- get_copyright() — Get the copyright info for the item
- get_date() — Get the posting date/time for the item
- get_description() — Get the content for the item
- get_enclosure() — Get an enclosure from the item
- get_enclosures() — Get all available enclosures (podcasts, etc.)
- get_feed() — Get the parent feed
- get_gmdate() — Get the posting date/time for the item (UTC time)
- get_id() — Get the unique identifier for the item
- get_latitude() — Get the latitude coordinates for the item
- get_link() — Get a single link for the item
- get_links() — Get all links for the item
- get_local_date() — Get the localized posting date/time for the item
- get_longitude() — Get the longitude coordinates for the item
- get_permalink() — Get the permalink for the item
- get_source() — Get the `<atom:source>` for the item
- get_title() — Get the title of the item
- get_updated_date() — Get the update date/time for the item
- get_updated_gmdate() — Get the update date/time for the item (UTC time)
- sanitize() — Sanitize feed data
- set_registry() — Set the registry handler