Class

eZSimplifiedXMLInputParser

class eZSimplifiedXMLInputParser extends 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
$urlIDArray
$relatedObjectIDArray
$linkedObjectIDArray
$contentObjectID

Methods

__construct($contentObjectID, $validateErrorLevel = eZXMLInputParser::ERROR_ALL, $detectErrorLevel = eZXMLInputParser::ERROR_ALL, $parseLineBreaks = false, $removeDefaultAttrs = false)

setDOMDocumentClass($DOMDocumentClass)

from eZXMLInputParser
setParseLineBreaks($value)

from eZXMLInputParser
setRemoveDefaultAttrs($value)

from eZXMLInputParser
createRootNode()

from eZXMLInputParser
process($text, $createRootNode = true)

from eZXMLInputParser
performPass1($data)

from eZXMLInputParser
parseTag($data, $pos, $parent)

from eZXMLInputParser
parseAttributes($attributeString)

from eZXMLInputParser
setAttributes($element, $attributes)

from eZXMLInputParser
washText($textContent)

from eZXMLInputParser
entitiesDecode($text)

from eZXMLInputParser
convertNumericEntities($text)

from eZXMLInputParser
performPass2()

from eZXMLInputParser
processSubtree($element, $lastHandlerResult)

from eZXMLInputParser
removeAllAttributes(DOMElement $element)

from eZXMLInputParser
processBySchemaPresence($element)

from eZXMLInputParser
processBySchemaTree($element)

from eZXMLInputParser
fixSubtree($element, $mainChild)

from eZXMLInputParser
processAttributesBySchema($element)

from eZXMLInputParser
callInputHandler($handlerName, $tagName, $attributes)

from eZXMLInputParser
callOutputHandler($handlerName, $element, $params)

from eZXMLInputParser
createAndPublishElement($elementName, $ret)

from eZXMLInputParser
processNewElements($createdElements)

from eZXMLInputParser
getMessages()

from eZXMLInputParser
isValid()

from eZXMLInputParser
handleError($type, $message)

from eZXMLInputParser
tagNameHeader($tagName, $attributes)

parsingHandlerLiteral($element, $param)

breakInlineFlow($element, $param)

appendLineParagraph($element, $newParent)

structHandlerBr($element, $newParent)

appendParagraph($element, $newParent)

structHandlerHeader($element, $param)

structHandlerCustom($element, $params)

structHandlerLists($element, $params)

structHandlerText($element, $newParent)

publishHandlerParagraph($element, $params)

publishHandlerLink($element, $params)

convertHrefToID($href)

publishHandlerEmbed($element, $params)

publishHandlerObject($element, $params)

publishHandlerCustom($element, $params)

convertCustomAttributes($element)

getRelatedObjectIDArray()

getLinkedObjectIDArray()

getUrlIDArray()

Details

at line 110
public __construct($contentObjectID, $validateErrorLevel = eZXMLInputParser::ERROR_ALL, $detectErrorLevel = eZXMLInputParser::ERROR_ALL, $parseLineBreaks = false, $removeDefaultAttrs = false)

Parameters

$contentObjectID
$validateErrorLevel
$detectErrorLevel
$parseLineBreaks
$removeDefaultAttrs

in eZXMLInputParser at line 177
public setDOMDocumentClass($DOMDocumentClass)

Parameters

$DOMDocumentClass

in eZXMLInputParser at line 183
public setParseLineBreaks($value)

Parameters

$value

in eZXMLInputParser at line 189
public setRemoveDefaultAttrs($value)

Parameters

$value

in eZXMLInputParser at line 195
public createRootNode()

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

Parameters

$text
$createRootNode

in eZXMLInputParser at line 282
public performPass1($data)

Parameters

$data

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

Parameters

$data
$pos
$parent

in eZXMLInputParser at line 643
public parseAttributes($attributeString)

Parameters

$attributeString

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

Parameters

$element
$attributes

in eZXMLInputParser at line 749
public washText($textContent)

Parameters

$textContent

in eZXMLInputParser at line 766
public entitiesDecode($text)

Parameters

$text

in eZXMLInputParser at line 778
public convertNumericEntities($text)

Parameters

$text

in eZXMLInputParser at line 820
public performPass2()

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

Parameters

$element
$lastHandlerResult

in eZXMLInputParser at line 988
public removeAllAttributes(DOMElement $element)

Parameters

DOMElement $element

in eZXMLInputParser at line 998
public processBySchemaPresence($element)

Parameters

$element

in eZXMLInputParser at line 1041
public processBySchemaTree($element)

Parameters

$element

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

Parameters

$element
$mainChild

in eZXMLInputParser at line 1096
public processAttributesBySchema($element)

Parameters

$element

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

Parameters

$handlerName
$tagName
$attributes

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

Parameters

$handlerName
$element
$params

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

Parameters

$elementName
$ret

in eZXMLInputParser at line 1218
public processNewElements($createdElements)

Parameters

$createdElements

in eZXMLInputParser at line 1298
public getMessages()

in eZXMLInputParser at line 1304
public isValid()

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

Parameters

$type
$message

at line 120
public tagNameHeader($tagName, $attributes)

Parameters

$tagName
$attributes

at line 159
public parsingHandlerLiteral($element, $param)

Parameters

$element
$param

at line 187
public breakInlineFlow($element, $param)

Parameters

$element
$param

at line 254
public appendLineParagraph($element, $newParent)

Parameters

$element
$newParent

at line 324
public structHandlerBr($element, $newParent)

Parameters

$element
$newParent

at line 391
public appendParagraph($element, $newParent)

Parameters

$element
$newParent

at line 429
public structHandlerHeader($element, $param)

Parameters

$element
$param

at line 564
public structHandlerCustom($element, $params)

Parameters

$element
$params

at line 579
public structHandlerLists($element, $params)

Parameters

$element
$params

at line 639
public structHandlerText($element, $newParent)

Parameters

$element
$newParent

at line 708
public publishHandlerParagraph($element, $params)

Parameters

$element
$params

Parameters

$element
$params

at line 855
public convertHrefToID($href)

Parameters

$href

at line 870
public publishHandlerEmbed($element, $params)

Parameters

$element
$params

at line 966
public publishHandlerObject($element, $params)

Parameters

$element
$params

at line 1010
public publishHandlerCustom($element, $params)

Parameters

$element
$params

at line 1020
public convertCustomAttributes($element)

Parameters

$element

at line 1036
public getRelatedObjectIDArray()

at line 1041
public getLinkedObjectIDArray()

at line 1046
public getUrlIDArray()