package Default
inherited_from \Zend\Feed\Reader\Extension\AbstractEntry

 Methods

Get the specified author

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

Parameters

$index

integer

Returns

stringnull

Get an array with feed authors

getAuthors() : \Zend\Feed\Reader\Collection\Author

Returns

\Zend\Feed\Reader\Collection\Author

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 DOMElement

getEntryElement() : \DOMElement
Inherited

Returns

\DOMElement

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 entry DOMElement

setEntryElement(\DOMElement $entry) : \Zend\Feed\Reader\Extension\AbstractEntry
Inherited

Has side effect of setting the DOMDocument for the entry.

Parameters

$entry

\DOMElement

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

Set the entry key

setEntryKey(string $entryKey) : \Zend\Feed\Reader\Extension\AbstractEntry
Inherited

Parameters

$entryKey

string

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

Set the entry type

setType(string $type) : \Zend\Feed\Reader\Extension\AbstractEntry
Inherited

Has side effect of setting xpath prefix

Parameters

$type

string

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

Set the XPath query

setXpath(\DOMXPath $xpath) : \Zend\Feed\Reader\Extension\AbstractEntry
Inherited

Parameters

$xpath

\DOMXPath

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

Set the XPath prefix

setXpathPrefix(string $prefix) : \Zend\Feed\Reader\Extension\AbstractEntry
Inherited

Parameters

$prefix

string

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

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) : string

Parameters

$link

Returns

string

Parse out XHTML to remove the namespacing

collectXhtml($xhtml, $prefix) : mixed

Parameters

$xhtml

$prefix

Returns

mixed

Detect the presence of any Atom namespaces in use

getAtomType() : string

Returns

string

Get an author entry

getAuthorFromElement(\DOMElement $element) : string

Parameters

$element

\DOMElement

Returns

string

Register the default namespaces for the current feed format

registerNamespaces() 
inherited_from \Zend\Feed\Reader\Extension\AbstractEntry::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 : \DOMElement

Default

null
 

Pointer to the current entry

$entryKey : integer

Default

0
 

XPath object

$xpath : \DOMXPath

Default

null
 

XPath query

$xpathPrefix : string

Default

''