|
eZ Publish
[4.2]
|
Inheritance diagram for eZXMLInputParser:Public Member Functions | |
| callInputHandler ($handlerName, $tagName, &$attributes) | |
| callOutputHandler ($handlerName, $element, &$params) | |
| convertNumericEntities ($text) | |
| createAndPublishElement ($elementName, &$ret) | |
| createRootNode () | |
| entitiesDecode ($text) | |
| eZXMLInputParser ($validateErrorLevel=self::ERROR_NONE, $detectErrorLevel=self::ERROR_NONE, $parseLineBreaks=false, $removeDefaultAttrs=false) | |
| fixSubtree ($element, $mainChild) | |
| getMessages () | |
| handleError ($type, $message) | |
| isValid () | |
| parseAttributes ($attributeString) | |
| parseTag (&$data, &$pos, &$parent) | |
| performPass1 (&$data) | |
| performPass2 () | |
| process ($text, $createRootNode=true) | |
| processAttributesBySchema ($element) | |
| processBySchemaPresence ($element) | |
| processBySchemaTree ($element) | |
| processNewElements ($createdElements) | |
| processSubtree ($element, &$lastHandlerResult) | |
| removeAllAttributes (DOMElement $element) | |
| setAttributes ($element, $attributes) | |
| setDOMDocumentClass ($DOMDocumentClass) | |
| setParseLineBreaks ($value) | |
| setRemoveDefaultAttrs ($value) | |
| washText ($textContent) | |
Public Attributes | |
| $AllowMultipleSpaces = false | |
| $AllowNumericEntities = false | |
| $DetectErrorLevel | |
| $Document = null | |
| $DOMDocumentClass = 'DOMDOcument' | |
| $eZPublishVersion | |
| $InputTags = array() | |
| $IsInputValid = true | |
| $Messages = array() | |
| $Namespaces | |
| $OutputTags = array() | |
| $ParentStack = array() | |
| $ParseLineBreaks = false | |
| $QuitProcess = false | |
| $RemoveDefaultAttrs = false | |
| $StrictHeaders = false | |
| $TrimSpaces = true | |
| $ValidateErrorLevel | |
| $XMLSchema | |
| const | ERROR_ALL = 28 |
| const | ERROR_DATA = 16 |
| const | ERROR_NONE = 0 |
| Use these constants for error types. | |
| const | ERROR_SCHEMA = 8 |
| const | ERROR_SYNTAX = 4 |
| const | SHOW_ALL_ERRORS = 2 |
| const | SHOW_NO_ERRORS = 0 |
| const | SHOW_SCHEMA_ERRORS = 1 |
Protected Member Functions | |
| wordMatchSupport ($newTagName, $attributes, $attributeString) | |
Definition at line 44 of file ezxmlinputparser.php.
| eZXMLInputParser::callInputHandler | ( | $ | handlerName, |
| $ | tagName, | ||
| &$ | attributes | ||
| ) |
Definition at line 1094 of file ezxmlinputparser.php.
Referenced by parseTag().
| eZXMLInputParser::callOutputHandler | ( | $ | handlerName, |
| $ | element, | ||
| &$ | params | ||
| ) |
Definition at line 1113 of file ezxmlinputparser.php.
Referenced by parseTag(), processNewElements(), and processSubtree().
| eZXMLInputParser::convertNumericEntities | ( | $ | text | ) |
Definition at line 733 of file ezxmlinputparser.php.
Referenced by washText().
| eZXMLInputParser::createAndPublishElement | ( | $ | elementName, |
| &$ | ret | ||
| ) |
Definition at line 1136 of file ezxmlinputparser.php.
Referenced by eZSimplifiedXMLInputParser\appendLineParagraph(), eZSimplifiedXMLInputParser\appendParagraph(), and eZSimplifiedXMLInputParser\structHandlerBr().
| eZXMLInputParser::createRootNode | ( | ) |
Definition at line 215 of file ezxmlinputparser.php.
Referenced by process().
| eZXMLInputParser::entitiesDecode | ( | $ | text | ) |
Definition at line 720 of file ezxmlinputparser.php.
Referenced by washText().
| eZXMLInputParser::eZXMLInputParser | ( | $ | validateErrorLevel = self::ERROR_NONE, |
| $ | detectErrorLevel = self::ERROR_NONE, |
||
| $ | parseLineBreaks = false, |
||
| $ | removeDefaultAttrs = false |
||
| ) |
The constructor.
| $validate | |
| $validateErrorLevel | Determines types of errors that break input processing It's possible to combine any error types, by creating a bitmask of EZ_XMLINPUTPARSER_ERROR_* constants. true value means that all errors defined by $detectErrorLevel parameter will break further processing |
| $detectErrorLevel | Determines types of errors that will be detected and added to error log ($Messages). |
Definition at line 140 of file ezxmlinputparser.php.
Referenced by eZSimplifiedXMLInputParser\eZSimplifiedXMLInputParser().
| eZXMLInputParser::fixSubtree | ( | $ | element, |
| $ | mainChild | ||
| ) |
Definition at line 1009 of file ezxmlinputparser.php.
Referenced by processBySchemaTree().
| eZXMLInputParser::getMessages | ( | ) |
Definition at line 1198 of file ezxmlinputparser.php.
| eZXMLInputParser::handleError | ( | $ | type, |
| $ | message | ||
| ) |
Definition at line 1209 of file ezxmlinputparser.php.
Referenced by parseTag(), processAttributesBySchema(), processBySchemaPresence(), processBySchemaTree(), eZSimplifiedXMLInputParser\publishHandlerEmbed(), eZSimplifiedXMLInputParser\publishHandlerLink(), setAttributes(), and eZSimplifiedXMLInputParser\structHandlerHeader().
| eZXMLInputParser::isValid | ( | ) |
Definition at line 1204 of file ezxmlinputparser.php.
| eZXMLInputParser::parseAttributes | ( | $ | attributeString | ) |
Definition at line 587 of file ezxmlinputparser.php.
Referenced by parseTag().
| eZXMLInputParser::parseTag | ( | &$ | data, |
| &$ | pos, | ||
| &$ | parent | ||
| ) |
Definition at line 316 of file ezxmlinputparser.php.
Referenced by performPass1().
| eZXMLInputParser::performPass1 | ( | &$ | data | ) |
Definition at line 283 of file ezxmlinputparser.php.
Referenced by process().
| eZXMLInputParser::performPass2 | ( | ) |
Pass 2: Process the tree, run handlers, rebuild and validate.
Definition at line 808 of file ezxmlinputparser.php.
Referenced by process().
| eZXMLInputParser::process | ( | $ | text, |
| $ | createRootNode = true |
||
| ) |
Call this function to process your input
Definition at line 236 of file ezxmlinputparser.php.
| eZXMLInputParser::processAttributesBySchema | ( | $ | element | ) |
Definition at line 1028 of file ezxmlinputparser.php.
Referenced by processNewElements(), and processSubtree().
| eZXMLInputParser::processBySchemaPresence | ( | $ | element | ) |
Definition at line 930 of file ezxmlinputparser.php.
Referenced by processNewElements(), and processSubtree().
| eZXMLInputParser::processBySchemaTree | ( | $ | element | ) |
Definition at line 973 of file ezxmlinputparser.php.
Referenced by processNewElements(), and processSubtree().
| eZXMLInputParser::processNewElements | ( | $ | createdElements | ) |
Definition at line 1150 of file ezxmlinputparser.php.
Referenced by processSubtree().
| eZXMLInputParser::processSubtree | ( | $ | element, |
| &$ | lastHandlerResult | ||
| ) |
Definition at line 817 of file ezxmlinputparser.php.
Referenced by performPass2().
| eZXMLInputParser::removeAllAttributes | ( | DOMElement $ | element | ) |
Removes all attribute nodes from element node $element
Definition at line 920 of file ezxmlinputparser.php.
Referenced by processNewElements(), and processSubtree().
| eZXMLInputParser::setAttributes | ( | $ | element, |
| $ | attributes | ||
| ) |
Definition at line 626 of file ezxmlinputparser.php.
Referenced by parseTag().
| eZXMLInputParser::setDOMDocumentClass | ( | $ | DOMDocumentClass | ) |
Definition at line 197 of file ezxmlinputparser.php.
| eZXMLInputParser::setParseLineBreaks | ( | $ | value | ) |
Definition at line 203 of file ezxmlinputparser.php.
| eZXMLInputParser::setRemoveDefaultAttrs | ( | $ | value | ) |
Definition at line 209 of file ezxmlinputparser.php.
| eZXMLInputParser::washText | ( | $ | textContent | ) |
Definition at line 703 of file ezxmlinputparser.php.
Referenced by parseTag().
| eZXMLInputParser::wordMatchSupport | ( | $ | newTagName, |
| $ | attributes, | ||
| $ | attributeString | ||
| ) | [protected] |
Returns modified attributes parameter
Definition at line 780 of file ezxmlinputparser.php.
Referenced by parseTag().
| eZXMLInputParser::$AllowMultipleSpaces = false |
Definition at line 1244 of file ezxmlinputparser.php.
| eZXMLInputParser::$AllowNumericEntities = false |
Definition at line 1245 of file ezxmlinputparser.php.
| eZXMLInputParser::$DetectErrorLevel |
Definition at line 1237 of file ezxmlinputparser.php.
| eZXMLInputParser::$Document = null |
Definition at line 1230 of file ezxmlinputparser.php.
| eZXMLInputParser::$DOMDocumentClass = 'DOMDOcument' |
Definition at line 1227 of file ezxmlinputparser.php.
Referenced by setDOMDocumentClass().
| eZXMLInputParser::$eZPublishVersion |
Definition at line 1232 of file ezxmlinputparser.php.
| eZXMLInputParser::$InputTags = array() |
Reimplemented in eZSimplifiedXMLInputParser.
Definition at line 86 of file ezxmlinputparser.php.
| eZXMLInputParser::$IsInputValid = true |
Definition at line 1239 of file ezxmlinputparser.php.
| eZXMLInputParser::$Messages = array() |
Definition at line 1231 of file ezxmlinputparser.php.
| eZXMLInputParser::$Namespaces |
array( 'image' => 'http://ez.no/namespaces/ezpublish3/image/', 'xhtml' => 'http://ez.no/namespaces/ezpublish3/xhtml/', 'custom' => 'http://ez.no/namespaces/ezpublish3/custom/', 'tmp' => 'http://ez.no/namespaces/ezpublish3/temporary/' )
Definition at line 124 of file ezxmlinputparser.php.
| eZXMLInputParser::$OutputTags = array() |
Reimplemented in eZSimplifiedXMLInputParser.
Definition at line 122 of file ezxmlinputparser.php.
| eZXMLInputParser::$ParentStack = array() |
Definition at line 1234 of file ezxmlinputparser.php.
| eZXMLInputParser::$ParseLineBreaks = false |
Definition at line 1249 of file ezxmlinputparser.php.
| eZXMLInputParser::$QuitProcess = false |
Definition at line 1240 of file ezxmlinputparser.php.
| eZXMLInputParser::$RemoveDefaultAttrs = false |
Definition at line 1250 of file ezxmlinputparser.php.
| eZXMLInputParser::$StrictHeaders = false |
Definition at line 1246 of file ezxmlinputparser.php.
| eZXMLInputParser::$TrimSpaces = true |
Definition at line 1243 of file ezxmlinputparser.php.
| eZXMLInputParser::$ValidateErrorLevel |
Definition at line 1236 of file ezxmlinputparser.php.
| eZXMLInputParser::$XMLSchema |
Definition at line 1229 of file ezxmlinputparser.php.
| const eZXMLInputParser::ERROR_ALL = 28 |
Definition at line 56 of file ezxmlinputparser.php.
Referenced by eZXMLInputParser(), and eZSimplifiedXMLInput\validateInput().
| const eZXMLInputParser::ERROR_DATA = 16 |
Definition at line 55 of file ezxmlinputparser.php.
Referenced by eZSimplifiedXMLInputParser\publishHandlerEmbed(), and eZSimplifiedXMLInputParser\publishHandlerLink().
| const eZXMLInputParser::ERROR_NONE = 0 |
Use these constants for error types.
Definition at line 52 of file ezxmlinputparser.php.
Referenced by eZXMLInputParser().
| const eZXMLInputParser::ERROR_SCHEMA = 8 |
Definition at line 54 of file ezxmlinputparser.php.
Referenced by eZXMLInputParser(), and eZSimplifiedXMLInputParser\structHandlerHeader().
| const eZXMLInputParser::ERROR_SYNTAX = 4 |
Definition at line 53 of file ezxmlinputparser.php.
| const eZXMLInputParser::SHOW_ALL_ERRORS = 2 |
Definition at line 49 of file ezxmlinputparser.php.
| const eZXMLInputParser::SHOW_NO_ERRORS = 0 |
Definition at line 47 of file ezxmlinputparser.php.
| const eZXMLInputParser::SHOW_SCHEMA_ERRORS = 1 |
Definition at line 48 of file ezxmlinputparser.php.