category Zend
package Zend_Feed_Reader

 Methods

__call()

__call($method, $args) 

Parameters

$method

$args

Constructor

__construct(\DOMDocument $domDocument, string $type) 

Parameters

$domDocument

\DOMDocument

The DOM object for the feed's XML

$type

string

Feed type

Get the number of feed entries.

count() : int

Required by the Iterator interface.

Returns

int

Get a single author

getAuthor(int $index) : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getAuthor()

Parameters

$index

int

Returns

stringnull

Get an array with feed authors

getAuthors() : array
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getAuthors()

Returns

array

Get all categories

getCategories() : \Zend\Feed\Reader\Collection\Category
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getCategories()

Returns

Get the copyright entry

getCopyright() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getCopyright()

Returns

stringnull

Get the feed creation date

getDateCreated() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getDateCreated()

Returns

stringnull

Get the feed modification date

getDateModified() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getDateModified()

Returns

stringnull

Get the feed description

getDescription() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getDescription()

Returns

stringnull

Get the DOM

getDomDocument() : \DOMDocument

Returns

Get the DOMElement representing the items/feed element

getElement() : \DOMElement

Returns

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

getExtensions()

getExtensions() 

Get the feed generator entry

getGenerator() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getGenerator()

Returns

stringnull

Get the feed ID

getId() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getId()

Returns

stringnull

Get the feed language

getLanguage() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getLanguage()

Returns

stringnull

Get an original source URI for the feed being parsed.

getOriginalSourceUri() : string | null

Returns null if unset or the feed was not imported from a URI.

Returns

stringnull

Get the feed title

getTitle() : string | null
Inherited

inherited_from \Zend\Feed\Reader\Feed\FeedInterface::getTitle()

Returns

stringnull

Get the feed type

getType() : string

Returns

string

Get the DOMXPath object for this feed

getXpath() : \DOMXPath

Returns

Return the current feed key

key() : int

Returns

int

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.

setOriginalSourceUri(string $uri) 

This value is returned from getFeedLink() method if the feed does not carry a self-referencing URI.

Parameters

$uri

string

Check to see if the iterator is still valid

valid() : bool

Returns

bool

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

 

Parsed feed data in the shape of a DOMDocument

$domDocument : \DOMDocument

 

An array of parsed feed entries

$entries : array

 

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

$entriesKey : int

 

Array of loaded extensions

$extensions : array

 

Original Source URI (set if imported from a URI)

$originalSourceUri : string

 

The base XPath query used to retrieve feed data

$xpath : \DOMXPath