Class

eZXMLInputParser

class eZXMLInputParser

Constants

SHOW_NO_ERRORS

SHOW_SCHEMA_ERRORS

SHOW_ALL_ERRORS

ERROR_NONE

ERROR_SYNTAX

ERROR_SCHEMA

ERROR_DATA

ERROR_ALL

Properties

$InputTags
$OutputTags
$Namespaces
$DOMDocumentClass
$XMLSchema
$Document
$Messages
$eZPublishVersion
$ParentStack
$ValidateErrorLevel
$DetectErrorLevel
$IsInputValid
$QuitProcess
$TrimSpaces
$AllowMultipleSpaces
$AllowNumericEntities
$StrictHeaders
$ParseLineBreaks
$RemoveDefaultAttrs

Methods

__construct($validateErrorLevel = self::ERROR_NONE, $detectErrorLevel = self::ERROR_NONE, $parseLineBreaks = false, $removeDefaultAttrs = false)

setDOMDocumentClass($DOMDocumentClass)

setParseLineBreaks($value)

setRemoveDefaultAttrs($value)

createRootNode()

process($text, $createRootNode = true)

performPass1($data)

parseTag($data, $pos, $parent)

parseAttributes($attributeString)

setAttributes($element, $attributes)

washText($textContent)

entitiesDecode($text)

convertNumericEntities($text)

performPass2()

processSubtree($element, $lastHandlerResult)

removeAllAttributes(DOMElement $element)

processBySchemaPresence($element)

processBySchemaTree($element)

fixSubtree($element, $mainChild)

processAttributesBySchema($element)

callInputHandler($handlerName, $tagName, $attributes)

callOutputHandler($handlerName, $element, $params)

createAndPublishElement($elementName, $ret)

processNewElements($createdElements)

getMessages()

isValid()

handleError($type, $message)

Details

at line 120
public __construct($validateErrorLevel = self::ERROR_NONE, $detectErrorLevel = self::ERROR_NONE, $parseLineBreaks = false, $removeDefaultAttrs = false)

Parameters

$validateErrorLevel
$detectErrorLevel
$parseLineBreaks
$removeDefaultAttrs

at line 177
public setDOMDocumentClass($DOMDocumentClass)

Parameters

$DOMDocumentClass

at line 183
public setParseLineBreaks($value)

Parameters

$value

at line 189
public setRemoveDefaultAttrs($value)

Parameters

$value

at line 195
public createRootNode()

at line 216
public process($text, $createRootNode = true)

Parameters

$text
$createRootNode

at line 282
public performPass1($data)

Parameters

$data

at line 315
public parseTag($data, $pos, $parent)

Parameters

$data
$pos
$parent

at line 643
public parseAttributes($attributeString)

Parameters

$attributeString

at line 672
public setAttributes($element, $attributes)

Parameters

$element
$attributes

at line 749
public washText($textContent)

Parameters

$textContent

at line 766
public entitiesDecode($text)

Parameters

$text

at line 778
public convertNumericEntities($text)

Parameters

$text

at line 820
public performPass2()

at line 829
public processSubtree($element, $lastHandlerResult)

Parameters

$element
$lastHandlerResult

at line 988
public removeAllAttributes(DOMElement $element)

Parameters

DOMElement $element

at line 998
public processBySchemaPresence($element)

Parameters

$element

at line 1041
public processBySchemaTree($element)

Parameters

$element

at line 1077
public fixSubtree($element, $mainChild)

Parameters

$element
$mainChild

at line 1096
public processAttributesBySchema($element)

Parameters

$element

at line 1162
public callInputHandler($handlerName, $tagName, $attributes)

Parameters

$handlerName
$tagName
$attributes

at line 1181
public callOutputHandler($handlerName, $element, $params)

Parameters

$handlerName
$element
$params

at line 1204
public createAndPublishElement($elementName, $ret)

Parameters

$elementName
$ret

at line 1218
public processNewElements($createdElements)

Parameters

$createdElements

at line 1298
public getMessages()

at line 1304
public isValid()

at line 1309
public handleError($type, $message)

Parameters

$type
$message