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

 Methods

__call()

__call($method, $args) 

Parameters

$method

$args

Constructor

__construct(\DomDocument $domDocument, string $type = null

Parameters

$domDocument

$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_EntryInterface

Returns

\Zend_Feed_Reader_EntryInterface

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_FeedAbstract

Parameters

$name

string

Returns

\Zend_Feed_Reader_Extension_FeedAbstract

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() : \unknown

Returns

\unknown

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