string getAuthor(
array
$arguments)
|
|
Provides access to specific aspects of the author data for an atom entry
Author data at the entry level is more complex than at the feed level. If atom:author is not present for the entry we need to look for it in an atom:source child of the atom:entry. If it's not there either, then we look to the parent for data.
Parameters:
string|false getContent(
mixed
$method, [mixed
$arguments = array()])
|
|
Returns the content of the content element or info on a specific attribute
This element may or may not be present. It cannot be present more than once. It may have a 'src' attribute, in which case there's no content If not present, then the entry must have link with rel="alternate". If there is content we return it, if not and there's a 'src' attribute we return the value of that instead. The method can take an 'attribute' argument, in which case we return the value of that attribute if present. eg. $item->content("type") will return the type of the content. It is recommended that all users check the type before getting the content to ensure that their script is capable of handling the type of returned data. (data carried in the content element can be either 'text', 'html', 'xhtml', or any standard MIME type).
Overrides
XML_Feed_Parser_Type::getContent() (Get content from RSS feeds (atom has its own implementation))
array|false getEnclosure(
string
$method, [array
$arguments = array()])
|
|
For compatibility, this method provides a mapping to access enclosures.
The Atom spec doesn't provide for an enclosure element, but it is generally supported using the link element with rel='enclosure'.
Parameters:
Get details of this entry's source, if available/relevant
Where an atom:entry is taken from another feed then the aggregator is supposed to include an atom:source element which replicates at least the atom:id, atom:title, and atom:updated metadata from the original feed. Atom:source therefore has a very similar structure to atom:feed and if we find it we will return it as an XML_Feed_Parser_Atom object.