|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($typeName) | |
| checkType (&$object) | |
| getNamespace () | |
| parseTypeName ($typeName) | |
| setValidationStrategy ($validationStrategy) | |
Public Member Functions inherited from TypeDescription | |
| _parseTypeNameInternally ($typeName) | |
| getTypeDescription () | |
| getTypeName () | |
| isCompatible ($object) | |
Data Fields | |
| $_validationSource | |
| $_validationStrategy = XML_TYPE_DESCRIPTION_VALIDATE_SCHEMA | |
Data Fields inherited from TypeDescription | |
| $_cardinality | |
| $_typeName | |
Class that describes an XML input/output type.
Type descriptors follow the syntax: xml::validation-schema(http://url.to.the/file.{xsd|dtd|rng})
Example: xml::schema(http://www.crossref.org/schema/queryResultSchema/crossref_query_output2.0.xsd)
XML input/output can be either represented as a string or as a DOMDocument object.
NB: XML validation currently requires PHP5
Definition at line 34 of file XMLTypeDescription.inc.php.
| XMLTypeDescription::__construct | ( | $typeName | ) |
Constructor
| $typeName | string Allowed primitive types are 'integer', 'string', 'float' and 'boolean'. |
Reimplemented from TypeDescription.
Definition at line 54 of file XMLTypeDescription.inc.php.
| XMLTypeDescription::checkType | ( | & | $object | ) |
Validates an object against the internal type description.
| $object | mixed |
Reimplemented from TypeDescription.
Definition at line 116 of file XMLTypeDescription.inc.php.
| XMLTypeDescription::getNamespace | ( | ) |
Reimplemented from TypeDescription.
Definition at line 65 of file XMLTypeDescription.inc.php.
| XMLTypeDescription::parseTypeName | ( | $typeName | ) |
Parse a type name
| $typeName | string |
Reimplemented from TypeDescription.
Definition at line 83 of file XMLTypeDescription.inc.php.
| XMLTypeDescription::setValidationStrategy | ( | $validationStrategy | ) |
Set the validation strategy
| $validationStrategy | string XML_TYPE_DESCRIPTION_VALIDATE_... |
Definition at line 73 of file XMLTypeDescription.inc.php.
| string XMLTypeDescription::$_validationSource |
a validation document as string or filename pointer (xsd or rng only)
Definition at line 45 of file XMLTypeDescription.inc.php.
| string XMLTypeDescription::$_validationStrategy = XML_TYPE_DESCRIPTION_VALIDATE_SCHEMA |
a validation strategy, see the XML_TYPE_DESCRIPTION_VALIDATE_* constants
Definition at line 39 of file XMLTypeDescription.inc.php.