Property | Type | Description | |
---|---|---|---|
$encoding | string | ||
$formatOutput | boolean | ||
$rootElementAttributes | array | Attributes for the root element | |
$rootElementName | string | name of the root element |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | array of options to set | |
displayXML ( ) | displays the rendered XML | |
getEncoding ( ) : string | ||
getFormatOutput ( ) : boolean | ||
getRootElementAttributes ( ) : array | ||
getRootElementName ( ) : string | ||
render ( ) : string | returns the XML string | |
setData ( $config ) | ||
setEncoding ( $encoding ) | ||
setFormatOutput ( boolean $formatOutput ) | ||
setRootElementAttributes ( array $rootElementAttributes ) | ||
setRootElementName ( string $name ) |
Method | Description | |
---|---|---|
_addBranch ( Zend_Config $config, SimpleXMLElement $xml, SimpleXMLElement $parent ) : void | Add a branch to an XML object recursively | |
addChildConsiderCdata ( $xml, $key, $data ) | ||
applyAttributes ( SimpleXMLElement $element, $attributes ) |
public __construct ( array $options = [] ) | ||
$options | array |
protected _addBranch ( Zend_Config $config, SimpleXMLElement $xml, SimpleXMLElement $parent ) : void | ||
$config | Zend_Config | |
$xml | SimpleXMLElement | |
$parent | SimpleXMLElement | |
return | void |
protected applyAttributes ( SimpleXMLElement $element, $attributes ) | ||
$element | SimpleXMLElement |
public setFormatOutput ( boolean $formatOutput ) | ||
$formatOutput | boolean |
public setRootElementAttributes ( array $rootElementAttributes ) | ||
$rootElementAttributes | array |
protected array $rootElementAttributes | ||
return | array |
protected string $rootElementName | ||
return | string |