eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Common\Input\Handler\Xml Class Reference

Input format handler base class. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Common\Input\Handler\Xml:
+ Collaboration diagram for eZ\Publish\Core\REST\Common\Input\Handler\Xml:

Public Member Functions

 convert ($string)
 Converts the given string to an array structure. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Common\Input\Handler
 convert ($string)
 Converts the given string to an array structure. More...
 

Protected Member Functions

 castScalarValue ($stringValue)
 Attempts to cast the given $stringValue into a sensible scalar type. More...
 
 convertDom (\DOMNode $node)
 Converts DOM nodes to array structures. More...
 
 parseFieldTypeHash (\DOMElement $domElement)
 
 parseFieldTypeValues (\DOMNodeList $valueNodes)
 Parses a node list of elements. More...
 

Protected Attributes

 $fieldTypeHashElements
 
 $forceList
 

Detailed Description

Input format handler base class.

Member Function Documentation

eZ\Publish\Core\REST\Common\Input\Handler\Xml::castScalarValue (   $stringValue)
protected

Attempts to cast the given $stringValue into a sensible scalar type.

Parameters
string$stringValue
Returns
mixed

Referenced by eZ\Publish\Core\REST\Common\Input\Handler\Xml\parseFieldTypeValues().

eZ\Publish\Core\REST\Common\Input\Handler\Xml::convert (   $string)

Converts the given string to an array structure.

Parameters
string$string
Returns
array
eZ\Publish\Core\REST\Common\Input\Handler\Xml::convertDom ( \DOMNode  $node)
protected

Converts DOM nodes to array structures.

Parameters
\DOMNode$node
Returns
array

Referenced by eZ\Publish\Core\REST\Common\Input\Handler\Xml\convert().

eZ\Publish\Core\REST\Common\Input\Handler\Xml::parseFieldTypeHash ( \DOMElement  $domElement)
protected
Parameters
\DOMElement$domElement
Returns
array|string|null

Referenced by eZ\Publish\Core\REST\Common\Input\Handler\Xml\convertDom().

eZ\Publish\Core\REST\Common\Input\Handler\Xml::parseFieldTypeValues ( \DOMNodeList  $valueNodes)
protected

Parses a node list of elements.

Parameters
\DOMNodeList$valueNodes
Returns
array|string

Referenced by eZ\Publish\Core\REST\Common\Input\Handler\Xml\parseFieldTypeHash().

Member Data Documentation

eZ\Publish\Core\REST\Common\Input\Handler\Xml::$fieldTypeHashElements
protected
Initial value:
= array(
'fieldValue',
)
eZ\Publish\Core\REST\Common\Input\Handler\Xml::$forceList
protected

The documentation for this class was generated from the following file: