package Default

 Methods

__call()

__call($method, $args) 

Parameters

$method

$args

Constructor

__construct(\Zend\Feed\Reader\DomDocument $domDocument, string $type = null

Parameters

$domDocument

\Zend\Feed\Reader\DomDocument

The DOM object for the feed's XML

$type

string

Feed type

Get the number of feed entries.

count() : integer

Required by the Iterator interface.

Returns

integer

Return the current entry

current() : \Zend\Feed\Reader\AbstractEntry

Returns

\Zend\Feed\Reader\AbstractEntry

Get the DOM

getDomDocument() : \DOMDocument

Returns

\DOMDocument

Get the DOMElement representing the items/feed element

getElement() : \DOMElement

Returns

\DOMElement

Get the Feed's encoding

getEncoding() : string

Returns

string

Return an Extension object with the matching name (postfixed with _Feed)

getExtension(string $name) : \Zend\Feed\Reader\Extension\AbstractFeed

Parameters

$name

string

Returns

\Zend\Feed\Reader\Extension\AbstractFeed

getExtensions()

getExtensions() 

Get an original source URI for the feed being parsed. Returns null if unset or the feed was not imported from a URI.

getOriginalSourceUri() : string | null

Returns

stringnull

Get the feed type

getType() : string

Returns

string

Get the DOMXPath object for this feed

getXpath() : \DOMXPath

Returns

\DOMXPath

Return the current feed key

key() : integer

Returns

integer

Move the feed pointer forward

next() 

Reset the pointer in the feed object

rewind() 

Get feed as xml

saveXml() : string

Returns

string

Set an original source URI for the feed being parsed. This value is returned from getFeedLink() method if the feed does not carry a self-referencing URI.

setOriginalSourceUri(string $uri) 

Parameters

$uri

string

Check to see if the iterator is still valid

valid() : boolean

Returns

boolean

Read all entries to the internal entries array

indexEntries() 

loadExtensions()

loadExtensions() 

Register the default namespaces for the current feed format

registerNamespaces() 

 Properties

 

Parsed feed data

$data : array

Default

array()
 

Parsed feed data in the shape of a DOMDocument

$domDocument : \DOMDocument

Default

null
 

An array of parsed feed entries

$entries : array

Default

array()
 

A pointer for the iterator to keep track of the entries array

$entriesKey : integer

Default

0
 

Array of loaded extensions

$extensions : array

Default

array()
 

Original Source URI (set if imported from a URI)

$originalSourceUri : string

Default

null
 

The base XPath query used to retrieve feed data

$xpath : \DOMXPath

Default

null