Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Feed_Reader_Extension_Atom_Entry Class Reference

Public Member Functions

 getAuthor ($index=0)
 Get the specified author.
 
 getAuthors ()
 Get an array with feed authors.
 
 getContent ()
 Get the entry content.
 
 getDateCreated ()
 Get the entry creation date.
 
 getDateModified ()
 Get the entry modification date.
 
 getDescription ()
 Get the entry description.
 
 getEnclosure ()
 Get the entry enclosure.
 
 getId ()
 Get the entry ID.
 
 getBaseUrl ()
 Get the base URI of the feed (if set).
 
 getLink ($index=0)
 Get a specific link.
 
 getLinks ()
 Get all links.
 
 getPermalink ()
 Get a permalink to the entry.
 
 getTitle ()
 Get the entry title.
 
 getCommentCount ()
 Get the number of comments/replies for current entry.
 
 getCommentLink ()
 Returns a URI pointing to the HTML page where comments can be made on this entry.
 
 getCommentFeedLink ($type= 'atom')
 Returns a URI pointing to a feed of all comments for this entry.
 
 getCategories ()
 Get all categories.
 
 getSource ()
 Get source feed metadata from the entry.
 
- Public Member Functions inherited from Zend_Feed_Reader_Extension_EntryAbstract
 __construct (DOMElement $entry, $entryKey, $type=null)
 Constructor.
 
 getDomDocument ()
 Get the DOM.
 
 getEncoding ()
 Get the Entry's encoding.
 
 getType ()
 Get the entry type.
 
 setXpath (DOMXPath $xpath)
 Set the XPath query.
 
 getXpath ()
 Get the XPath query object.
 
 toArray ()
 Serialize the entry to an array.
 
 getXpathPrefix ()
 Get the XPath prefix.
 
 setXpathPrefix ($prefix)
 Set the XPath prefix.
 

Protected Member Functions

 _collectXhtml ($xhtml, $prefix)
 Parse out XHTML to remove the namespacing.
 
 _absolutiseUri ($link)
 Attempt to absolutise the URI, i.e.
 
 _getAuthor (DOMElement $element)
 Get an author entry.
 
 _registerNamespaces ()
 Register the default namespaces for the current feed format.
 
 _getAtomType ()
 Detect the presence of any Atom namespaces in use.
 
- Protected Member Functions inherited from Zend_Feed_Reader_Extension_EntryAbstract
 _registerNamespaces ()
 Register XML namespaces.
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Feed_Reader_Extension_EntryAbstract
 $_data = array()
 
 $_domDocument = null
 
 $_entry = null
 
 $_entryKey = 0
 
 $_xpath = null
 
 $_xpathPrefix = ''
 

Member Function Documentation

_absolutiseUri (   $link)
protected

Attempt to absolutise the URI, i.e.

if a relative URI apply the xml:base value as a prefix to turn into an absolute URI.

_collectXhtml (   $xhtml,
  $prefix 
)
protected

Parse out XHTML to remove the namespacing.

_getAtomType ( )
protected

Detect the presence of any Atom namespaces in use.

_getAuthor ( DOMElement  $element)
protected

Get an author entry.

Parameters
DOMElement$element
Returns
string
_registerNamespaces ( )
protected

Register the default namespaces for the current feed format.

getAuthor (   $index = 0)

Get the specified author.

Parameters
int$index
Returns
string|null
getAuthors ( )

Get an array with feed authors.

Returns
array

TODO: Limit query to feed level els only!

getBaseUrl ( )

Get the base URI of the feed (if set).

Returns
string|null
getCategories ( )

Get all categories.

Returns
Zend_Feed_Reader_Collection_Category

Since Atom 0.3 did not support categories, it would have used the Dublin Core extension. However there is a small possibility Atom 0.3 may have been retrofittied to use Atom 1.0 instead.

getCommentCount ( )

Get the number of comments/replies for current entry.

Returns
integer
getCommentFeedLink (   $type = 'atom')

Returns a URI pointing to a feed of all comments for this entry.

Returns
string
getCommentLink ( )

Returns a URI pointing to the HTML page where comments can be made on this entry.

Returns
string
getContent ( )

Get the entry content.

Returns
string
getDateCreated ( )

Get the entry creation date.

Returns
string
getDateModified ( )

Get the entry modification date.

Returns
string
getDescription ( )

Get the entry description.

Returns
string
getEnclosure ( )

Get the entry enclosure.

Returns
string
getId ( )

Get the entry ID.

Returns
string
getLink (   $index = 0)

Get a specific link.

Parameters
int$index
Returns
string
getLinks ( )

Get all links.

Returns
array
getPermalink ( )

Get a permalink to the entry.

Returns
string
getSource ( )

Get source feed metadata from the entry.

Returns
Zend_Feed_Reader_Feed_Atom_Source|null
getTitle ( )

Get the entry title.

Returns
string