Moodle  2.2.1
http://www.collinsharper.com
SimplePie_Item Class Reference

Public Member Functions

 __construct ($feed, $data)
 __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_local_date ($date_format= '%c')
 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 ()

Data Fields

 $feed
 $data = array()

Detailed Description

Definition at line 2848 of file simplepie.class.php.


Constructor & Destructor Documentation

__construct ( feed,
data 
)

Definition at line 2853 of file simplepie.class.php.

Remove items that link back to this before destroying this object

Definition at line 2867 of file simplepie.class.php.


Member Function Documentation

Definition at line 2859 of file simplepie.class.php.

get_author ( key = 0)

Definition at line 3128 of file simplepie.class.php.

Here is the call graph for this function:

Definition at line 3212 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_base ( element = array())

Definition at line 2887 of file simplepie.class.php.

Here is the caller graph for this function:

Definition at line 3071 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_category ( key = 0)

Definition at line 3058 of file simplepie.class.php.

Here is the call graph for this function:

get_content ( content_only = false)

Definition at line 3034 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_contributor ( key = 0)

Definition at line 3141 of file simplepie.class.php.

Here is the call graph for this function:

Definition at line 3154 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3294 of file simplepie.class.php.

Here is the call graph for this function:

get_date ( date_format = 'j F Y,
g:i a'   
)

Definition at line 3314 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_description ( description_only = false)

Definition at line 2985 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_enclosure ( key = 0,
prefer = null 
)
Todo:
Add ability to prefer one type of content over another (in a media group).

Definition at line 3506 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Grabs 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.

Todo:

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).

Definition at line 3529 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_feed ( )

Definition at line 2897 of file simplepie.class.php.

Here is the caller graph for this function:

get_id ( hash = false)

Definition at line 2902 of file simplepie.class.php.

Here is the call graph for this function:

get_item_tags ( namespace,
tag 
)

Definition at line 2875 of file simplepie.class.php.

Here is the caller graph for this function:

Definition at line 5325 of file simplepie.class.php.

Here is the call graph for this function:

get_link ( key = 0,
rel = 'alternate' 
)

Definition at line 3416 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_links ( rel = 'alternate')

Definition at line 3429 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_local_date ( date_format = '%c')

Definition at line 3382 of file simplepie.class.php.

Here is the call graph for this function:

Definition at line 5341 of file simplepie.class.php.

Here is the call graph for this function:

Definition at line 3398 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 5361 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_title ( )

Definition at line 2945 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

sanitize ( data,
type,
base = '' 
)

Definition at line 2892 of file simplepie.class.php.

Here is the caller graph for this function:


Field Documentation

$data = array()

Definition at line 2851 of file simplepie.class.php.

$feed

Definition at line 2850 of file simplepie.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations