Feed/Entry/Abstract.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed
- Version
- $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Feed_Entry_Abstract
Package: Zend\FeedZend_Feed_Entry_Abstract represents a single entry in an Atom or RSS
feed.
- Parent(s)
- \Zend_Feed_Element
- Children
- \Zend_Feed_Entry_Rss
- \Zend_Feed_Entry_Atom
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



string $_rootElement
Root XML element for entries.
Subclasses must define this to a
non-null value.
Details- Type
- string



string $_rootNamespace = null
Root namespace for entries.
Subclasses may define this to a
non-null value.
Default valuenull
Details- Type
- string
Methods



__call(string $var, mixed $unused) : mixed
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.
ParametersName | Type | Description |
---|
$var | string | The element to get the string value of. |
---|
$unused | mixed | This parameter is not used. |
---|
ReturnsType | 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
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.
ParametersThrows


__get(string $var) : mixed
Get-style access returns a Zend_Feed_Element representing the
child element accessed. To get string values, use method syntax
with the __call() overriding.
ParametersName | Type | Description |
---|
$var | string | The property to access. |
---|
Returns


__set(string $var, string $val) : void
ParametersName | Type | Description |
---|
$var | string | The property to change. |
---|
$val | string | The property's new value.
|
---|
Throws 


_children(string $var) : array
Similar to SimpleXML's children() method.
ParametersName | Type | Description |
---|
$var | string | Tagname to match, can be either namespace:tagName or just tagName. |
---|
Returns


setEncoding(string $value) : \Zend_Feed_Element
ParametersName | Type | Description |
---|
$value | string | Encoding to use |
---|
Returns