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

 Methods

Get a single 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 copyright entry

getCopyright() : string | null

Returns

stringnull

Get the feed creation date

getDateCreated() : \DateTime | null

Returns

\DateTimenull

Get the feed modification date

getDateModified() : \DateTime | null

Returns

\DateTimenull

Get the feed description

getDescription() : string | null

Returns

stringnull

Get the DOM

getDomDocument() : \DOMDocument
Inherited

Returns

\DOMDocument

Get the Feed's encoding

getEncoding() : string
Inherited

Returns

string

Get the feed generator entry

getGenerator() : string | null

Returns

stringnull

Get an array of any supported Pusubhubbub endpoints

getHubs() : array | null

Returns

arraynull

Get the feed ID

getId() : string | null

Returns

stringnull

Get the feed image

getImage() : array | null

Returns

arraynull

Get the feed language

getLanguage() : string | null

Returns

stringnull

Get the feed title

getTitle() : string | null

Returns

stringnull

Get the feed type

getType() : string
Inherited

If null, it will attempt to autodetect the type.

Returns

string

Get the DOMXPath object

getXpath() : string
Inherited

Returns

string

Get the XPath prefix

getXpathPrefix() : string
Inherited

Returns

string

Set the DOM document

setDomDocument(\DOMDocument $dom) : \Zend\Feed\Reader\Extension\AbstractFeed
Inherited

Parameters

$dom

\DOMDocument

Returns

\Zend\Feed\Reader\Extension\AbstractFeed

Set the feed type

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

Parameters

$type

string

Returns

\Zend\Feed\Reader\Extension\AbstractFeed

Set the XPath query

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

Parameters

$xpath

\DOMXPath

Returns

\Zend\Feed\Reader\Extension\AbstractEntry

Set the XPath prefix

setXpathPrefix(string $prefix) : void
Inherited

Parameters

$prefix

string

Return the feed as 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

Detect the presence of any Atom namespaces in use

getAtomType() 

Get an author entry in RSS format

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

Register the default namespaces for the current feed format

registerNamespaces() 
Inherited

 Properties

 

Parsed feed data

$data : array

Default

array()
 

Parsed feed data in the shape of a DOMDocument

$domDocument : \DOMDocument

Default

null
 

The base XPath query used to retrieve feed data

$xpath : \DOMXPath

Default

null
 

The XPath prefix

$xpathPrefix : string

Default

''