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.
Concrete class for working with RSS items.

__call(
string $var, mixed $unused
)
:
mixed
Overwrites parent::_call method to enable read access to content:encoded element.
Please note that method-style write access is not currently supported by parent method, consequently this method doesn't as well.
Name | Type | Description |
---|---|---|
$var | string | The element to get the string value of. |
$unused | mixed | This parameter is not used. |
Type | Description |
---|---|
mixed | The node's value, null, or an array of nodes. |

__construct(
string $uri
=
null, \SimpleXMLElement|\DOMNode|string $element
=
null
)
:
void
Zend_Feed_Entry_Abstract constructor
Inherited from: \Zend_Feed_Entry_Abstract::__construct()The Zend_Feed_Entry_Abstract 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.
Name | Type | Description |
---|---|---|
$uri | string | |
$element | \SimpleXMLElement|\DOMNode|string |
Exception | Description |
---|---|
\Zend_Feed_Exception |

__get(
string $var
)
:
mixed
Overwrites parent::_get method to enable read access to content:encoded element.
Get-style access returns a Zend_Feed_Element representing the child element accessed. To get string values, use method syntax with the __call() overriding.
Name | Type | Description |
---|---|---|
$var | string | The property to access. |
Type | Description |
---|---|
mixed |

__isset(
string $var
)
:
boolean
Overwrites parent::_isset method to enable access to content:encoded element.
Name | Type | Description |
---|---|---|
$var | string |
Type | Description |
---|---|
boolean |

__set(
string $var, $value
)
:
void
Overwrites parent::_set method to enable write access to content:encoded element.
Name | Type | Description |
---|---|---|
$var | string | The property to change. |
$value |
Exception | Description |
---|---|
\Zend_Feed_Exception |

__toString(
)
:
string
Returns the nodeValue of this element when this object is used in a string context.
Inherited from: \Zend_Feed_Element::__toString()Type | Description |
---|---|
string |

__unset(
string $var
)
:
void
Remove all children matching $var.
Inherited from: \Zend_Feed_Element::__unset()Name | Type | Description |
---|---|---|
$var | string |

_children(
string $var
)
:
array
Finds children with tagnames matching $var
Inherited from: \Zend_Feed_Element::_children()Similar to SimpleXML's children() method.
Name | Type | Description |
---|---|---|
$var | string | Tagname to match, can be either namespace:tagName or just tagName. |
Type | Description |
---|---|
array |

ensureAppended(
)
:
void
Appends this element to its parent if necessary.
Inherited from: \Zend_Feed_Element::ensureAppended()
getDOM(
)
:
\DOMDocument
Get a DOM representation of the element
Inherited from: \Zend_Feed_Element::getDOM()Returns the underlying DOM object, which can then be manipulated with full DOM methods.
Type | Description |
---|---|
\DOMDocument |

getEncoding(
)
:
string
Get encoding
Inherited from: \Zend_Feed_Element::getEncoding()Type | Description |
---|---|
string |

offsetExists(
string $offset
)
:
boolean
Required by the ArrayAccess interface.
Inherited from: \Zend_Feed_Element::offsetExists()Name | Type | Description |
---|---|---|
$offset | string |
Type | Description |
---|---|
boolean |

offsetGet(
string $offset
)
:
string
Required by the ArrayAccess interface.
Inherited from: \Zend_Feed_Element::offsetGet()Name | Type | Description |
---|---|---|
$offset | string |
Type | Description |
---|---|
string |

offsetSet(
string $offset, string $value
)
:
string
Required by the ArrayAccess interface.
Inherited from: \Zend_Feed_Element::offsetSet()Name | Type | Description |
---|---|---|
$offset | string | |
$value | string |
Type | Description |
---|---|
string |

offsetUnset(
string $offset
)
:
boolean
Required by the ArrayAccess interface.
Inherited from: \Zend_Feed_Element::offsetUnset()Name | Type | Description |
---|---|---|
$offset | string |
Type | Description |
---|---|
boolean |

saveXml(
)
:
string
Get an XML string representation of this element
Inherited from: \Zend_Feed_Element::saveXml()Returns a string of this element's XML, including the XML prologue.
Type | Description |
---|---|
string |

saveXmlFragment(
)
:
string
Get the XML for only this element
Inherited from: \Zend_Feed_Element::saveXmlFragment()Returns a string of this element's XML without prologue.
Type | Description |
---|---|
string |

setDOM(
\DOMElement $element
)
:
void
Update the object from a DOM element
Inherited from: \Zend_Feed_Element::setDOM()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.
Name | Type | Description |
---|---|---|
$element | \DOMElement |

setEncoding(
string $value
)
:
\Zend_Feed_Element
Set encoding
Inherited from: \Zend_Feed_Element::setEncoding()Name | Type | Description |
---|---|---|
$value | string | Encoding to use |
Type | Description |
---|---|
\Zend_Feed_Element |

setParent(
\Zend_Feed_Element $element
)
:
void
Set the parent element of this object to another Zend_Feed_Element.
Inherited from: \Zend_Feed_Element::setParent()Name | Type | Description |
---|---|---|
$element | \Zend_Feed_Element |