eZ Publish  [trunk]
eZXMLInputParser Class Reference
+ Inheritance diagram for eZXMLInputParser:

List of all members.

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)

Detailed Description

Definition at line 24 of file ezxmlinputparser.php.


Member Function Documentation

eZXMLInputParser::callInputHandler ( handlerName,
tagName,
&$  attributes 
)

Definition at line 1138 of file ezxmlinputparser.php.

Referenced by parseTag().

eZXMLInputParser::callOutputHandler ( handlerName,
element,
&$  params 
)

Definition at line 1157 of file ezxmlinputparser.php.

Referenced by parseTag(), processNewElements(), and processSubtree().

Definition at line 721 of file ezxmlinputparser.php.

Referenced by washText().

Definition at line 195 of file ezxmlinputparser.php.

Referenced by process().

Definition at line 709 of file ezxmlinputparser.php.

Referenced by washText().

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

The constructor.

Parameters:
$validate
$validateErrorLevelDetermines 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
$detectErrorLevelDetermines types of errors that will be detected and added to error log ($Messages).

Definition at line 120 of file ezxmlinputparser.php.

Referenced by eZSimplifiedXMLInputParser\eZSimplifiedXMLInputParser().

eZXMLInputParser::fixSubtree ( element,
mainChild 
)

Definition at line 1053 of file ezxmlinputparser.php.

Referenced by processBySchemaTree().

Definition at line 1274 of file ezxmlinputparser.php.

Definition at line 1280 of file ezxmlinputparser.php.

eZXMLInputParser::parseAttributes ( attributeString)

Definition at line 586 of file ezxmlinputparser.php.

Referenced by parseTag().

eZXMLInputParser::parseTag ( &$  data,
&$  pos,
&$  parent 
)

Definition at line 315 of file ezxmlinputparser.php.

Referenced by performPass1().

Definition at line 282 of file ezxmlinputparser.php.

Referenced by process().

Pass 2: Process the tree, run handlers, rebuild and validate.

Definition at line 796 of file ezxmlinputparser.php.

Referenced by process().

eZXMLInputParser::process ( text,
createRootNode = true 
)

Call this function to process your input

Definition at line 216 of file ezxmlinputparser.php.

Definition at line 1072 of file ezxmlinputparser.php.

Referenced by processNewElements(), and processSubtree().

Definition at line 974 of file ezxmlinputparser.php.

Referenced by processNewElements(), and processSubtree().

Definition at line 1017 of file ezxmlinputparser.php.

Referenced by processNewElements(), and processSubtree().

eZXMLInputParser::processNewElements ( createdElements)

Definition at line 1194 of file ezxmlinputparser.php.

Referenced by processSubtree().

eZXMLInputParser::processSubtree ( element,
&$  lastHandlerResult 
)

Definition at line 805 of file ezxmlinputparser.php.

Referenced by performPass2().

eZXMLInputParser::removeAllAttributes ( DOMElement $  element)

Removes all attribute nodes from element node $element

Definition at line 964 of file ezxmlinputparser.php.

Referenced by processNewElements(), and processSubtree().

eZXMLInputParser::setAttributes ( element,
attributes 
)

Definition at line 615 of file ezxmlinputparser.php.

Referenced by parseTag().

eZXMLInputParser::setDOMDocumentClass ( DOMDocumentClass)

Definition at line 177 of file ezxmlinputparser.php.

Definition at line 183 of file ezxmlinputparser.php.

Definition at line 189 of file ezxmlinputparser.php.

eZXMLInputParser::washText ( textContent)

Definition at line 692 of file ezxmlinputparser.php.

Referenced by parseTag().

eZXMLInputParser::wordMatchSupport ( newTagName,
attributes,
attributeString 
) [protected]

Returns modified attributes parameter

Definition at line 768 of file ezxmlinputparser.php.

Referenced by parseTag().


Member Data Documentation

eZXMLInputParser::$AllowMultipleSpaces = false

Definition at line 1320 of file ezxmlinputparser.php.

eZXMLInputParser::$AllowNumericEntities = false

Definition at line 1321 of file ezxmlinputparser.php.

eZXMLInputParser::$DetectErrorLevel

Definition at line 1313 of file ezxmlinputparser.php.

eZXMLInputParser::$Document = null

Definition at line 1306 of file ezxmlinputparser.php.

eZXMLInputParser::$DOMDocumentClass = 'DOMDocument'

Definition at line 1303 of file ezxmlinputparser.php.

Referenced by setDOMDocumentClass().

eZXMLInputParser::$eZPublishVersion

Definition at line 1308 of file ezxmlinputparser.php.

eZXMLInputParser::$InputTags = array()

Reimplemented in eZSimplifiedXMLInputParser.

Definition at line 66 of file ezxmlinputparser.php.

eZXMLInputParser::$IsInputValid = true

Definition at line 1315 of file ezxmlinputparser.php.

eZXMLInputParser::$Messages = array()

Definition at line 1307 of file ezxmlinputparser.php.

eZXMLInputParser::$Namespaces
Initial value:
 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 104 of file ezxmlinputparser.php.

eZXMLInputParser::$OutputTags = array()

Reimplemented in eZSimplifiedXMLInputParser.

Definition at line 102 of file ezxmlinputparser.php.

eZXMLInputParser::$ParentStack = array()

Definition at line 1310 of file ezxmlinputparser.php.

eZXMLInputParser::$ParseLineBreaks = false

Definition at line 1325 of file ezxmlinputparser.php.

eZXMLInputParser::$QuitProcess = false

Definition at line 1316 of file ezxmlinputparser.php.

eZXMLInputParser::$RemoveDefaultAttrs = false

Definition at line 1326 of file ezxmlinputparser.php.

eZXMLInputParser::$StrictHeaders = false

Definition at line 1322 of file ezxmlinputparser.php.

eZXMLInputParser::$TrimSpaces = true

Definition at line 1319 of file ezxmlinputparser.php.

eZXMLInputParser::$ValidateErrorLevel

Definition at line 1312 of file ezxmlinputparser.php.

eZXMLInputParser::$XMLSchema

Definition at line 1305 of file ezxmlinputparser.php.

Use these constants for error types.

Definition at line 32 of file ezxmlinputparser.php.

Referenced by eZXMLInputParser().

Definition at line 33 of file ezxmlinputparser.php.

Definition at line 29 of file ezxmlinputparser.php.

Deprecated:
(back-compatibility)

Definition at line 27 of file ezxmlinputparser.php.

Definition at line 28 of file ezxmlinputparser.php.


The documentation for this class was generated from the following file: