Item
class Item
// Constructor: function Object() { [native code] } Manages all item-related data
Methods 33 methods
| Method / Return | Description |
|---|---|
| __construct() void | Create a new item object
Parameters: $feed: mixed, $data: mixed |
| set_registry() void | Set the registry handler
Parameters: $registry: \SimplePie\Registry |
| __toString() string | Get a string representation of the item |
| __destruct() void | Remove items that link back to this before destroying this object |
| get_item_tags() array | Get data for an item-level element
Parameters: $namespace: mixed, $tag: mixed |
| get_base() string | Get the base URL value.
Parameters: $element: mixed |
| sanitize() string | Sanitize feed data
Parameters: $data: mixed, $type: mixed, $base: mixed |
| get_feed() \SimplePie\SimplePie | Get the parent feed |
| get_id() (string | Get the unique identifier for the item
Parameters: $hash: mixed, $fn: mixed |
| get_title() (string | Get the title of the item |
| get_description() (string | Get the content for the item
Parameters: $description_only: mixed |
| get_content() (string | Get the content for the item
Parameters: $content_only: mixed |
| get_thumbnail() (array | Get the media:thumbnail of the item |
| get_category() (\SimplePie\Category | Get a category for the item
Parameters: $key: mixed |
| get_categories() (\SimplePie\Category[] | Get all categories for the item |
| get_author() (\SimplePie\Author | Get an author for the item
Parameters: $key: mixed |
| get_contributor() (\SimplePie\Author | Get a contributor for the item
Parameters: $key: mixed |
| get_contributors() (\SimplePie\Author[] | Get all contributors for the item |
| get_authors() (\SimplePie\Author[] | Get all authors for the item |
| get_copyright() string | Get the copyright info for the item |
| get_date() (int | Get the posting date/time for the item
Parameters: $date_format: mixed |
| get_updated_date() (int | Get the update date/time for the item
Parameters: $date_format: mixed |
| get_local_date() (int | Get the localized posting date/time for the item
Parameters: $date_format: mixed |
| get_gmdate() (int | Get the posting date/time for the item (UTC time)
Parameters: $date_format: mixed |
| get_updated_gmdate() (int | Get the update date/time for the item (UTC time)
Parameters: $date_format: mixed |
| get_permalink() (string | Get the permalink for the item |
| get_link() (string | Get a single link for the item
Parameters: $key: mixed, $rel: mixed |
| get_links() (array | Get all links for the item
Parameters: $rel: mixed |
| get_enclosure() (\SimplePie\Enclosure | Get an enclosure from the item
Parameters: $key: mixed, $prefer: mixed |
| get_enclosures() (\SimplePie\Enclosure[] | Get all available enclosures (podcasts, etc.) |
| get_latitude() (string | Get the latitude coordinates for the item |
| get_longitude() (string | Get the longitude coordinates for the item |
| get_source() (\SimplePie\Source | Get the `<atom:source>` for the item |
Properties
| Property / Type | Description |
|---|---|
| $feed mixed public | No description available. |
| $data mixed public | No description available. |
| $registry mixed public | No description available. |