PHP Класс Horde_Feed_Base, horde

Horde_Feed_Base implements two core PHP 5 interfaces: ArrayAccess and Iterator. In both cases the collection being treated as an array is considered to be the entry collection, such that iterating over the feed takes you through each of the feed's entries.
Наследование: extends Horde_Xml_Element_List
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_httpClient Horde_Http_Client
$_uri string Our root ("home") URI

Открытые методы

Метод Описание
__construct ( mixed $xml = null, string $uri = null, Horde_Http_Client $httpClient = null ) Feed constructor
__wakeup ( ) Handle null or array values for $this->_element by initializing with $this->_emptyXml, and importing the array with Horde_Xml_Element::fromArray() if necessary.
current ( ) : mixed Required by the Iterator interface.

Описание методов

__construct() публичный Метод

The Horde_Feed_Base constructor takes the URI of a feed or a feed represented as a string and loads it as XML.
public __construct ( mixed $xml = null, string $uri = null, Horde_Http_Client $httpClient = null )
$xml mixed The feed as a string, a DOMElement, or null.
$uri string The full URI of the feed, or null if unknown.
$httpClient Horde_Http_Client

__wakeup() публичный Метод

Handle null or array values for $this->_element by initializing with $this->_emptyXml, and importing the array with Horde_Xml_Element::fromArray() if necessary.
См. также: Horde_Xml_Element::__wakeup
См. также: Horde_Xml_Element::fromArray
public __wakeup ( )

current() публичный Метод

Required by the Iterator interface.
public current ( ) : mixed
Результат mixed The current row, or null if no rows.

Описание свойств

$_httpClient защищенное свойство

protected Horde_Http_Client $_httpClient
Результат Horde_Http_Client

$_uri защищенное свойство

Our root ("home") URI
protected string $_uri
Результат string