string getGuid(
string
$method, array
$params)
|
|
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:
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.