\Symfony\Component\VarDumper\CasterDOMCaster

Casts DOM related classes to array representation.

Summary

Methods
Properties
Constants
castException()
castLength()
castImplementation()
castNode()
castNameSpaceNode()
castDocument()
castCharacterData()
castAttr()
castElement()
castText()
castTypeinfo()
castDomError()
castLocator()
castDocumentType()
castNotation()
castEntity()
castProcessingInstruction()
castXPath()
No public properties found
ERROR_CODES
NODE_TYPES
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

ERROR_CODES

ERROR_CODES = [\DOM_PHP_ERR => 'DOM_PHP_ERR', \DOM_INDEX_SIZE_ERR => 'DOM_INDEX_SIZE_ERR', \DOMSTRING_SIZE_ERR => 'DOMSTRING_SIZE_ERR', \DOM_HIERARCHY_REQUEST_ERR => 'DOM_HIERARCHY_REQUEST_ERR', \DOM_WRONG_DOCUMENT_ERR => 'DOM_WRONG_DOCUMENT_ERR', \DOM_INVALID_CHARACTER_ERR => 'DOM_INVALID_CHARACTER_ERR', \DOM_NO_DATA_ALLOWED_ERR => 'DOM_NO_DATA_ALLOWED_ERR', \DOM_NO_MODIFICATION_ALLOWED_ERR => 'DOM_NO_MODIFICATION_ALLOWED_ERR', \DOM_NOT_FOUND_ERR => 'DOM_NOT_FOUND_ERR', \DOM_NOT_SUPPORTED_ERR => 'DOM_NOT_SUPPORTED_ERR', \DOM_INUSE_ATTRIBUTE_ERR => 'DOM_INUSE_ATTRIBUTE_ERR', \DOM_INVALID_STATE_ERR => 'DOM_INVALID_STATE_ERR', \DOM_SYNTAX_ERR => 'DOM_SYNTAX_ERR', \DOM_INVALID_MODIFICATION_ERR => 'DOM_INVALID_MODIFICATION_ERR', \DOM_NAMESPACE_ERR => 'DOM_NAMESPACE_ERR', \DOM_INVALID_ACCESS_ERR => 'DOM_INVALID_ACCESS_ERR', \DOM_VALIDATION_ERR => 'DOM_VALIDATION_ERR']

NODE_TYPES

NODE_TYPES = [\XML_ELEMENT_NODE => 'XML_ELEMENT_NODE', \XML_ATTRIBUTE_NODE => 'XML_ATTRIBUTE_NODE', \XML_TEXT_NODE => 'XML_TEXT_NODE', \XML_CDATA_SECTION_NODE => 'XML_CDATA_SECTION_NODE', \XML_ENTITY_REF_NODE => 'XML_ENTITY_REF_NODE', \XML_ENTITY_NODE => 'XML_ENTITY_NODE', \XML_PI_NODE => 'XML_PI_NODE', \XML_COMMENT_NODE => 'XML_COMMENT_NODE', \XML_DOCUMENT_NODE => 'XML_DOCUMENT_NODE', \XML_DOCUMENT_TYPE_NODE => 'XML_DOCUMENT_TYPE_NODE', \XML_DOCUMENT_FRAG_NODE => 'XML_DOCUMENT_FRAG_NODE', \XML_NOTATION_NODE => 'XML_NOTATION_NODE', \XML_HTML_DOCUMENT_NODE => 'XML_HTML_DOCUMENT_NODE', \XML_DTD_NODE => 'XML_DTD_NODE', \XML_ELEMENT_DECL_NODE => 'XML_ELEMENT_DECL_NODE', \XML_ATTRIBUTE_DECL_NODE => 'XML_ATTRIBUTE_DECL_NODE', \XML_ENTITY_DECL_NODE => 'XML_ENTITY_DECL_NODE', \XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE']

Methods

castException()

castException(\DOMException  $e, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMException $e
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castLength()

castLength(mixed  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

mixed $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castImplementation()

castImplementation(mixed  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

mixed $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castNode()

castNode(\DOMNode  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMNode $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castNameSpaceNode()

castNameSpaceNode(\DOMNameSpaceNode  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMNameSpaceNode $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castDocument()

castDocument(\DOMDocument  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\DOMDocument $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castCharacterData()

castCharacterData(\DOMCharacterData  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMCharacterData $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castAttr()

castAttr(\DOMAttr  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMAttr $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castElement()

castElement(\DOMElement  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMElement $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castText()

castText(\DOMText  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMText $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castTypeinfo()

castTypeinfo(\DOMTypeinfo  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMTypeinfo $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castDomError()

castDomError(\DOMDomError  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMDomError $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castLocator()

castLocator(\DOMLocator  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMLocator $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castDocumentType()

castDocumentType(\DOMDocumentType  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMDocumentType $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castNotation()

castNotation(\DOMNotation  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMNotation $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castEntity()

castEntity(\DOMEntity  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMEntity $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castProcessingInstruction()

castProcessingInstruction(\DOMProcessingInstruction  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMProcessingInstruction $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castXPath()

castXPath(\DOMXPath  $dom, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\DOMXPath $dom
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —