Feed/Reader/Extension/Atom/Entry.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Reader
- Version
- $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Feed_Reader_Extension_Atom_Entry
- Parent(s)
- \Zend_Feed_Reader_Extension_EntryAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_data = array()
array()Details- Type
- array
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_data

\DOMDocument $_domDocument = nullDOM document object
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::$$_domDocumentnullDetails- Type
- \DOMDocument
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_domDocument

\Zend_Feed_Entry_Abstract $_entry = null
nullDetails- Type
- \Zend_Feed_Entry_Abstract
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_entry

int $_entryKey = 0Pointer to the current entry
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::$$_entryKey0Details- Type
- int
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_entryKey

\DOMXPath $_xpath = null
nullDetails- Type
- \DOMXPath
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_xpath

string $_xpathPrefix = ''
''Details- Type
- string
- Inherited_from
- \Zend_Feed_Reader_Extension_EntryAbstract::$$_xpathPrefix
Methods

__construct(\Zend_Feed_Entry_Abstract $entry, int $entryKey, string $type = null) : void
| Name | Type | Description |
|---|---|---|
| $entry | \Zend_Feed_Entry_Abstract | |
| $entryKey | int | |
| $type | string |

_absolutiseUri( $link) : voidAttempt to absolutise the URI, i.e.
if a relative URI apply the xml:base value as a prefix to turn into an absolute URI.
| Name | Type | Description |
|---|---|---|
| $link |

_collectXhtml( $xhtml, $prefix) : voidParse out XHTML to remove the namespacing
| Name | Type | Description |
|---|---|---|
| $xhtml | ||
| $prefix |

_getAuthor(\DOMElement $element) : stringGet an author entry
| Name | Type | Description |
|---|---|---|
| $element | \DOMElement |
| Type | Description |
|---|---|
| string |

getAuthor(int $index = 0) : string | nullGet the specified author
| Name | Type | Description |
|---|---|---|
| $index | int |
| Type | Description |
|---|---|
| string | null |

getBaseUrl() : string | nullGet the base URI of the feed (if set).
| Type | Description |
|---|---|
| string | null |

getCategories() : \Zend_Feed_Reader_Collection_CategoryGet all categories
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Collection_Category |

getCommentCount() : integerGet the number of comments/replies for current entry
| Type | Description |
|---|---|
| integer |

getCommentFeedLink( $type = 'atom') : stringReturns a URI pointing to a feed of all comments for this entry
| Name | Type | Description |
|---|---|---|
| $type |
| Type | Description |
|---|---|
| string |

getCommentLink() : stringReturns a URI pointing to the HTML page where comments can be made on this entry
| Type | Description |
|---|---|
| string |

getEncoding() : stringGet the Entry's encoding
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::getEncoding()| Type | Description |
|---|---|
| string |

getLink(int $index = 0) : stringGet a specific link
| Name | Type | Description |
|---|---|---|
| $index | int |
| Type | Description |
|---|---|
| string |

getSource() : \Zend_Feed_Reader_Feed_Atom_Source | nullGet source feed metadata from the entry
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Feed_Atom_Source | null |

getXpath() : \DOMXPathGet the XPath query object
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::getXpath()| Type | Description |
|---|---|
| \DOMXPath |

getXpathPrefix() : stringGet the XPath prefix
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::getXpathPrefix()| Type | Description |
|---|---|
| string |

setXpath(\DOMXPath $xpath) : \Zend_Feed_Reader_Extension_EntryAbstract
| Name | Type | Description |
|---|---|---|
| $xpath | \DOMXPath |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Extension_EntryAbstract |

setXpathPrefix(string $prefix) : \Zend_Feed_Reader_Extension_EntryAbstractSet the XPath prefix
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::setXpathPrefix()| Name | Type | Description |
|---|---|---|
| $prefix | string |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Extension_EntryAbstract |

toArray() : arraySerialize the entry to an array
Inherited from: \Zend_Feed_Reader_Extension_EntryAbstract::toArray()| Type | Description |
|---|---|
| array |