eZSchema Class Reference
[XML parser and DOM library]

eZSchema handles schema validation on dom documents More...

List of all members.


Public Methods

 eZSchema ()
 setSchemaFromFile ($url)
 setSchema (&$schemaDocument)
 validate ($dom)
 printTree ($dom)
 printSchemaTree ()

Public Attributes

 ValidationRoot = false
 Contains the validation root.

 Elements = array()
 Contains the schema elements, elements are indexed by their name.

 Annotation = ""
 Description or the schema.

 RootPrefix
 Contains the schema root namespace prefix.


Private Methods

parseElement (&$schemaNode,$parentElement=false)
 validateNode (&$domNode,&$schemaElement)
 printElement (&$element,&$dom,$level)

Detailed Description

eZSchema handles schema validation on dom documents

Definition at line ezschema.php.


Constructor & Destructor Documentation

eZSchema::eZSchema  
 

Constructs a new schema element.

Definition at line ezschema.php.


Member Function Documentation

& eZSchema::parseElement &$    schemaNode,
  parentElement = false
[private]
 

Parses the given dom tree part and returns an element object.

Definition at line ezschema.php.

References Elements.

Referenced by setSchema().

eZSchema::printElement &$    element,
&$    dom,
  level
[private]
 

Debug function. Prints the element information.

Definition at line ezschema.php.

References Elements.

Referenced by printTree().

eZSchema::printSchemaTree  
 

Debug function to print the schema tree.

Definition at line ezschema.php.

eZSchema::printTree   dom
 

Debug function to print the document tree.

Definition at line ezschema.php.

References ValidationRoot.

eZSchema::setSchema &$    schemaDocument
 

Reads the schema and builds the schema tree.

Definition at line ezschema.php.

References ValidationRoot.

Referenced by setSchemaFromFile().

eZSchema::setSchemaFromFile   url
 

Sets the schema from a text file or a URL.

Definition at line ezschema.php.

References setSchema().

eZSchema::validate   dom
 

Validates the eZDOMDocument with the schema.

Definition at line ezschema.php.

References ValidationRoot.

eZSchema::validateNode &$    domNode,
&$    schemaElement
[private]
 

Validates a DOM node.

Definition at line ezschema.php.

References Elements.

Referenced by validate().


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

Exponential