category Zend
package Zend_Feed_Reader
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Feed_Reader_Extension_EntryAbstract

 Methods

Constructor

__construct(\Zend_Feed_Entry_Abstract $entry, integer $entryKey, string $type = null) : void
Inherited

Parameters

$entry

\Zend_Feed_Entry_Abstract

$entryKey

integer

$type

string

Get the specified author

getAuthor(integer $index = 0) : string | null

Parameters

$index

integer

Returns

stringnull

Get an array with feed authors

getAuthors() : array

Returns

array

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

getBaseUrl() : string | null

Returns

stringnull

Get all categories

getCategories() : \Zend_Feed_Reader_Collection_Category

Returns

\Zend_Feed_Reader_Collection_Category

Get the number of comments/replies for current entry

getCommentCount() : integer

Returns

integer

Get the entry content

getContent() : string

Returns

string

Get the entry creation date

getDateCreated() : string

Returns

string

Get the entry modification date

getDateModified() : string

Returns

string

Get the entry description

getDescription() : string

Returns

string

Get the DOM

getDomDocument() : \DOMDocument
Inherited

Returns

\DOMDocument

Get the entry enclosure

getEnclosure() : string

Returns

string

Get the Entry's encoding

getEncoding() : string
Inherited

Returns

string

Get the entry ID

getId() : string

Returns

string

Get source feed metadata from the entry

getSource() : \Zend_Feed_Reader_Feed_Atom_Source | null

Returns

\Zend_Feed_Reader_Feed_Atom_Sourcenull

Get the entry title

getTitle() : string

Returns

string

Get the entry type

getType() : string
Inherited

Returns

string

Get the XPath query object

getXpath() : \DOMXPath
Inherited

Returns

\DOMXPath

Get the XPath prefix

getXpathPrefix() : string
Inherited

Returns

string

Set the XPath query

setXpath(\DOMXPath $xpath) : \Zend_Feed_Reader_Extension_EntryAbstract
Inherited

Parameters

$xpath

\DOMXPath

Returns

\Zend_Feed_Reader_Extension_EntryAbstract

Set the XPath prefix

setXpathPrefix(string $prefix) : \Zend_Feed_Reader_Extension_EntryAbstract
Inherited

Parameters

$prefix

string

Returns

\Zend_Feed_Reader_Extension_EntryAbstract

Serialize the entry to an array

toArray() : array
Inherited

Returns

array

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.

_absolutiseUri($link) 

Parameters

$link

Parse out XHTML to remove the namespacing

_collectXhtml($xhtml, $prefix) 

Parameters

$xhtml

$prefix

Detect the presence of any Atom namespaces in use

_getAtomType() 

Get an author entry

_getAuthor(\DOMElement $element) : string

Parameters

$element

\DOMElement

Returns

string

Register the default namespaces for the current feed format

_registerNamespaces() 
inherited_from \Zend_Feed_Reader_Extension_EntryAbstract::_registerNamespaces()

Register XML namespaces

_registerNamespaces() : void
Inherited

 Properties

 

Feed entry data

$_data : array

Default

array()
 

DOM document object

$_domDocument : \DOMDocument

Default

null
 

Entry instance

$_entry : \Zend_Feed_Entry_Abstract

Default

null
 

Pointer to the current entry

$_entryKey : integer

Default

0
 

XPath object

$_xpath : \DOMXPath

Default

null
 

XPath query

$_xpathPrefix : string

Default

''