Feed/Reader/FeedAbstract.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Feed_Reader  
Version
$Id$  

\Zend_Feed_Reader_FeedAbstract

Package: Zend_Feed_Reader
Implements
Children
\Zend_Feed_Reader_Feed_Rss
\Zend_Feed_Reader_Feed_Atom
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_data = array()
Parsed feed data
Default valuearray()Details
Type
array
>VPropertyprotected\DOMDocument $_domDocument = null
Parsed feed data in the shape of a DOMDocument
Default valuenullDetails
Type
\DOMDocument
>VPropertyprotectedarray $_entries = array()
An array of parsed feed entries
Default valuearray()Details
Type
array
>VPropertyprotectedint $_entriesKey = 0
A pointer for the iterator to keep track of the entries array
Default value0Details
Type
int
>VPropertyprotectedarray $_extensions = array()
Array of loaded extensions
Default valuearray()Details
Type
array
>VPropertyprotectedstring $_originalSourceUri = null
Original Source URI (set if imported from a URI)
Default valuenullDetails
Type
string
>VPropertyprotected\DOMXPath $_xpath = null
The base XPath query used to retrieve feed data
Default valuenullDetails
Type
\DOMXPath

Methods

methodpublic__call( $method,  $args) : void

Parameters
NameTypeDescription
$method
$args
methodpublic__construct( $domDocument, string $type = null) : void

Constructor

Parameters
NameTypeDescription
$domDocument
$typestring

Feed type

methodprotected_indexEntries() : void
abstract

Read all entries to the internal entries array

methodprotected_loadExtensions() : void

methodprotected_registerNamespaces() : void
abstract

Register the default namespaces for the current feed format

methodpubliccount() : int

Get the number of feed entries.

Required by the Iterator interface.
Returns
TypeDescription
int
methodpubliccurrent() : \Zend_Feed_Reader_EntryInterface

Return the current entry

Returns
TypeDescription
\Zend_Feed_Reader_EntryInterface
methodpublicgetDomDocument() : \DOMDocument

Get the DOM

Returns
TypeDescription
\DOMDocument
methodpublicgetElement() : \DOMElement

Get the DOMElement representing the items/feed element

Returns
TypeDescription
\DOMElement
methodpublicgetEncoding() : string

Get the Feed's encoding

Returns
TypeDescription
string
methodpublicgetExtension(string $name) : \Zend_Feed_Reader_Extension_FeedAbstract

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

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Feed_Reader_Extension_FeedAbstract
methodpublicgetExtensions() : void

methodpublicgetOriginalSourceUri() : string | null

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

Returns
TypeDescription
string | null
methodpublicgetType() : string

Get the feed type

Returns
TypeDescription
string
methodpublicgetXpath() : \DOMXPath

Get the DOMXPath object for this feed

Returns
TypeDescription
\DOMXPath
methodpublickey() : \unknown

Return the current feed key

Returns
TypeDescription
\unknown
methodpublicnext() : void

Move the feed pointer forward

methodpublicrewind() : void

Reset the pointer in the feed object

methodpublicsaveXml() : string

Get feed as xml

Returns
TypeDescription
string
methodpublicsetOriginalSourceUri(string $uri) : void

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.

Parameters
NameTypeDescription
$uristring
methodpublicvalid() : boolean

Check to see if the iterator is still valid

Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .