Zend_Feed_Entry_Abstract represents a single entry in an Atom or RSS feed.
category | Zend |
---|---|
package | Zend_Feed |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Feed_Element |
__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.
string
The element to get the string value of.
mixed
This parameter is not used.
mixed
The node's value, null, or an array of nodes.__construct(string $uri= null
, \SimpleXMLElement|\DOMNode|string $element= null
) : void
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.
inherited_from | \Zend_Feed_Element::__construct() |
---|
string
\SimpleXMLElement
\DOMNode
string
\Zend_Feed_Exception |
---|
__construct(\DOMElement $element = null
) : void
\DOMElement
The DOM element we're encapsulating.
__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.
string
The property to access.
mixed
__isset(string $var) : boolean
string
boolean
__set(string $var, string $val) : void
string
The property to change.
string
The property's new value.
\Zend_Feed_Exception |
---|
__toString() : string
string
__unset(string $var) : void
string
getDOM() : \DOMDocument
Returns the underlying DOM object, which can then be manipulated with full DOM methods.
\DOMDocument
getEncoding() : string
string
offsetExists(string $offset) : boolean
string
boolean
offsetGet(string $offset) : string
string
string
offsetSet(string $offset, string $value) : string
string
string
string
offsetUnset(string $offset) : boolean
string
boolean
saveXml() : string
Returns a string of this element's XML, including the XML prologue.
string
saveXmlFragment() : string
Returns a string of this element's XML without prologue.
string
setDOM(\DOMElement $element) : void
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.
\DOMElement
setEncoding(string $value) : \Zend_Feed_Element
string
Encoding to use
\Zend_Feed_Element
setParent(\Zend_Feed_Element $element) : void
\Zend_Feed_Element
_children(string $var) : array
Similar to SimpleXML's children() method.
string
Tagname to match, can be either namespace:tagName or just tagName.
array
ensureAppended() : void
$_appended : boolean
true
$_element : \DOMElement
$_encoding : string
'UTF-8'
$_parentElement : \Zend_Feed_Element
$_rootElement : string
$_rootNamespace : string
null