API Documentation

Feed/Writer/Renderer/RendererAbstract.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Feed_Writer
version
$Id: RendererAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Feed_Writer_Renderer_RendererAbstract

Description

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.

Zend_Feed_Writer_Renderer_RendererAbstract

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Feed_Writer
Properties
$_extensions
$_container
$_dom
$_ignoreExceptions
$_exceptions
$_encoding
$_type
$_rootElement
Methods
__construct
saveXml
getDomDocument
getElement
getDataContainer
setEncoding
getEncoding
ignoreExceptions
getExceptions
setType
getType
setRootElement
getRootElement
_loadExtensions

Description

Properties

$_container

mixed $_container = 'null'

Details

$_container
mixed
visibility
protected
default
null
final
false
static
false

$_dom

DOMDocument $_dom = 'null'

Details

$_dom
DOMDocument
visibility
protected
default
null
final
false
static
false

$_encoding

string $_encoding = 'UTF-8'

Encoding of all text values

Details

$_encoding
string
visibility
protected
default
UTF-8
final
false
static
false

$_exceptions

array $_exceptions = 'array'

Details

$_exceptions
array
visibility
protected
default
array
final
false
static
false

$_extensions

array $_extensions = 'array'

Extensions

Details

$_extensions
array
visibility
protected
default
array
final
false
static
false

$_ignoreExceptions

bool $_ignoreExceptions = 'false'

Details

$_ignoreExceptions
bool
visibility
protected
default
false
final
false
static
false

$_rootElement

DOMElement $_rootElement = 'null'

Details

$_rootElement
DOMElement
visibility
protected
default
null
final
false
static
false

$_type

string $_type = 'null'

Holds the value "atom" or "rss" depending on the feed type set when when last exported.

Details

$_type
string
visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( mixed $container ) : void

Constructor

Arguments
$container
mixed
Details
visibility
public
final
false
static
false

_loadExtensions

_loadExtensions( ) : void

Load extensions from Zend_Feed_Writer

Details
visibility
protected
final
false
static
false

getDataContainer

getDataContainer( ) : mixed

Get data container of items being rendered

Output
mixed
Details
visibility
public
final
false
static
false

getDomDocument

getDomDocument( ) : DOMDocument

Get DOM document

Output
DOMDocument
Details
visibility
public
final
false
static
false

getElement

getElement( ) : DOMElement

Get document element from DOM

Output
DOMElement
Details
visibility
public
final
false
static
false

getEncoding

getEncoding( ) : string

Get feed encoding

Output
string
Details
visibility
public
final
false
static
false

getExceptions

getExceptions( ) : array

Get exception list

Output
array
Details
visibility
public
final
false
static
false

getRootElement

getRootElement( ) : DOMElement

Retrieve the absolute root element for the XML feed being generated.

Output
DOMElement
Details
visibility
public
final
false
static
false

getType

getType( ) : string

Retrieve the current or last feed type exported.

Output
string
Value will be "rss" or "atom"
Details
visibility
public
final
false
static
false

ignoreExceptions

ignoreExceptions( bool $bool = true ) : Zend_Feed_Writer_Renderer_RendererAbstract

Indicate whether or not to ignore exceptions

Arguments
$bool
bool
Details
visibility
public
final
false
static
false

saveXml

saveXml( ) : string

Save XML to string

Output
string
Details
visibility
public
final
false
static
false

setEncoding

setEncoding( string $enc ) : Zend_Feed_Writer_Renderer_RendererAbstract

Set feed encoding

Arguments
$enc
string
Details
visibility
public
final
false
static
false

setRootElement

setRootElement( DOMElement $root ) :

Sets the absolute root element for the XML feed being generated. This helps simplify the appending of namespace declarations, but also ensures namespaces are added to the root element - not scattered across the entire XML file - may assist namespace unsafe parsers and looks pretty ;).

Arguments
$root
DOMElement
Details
visibility
public
final
false
static
false

setType

setType( string $type ) :

Set the current feed type being exported to "rss" or "atom". This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Arguments
$type
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.