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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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