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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Feed_Reader  
Version
$Id: FeedAbstract.php 25024 2012-07-30 15:08:15Z rob $  

\Zend_Feed_Reader_FeedAbstract

Package: Zend\Feed\Reader
Implements
\Zend_Feed_Reader_FeedInterface
Children
\Zend_Feed_Reader_Feed_Rss
\Zend_Feed_Reader_Feed_Atom
Category
Zend  
Copyright
Copyright (c) 2005-2012 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 $domDocument, string $type = null) : void

Constructor

Parameters
NameTypeDescription
$domDocument\DomDocument

The DOM object for the feed's XML

$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
methodpublicgetAuthor(int $index = 0) : string | null
inherited

Get a single author

Inherited from: \Zend_Feed_Reader_FeedInterface::getAuthor()
Parameters
NameTypeDescription
$indexint
Returns
TypeDescription
string | null
methodpublicgetAuthors() : array
inherited

Get an array with feed authors

Inherited from: \Zend_Feed_Reader_FeedInterface::getAuthors()
Returns
TypeDescription
array
methodpublicgetCategories() : \Zend_Feed_Reader_Collection_Category
inherited

Get all categories

Inherited from: \Zend_Feed_Reader_FeedInterface::getCategories()
methodpublicgetCopyright() : string | null
inherited

Get the copyright entry

Inherited from: \Zend_Feed_Reader_FeedInterface::getCopyright()
Returns
TypeDescription
string | null
methodpublicgetDateCreated() : string | null
inherited

Get the feed creation date

Inherited from: \Zend_Feed_Reader_FeedInterface::getDateCreated()
Returns
TypeDescription
string | null
methodpublicgetDateModified() : string | null
inherited

Get the feed modification date

Inherited from: \Zend_Feed_Reader_FeedInterface::getDateModified()
Returns
TypeDescription
string | null
methodpublicgetDescription() : string | null
inherited

Get the feed description

Inherited from: \Zend_Feed_Reader_FeedInterface::getDescription()
Returns
TypeDescription
string | null
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

methodpublicgetFeedLink() : string | null
inherited

Get a link to the XML feed

Inherited from: \Zend_Feed_Reader_FeedInterface::getFeedLink()
Returns
TypeDescription
string | null
methodpublicgetGenerator() : string | null
inherited

Get the feed generator entry

Inherited from: \Zend_Feed_Reader_FeedInterface::getGenerator()
Returns
TypeDescription
string | null
methodpublicgetId() : string | null
inherited

Get the feed ID

Inherited from: \Zend_Feed_Reader_FeedInterface::getId()
Returns
TypeDescription
string | null
methodpublicgetLanguage() : string | null
inherited

Get the feed language

Inherited from: \Zend_Feed_Reader_FeedInterface::getLanguage()
Returns
TypeDescription
string | null
methodpublicgetLink() : string | null
inherited

Get a link to the HTML source

Inherited from: \Zend_Feed_Reader_FeedInterface::getLink()
Returns
TypeDescription
string | null
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
methodpublicgetTitle() : string | null
inherited

Get the feed title

Inherited from: \Zend_Feed_Reader_FeedInterface::getTitle()
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.0.0a12.