PHP Класс Pimcore\Tool\XmlWriter

Наследование: extends Zend_Config_Writer_Xml
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$encoding string
$formatOutput boolean
$rootElementAttributes array Attributes for the root element
$rootElementName string name of the root element

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
_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 )

Описание методов

__construct() публичный Метод

array of options to set
public __construct ( array $options = [] )
$options array

_addBranch() защищенный Метод

Add a branch to an XML object recursively
protected _addBranch ( Zend_Config $config, SimpleXMLElement $xml, SimpleXMLElement $parent ) : void
$config Zend_Config
$xml SimpleXMLElement
$parent SimpleXMLElement
Результат void

addChildConsiderCdata() защищенный Метод

protected addChildConsiderCdata ( $xml, $key, $data )

applyAttributes() защищенный Метод

protected applyAttributes ( SimpleXMLElement $element, $attributes )
$element SimpleXMLElement

displayXML() публичный Метод

displays the rendered XML
public displayXML ( )

getEncoding() публичный Метод

public getEncoding ( ) : string
Результат string

getFormatOutput() публичный Метод

public getFormatOutput ( ) : boolean
Результат boolean

getRootElementAttributes() публичный Метод

public getRootElementAttributes ( ) : array
Результат array

getRootElementName() публичный Метод

public getRootElementName ( ) : string
Результат string

render() публичный Метод

returns the XML string
public render ( ) : string
Результат string

setData() публичный Метод

public setData ( $config )

setEncoding() публичный Метод

public setEncoding ( $encoding )
$encoding

setFormatOutput() публичный Метод

public setFormatOutput ( boolean $formatOutput )
$formatOutput boolean

setRootElementAttributes() публичный Метод

public setRootElementAttributes ( array $rootElementAttributes )
$rootElementAttributes array

setRootElementName() публичный Метод

public setRootElementName ( string $name )
$name string

Описание свойств

$encoding защищенное свойство

protected string $encoding
Результат string

$formatOutput защищенное свойство

protected bool $formatOutput
Результат boolean

$rootElementAttributes защищенное свойство

Attributes for the root element
protected array $rootElementAttributes
Результат array

$rootElementName защищенное свойство

name of the root element
protected string $rootElementName
Результат string