Class Zend_Feed_Element

Description

Implements interfaces:

  • ArrayAccess (internal interface)

Wraps a DOMElement allowing for SimpleXML-like access to attributes.

  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Feed/Element.php (line 32)


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

Zend_Feed_Element constructor.

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

Redefined in descendants as:
ensureAppended (line 111)

Appends this element to its parent if necessary.

  • access: protected
void ensureAppended ()
getDOM (line 71)

Get a DOM representation of the element

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

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

Required by the ArrayAccess interface.

  • access: public
boolean offsetExists (string $offset)
  • string $offset

Implementation of:
ArrayAccess::offsetExists
offsetGet (line 356)

Required by the ArrayAccess interface.

  • access: public
string offsetGet (string $offset)
  • string $offset

Implementation of:
ArrayAccess::offsetGet
offsetSet (line 374)

Required by the ArrayAccess interface.

  • access: public
string offsetSet (string $offset, string $value)
  • string $offset
  • string $value

Implementation of:
ArrayAccess::offsetSet
offsetUnset (line 393)

Required by the ArrayAccess interface.

  • access: public
boolean offsetUnset (string $offset)
  • string $offset

Implementation of:
ArrayAccess::offsetUnset
saveXML (line 129)

Get an XML string representation of this element

Returns a string of this element's XML, including the XML prologue.

  • access: public
string saveXML ()

Redefined in descendants as:
saveXMLFragment (line 146)

Get the XML for only this element

Returns a string of this element's XML without prologue.

  • access: public
string saveXMLFragment ()
setDOM (line 87)

Update the object from a DOM element

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 Zend_Feed_Element.

  • access: public
void setDOM ( $element)
  • DOMElement $element
setParent (line 99)

Set the parent element of this object to another Zend_Feed_Element.

  • access: public
void setParent (Zend_Feed_Element $element)
_children (line 309)

Finds children with tagnames matching $var

Similar to SimpleXML's children() method.

  • access: protected
array _children (string $var)
  • string $var: Tagname to match, can be either namespace:tagName or just tagName.
__call (line 259)

Get the value of an element with method syntax.

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.
  • mixed $unused: This parameter is not used.
__get (line 162)

Map variable access onto the underlying entry representation.

Get-style access returns a Zend_Feed_Element representing the child element accessed. To get string values, use method syntax with the __call() overriding.

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

Redefined in descendants as:
__isset (line 226)

Map isset calls onto the underlying entry representation.

  • access: public
boolean __isset (string $var)
  • string $var
__set (line 198)

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 295)

Returns the nodeValue of this element when this object is used in a string context.

  • access: public
string __toString ()
__unset (line 279)

Remove all children matching $var.

  • access: public
void __unset (string $var)
  • string $var

Documentation generated on Sun, 27 May 2007 23:22:51 -0700 by phpDocumentor 1.3.2