eZPublishCommunityProject(LegacyStack)  2013.9
eZXMLSchema Class Reference

Public Member Functions

 addAvailableClass ($tagName, $class)
 
 addCustomAttribute ($element, $attrName)
 
 attrDefaultValue ($tagName, $attrName)
 
 attrDefaultValues ($tagName)
 
 attributes ($element)
 
 availableElements ()
 
 check ($parent, $child)
 
 childrenRequired ($element)
 
 customAttributes ($element)
 
 exists ($element)
 
 eZXMLSchema ()
 
 getClassesList ($tagName)
 
 hasAttributes ($element)
 
 isInline ($element)
 

Static Public Member Functions

static instance ()
 Returns a shared instance of the eZXMLSchema class. More...
 

Public Attributes

 $Schema
 

Member Function Documentation

eZXMLSchema::addAvailableClass (   $tagName,
  $class 
)
eZXMLSchema::addCustomAttribute (   $element,
  $attrName 
)
eZXMLSchema::attrDefaultValue (   $tagName,
  $attrName 
)
eZXMLSchema::attrDefaultValues (   $tagName)
eZXMLSchema::attributes (   $element)
eZXMLSchema::availableElements ( )
eZXMLSchema::check (   $parent,
  $child 
)

Checks if one element is allowed to be a child of another

Parameters
$parentparent element: DOMNode or string
$childchild element: DOMNode or string
Returns
true if elements match schema
false if elements don't match schema
null in case of errors
eZXMLSchema::childrenRequired (   $element)
eZXMLSchema::customAttributes (   $element)
eZXMLSchema::exists (   $element)
eZXMLSchema::eZXMLSchema ( )

Referenced by instance().

eZXMLSchema::getClassesList (   $tagName)
eZXMLSchema::hasAttributes (   $element)
static eZXMLSchema::instance ( )
static
eZXMLSchema::isInline (   $element)

Referenced by check().

Member Data Documentation

eZXMLSchema::$Schema

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