Class Zend_Feed_Element

Description

Implements interfaces:

Wraps a DOMElement allowing for simpler attributes more easily.

Located in /Zend/Feed/Element.php (line 28)


	
			
Direct descendents
Class Description
Abstract class Zend_Feed_Abstract The Zend_Feed_Abstract class is an abstract class representing feeds.
Abstract class Zend_Feed_EntryAbstract Zend_Feed_EntryAbstract represents a single entry in an Atom or RSS feed.
Variable Summary
Method Summary
 Zend_Feed_Element __construct ([DOMElement $element = null])
 void ensureAppended ()
 DOMDocument getDOM ()
 void offsetExists (mixed $offset)
 void offsetGet (mixed $offset)
 void offsetSet (mixed $offset, mixed $value)
 void offsetUnset (mixed $offset)
 void saveXML ()
 void saveXMLFragment ()
 void setDOM (DOMElement $element)
 void setParent (Zend_Feed_Element $element)
 void _children (mixed $var)
 mixed __call (string $var, mixed $unused)
 void __get (string $var)
 void __isset (mixed $var)
 void __set (string $var, string $val)
 void __toString ()
 void __unset (mixed $var)
Variables
boolean $_appended = true (line 44)
  • access: protected
DOMElement $_element (line 34)
  • access: protected
Zend_Feed_Element $_parentElement (line 39)
  • access: protected
Methods
Constructor __construct (line 52)

Zend_Feed_Element constructor.

  • access: public
Zend_Feed_Element __construct ([DOMElement $element = null])
  • DOMElement $element: The DOM element we're encapsulating.

Redefined in descendants as:
  • Zend_Feed_Abstract::__construct() : The Zend_Feed_Abstract constructor takes the URI of a feed or a feed represented as a string and loads it as XML.
  • Zend_Feed_EntryAbstract::__construct() : The Zend_Feed_EntryAbstract constructor takes the URI of the feed the entry is part of, and optionally an XML construct (usually a SimpleXMLElement, but it can be an XML string or a DOMNode as well) that contains the contents of the entry.
ensureAppended (line 88)
  • access: protected
void ensureAppended ()
getDOM (line 64)

Return the underlying DOM object, which can then be manipulated with full DOM methods.

  • access: public
DOMDocument getDOM ()
offsetExists (line 280)

Required by the ArrayAccess interface.

  • access: public
  • internal:
void offsetExists (mixed $offset)
offsetGet (line 296)

Required by the ArrayAccess interface.

  • access: public
  • internal:
void offsetGet (mixed $offset)
offsetSet (line 312)

Required by the ArrayAccess interface.

  • access: public
  • internal:
void offsetSet (mixed $offset, mixed $value)
offsetUnset (line 330)

Required by the ArrayAccess interface.

  • access: public
  • internal:
void offsetUnset (mixed $offset)
saveXML (line 100)
  • access: public
void saveXML ()
saveXMLFragment (line 112)
  • access: public
void saveXMLFragment ()
setDOM (line 75)

Take a DOMElement object, which may be originally from a call to getDOM() or may be custom created, and use it as the DOM tree for this ZFeedElement.

  • access: public
void setDOM (DOMElement $element)
setParent (line 81)
  • access: public
void setParent (Zend_Feed_Element $element)
_children (line 251)
  • access: protected
void _children (mixed $var)
__call (line 214)

Map method calls to get the string value of the requested element. If there are multiple elements that match, this will return an array of those objects.

  • return: The node's value, null, or an array of nodes.
  • access: public
mixed __call (string $var, mixed $unused)
  • string $var: The element to get the string value of.
__get (line 123)

Map variable access onto the underlying entry representation.

  • access: public
void __get (string $var)
  • string $var: The property to access.

Redefined in descendants as:
__isset (line 183)

Only for PHP 5.1 and later.

  • access: public
void __isset (mixed $var)
__set (line 158)

Map variable sets onto the underlying entry representation.

  • access: public
void __set (string $var, string $val)
  • string $var: The property to change.
  • string $val: The property's new value.
__toString (line 243)
  • access: public
void __toString ()
__unset (line 231)

Only for PHP 5.1 and later. Remove all children matching $var.

  • access: public
void __unset (mixed $var)

Documentation generated on Tue, 18 Apr 2006 11:54:47 -0700 by phpDocumentor 1.3.0RC3