array|false getEnclosure(
string
$method, array
$parameters)
|
|
Access details of file enclosures
The RSS2 spec is ambiguous as to whether an enclosure element must be unique in a given entry. For now we will assume it needn't, and allow for an offset.
Parameters:
string getGuid(
string
$method, array
$params)
|
|
Get the value of the guid element, if specified
guid is the closest RSS2 has to atom's ID. It is usually but not always a URI. The one attribute that RSS2 can posess is 'ispermalink' which specifies whether the guid is itself dereferencable. Use of guid is not obligatory, but is advisable. To get the guid you would call $item->id() (for atom compatibility) or $item->guid(). To check if this guid is a permalink call $item->guid("ispermalink").
Parameters:
Get the entry source if specified
source is an optional sub-element of item. Like atom:source it tells us about where the entry came from (eg. if it's been copied from another feed). It is not a rich source of metadata in the same way as atom:source and while it would be good to maintain compatibility by returning an XML_Feed_Parser_RSS2 element, it makes a lot more sense to return an array.