Path

ez components / documentation / api reference / 2007.2alpha1 / webdav


eZ Components 2007.2alpha1

Webdav: ezcWebdavXmlTool

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWebdavXmlTool

Description missing [source]

Constants

XML_DEFAULT_NAMESPACE = 'DAV:' The default namespace, where WebDAV XML elements reside in.
XML_ENCODING = 'utf-8' Encoding to use to create DOM documents.
XML_VERSION = '1.0' The XML version to create DOM documents in.

Member Variables

protected array(string=>mixed) $properties = array()
Properties.

Method Summary

public void __construct( [$namespaceRegistry = null] )
Creates a new XML tool.
public DOMDocument|false createDomDocument( [$content = null], $xml )
Returns a DOMDocument from the given XML.
public DOMElement createDomElement( $dom, $localName, [$namespace = self::XML_DEFAULT_NAMESPACE] )
Returns a new DOMElement in the given namespace.

Methods

__construct

void __construct( [ezcWebdavNamespaceRegistry $namespaceRegistry = null] )
Creates a new XML tool.

Parameters

Name Type Description
$namespaceRegistry ezcWebdavNamespaceRegistry  

createDomDocument

DOMDocument|false createDomDocument( [ $content = null], sting $xml )
Returns a DOMDocument from the given XML.
Creates a new DOMDocument with the options set in the class constants and loads the optionally given $xml string with settings appropriate to work with it. Returns false if the loading fails.

Parameters

Name Type Description
$xml sting  
$content  

See also:

LIBXML_NOWARNING, LIBXML_NSCLEAN, LIBXML_NOBLANKS.


createDomElement

DOMElement createDomElement( $dom, string $localName, [string $namespace = self::XML_DEFAULT_NAMESPACE] )
Returns a new DOMElement in the given namespace.
Retrieves the shortcut for the $namespace and creates a new DOMElement object with the correct global name for the given $localName.

Parameters

Name Type Description
$dom DOMDocument  
$localName string  
$namespace string  

Last updated: Mon, 12 Nov 2007