PHP Class eZ\Publish\Core\REST\Common\Input\Handler\Xml

Inheritance: extends eZ\Publish\Core\REST\Common\Input\Handler
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$fieldTypeHashElements
$forceList array The key defines the item in which a list is formed. A list is then formed for every value in the value array.

Public Methods

Method Description
convert ( string $string ) : array Converts the given string to an array structure.

Protected Methods

Method Description
castScalarValue ( string $stringValue ) : mixed Attempts to cast the given $stringValue into a sensible scalar type.
convertDom ( DOMNode $node ) : array Converts DOM nodes to array structures.
parseFieldTypeHash ( DOMElement $domElement ) : array | string | null
parseFieldTypeValues ( DOMNodeList $valueNodes ) : array | string Parses a node list of elements.

Method Details

castScalarValue() protected method

Attempts to cast the given $stringValue into a sensible scalar type.
protected castScalarValue ( string $stringValue ) : mixed
$stringValue string
return mixed

convert() public method

Converts the given string to an array structure.
public convert ( string $string ) : array
$string string
return array

convertDom() protected method

Converts DOM nodes to array structures.
protected convertDom ( DOMNode $node ) : array
$node DOMNode
return array

parseFieldTypeHash() protected method

protected parseFieldTypeHash ( DOMElement $domElement ) : array | string | null
$domElement DOMElement
return array | string | null

parseFieldTypeValues() protected method

Parses a node list of elements.
protected parseFieldTypeValues ( DOMNodeList $valueNodes ) : array | string
$valueNodes DOMNodeList
return array | string

Property Details

$fieldTypeHashElements protected property

protected $fieldTypeHashElements

$forceList protected property

The key defines the item in which a list is formed. A list is then formed for every value in the value array.
protected array $forceList
return array