Public Method Details |
XMLSchema |
|
public void XMLSchema([ string $schema, string $xml ])
|
| |
|
| Parameter |
|
| string |
$schema |
= >>""<< |
|
schema document URI |
|
|
| string |
$xml |
= >>""<< |
|
xml document URI |
|
| Returns |
void |
|
parseFile |
|
public boolean parseFile(string $xml, string $type)
|
| |
|
| Parameter |
|
| string |
$xml |
|
|
, path/URL to XML file |
|
|
| string |
$type |
|
|
, (schema | xml) |
|
| Returns |
boolean |
|
serializeSchema |
|
public void serializeSchema()
|
| |
|
| Returns |
void |
|
getPHPType |
|
public mixed getPHPType(string $type, string $ns)
|
| |
PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays returns false if no type exists, or not w/ the given namespace else returns a string that is either a native php type, or 'struct'
|
| Parameter |
|
| string |
$type |
|
|
, name of defined type |
|
|
| string |
$ns |
|
|
, namespace of type |
|
| Returns |
mixed |
|
getLocalPart |
|
public string getLocalPart(string $str)
|
| |
returns the original string, if not prefixed
|
| Parameter |
|
|
| Returns |
string |
|
getPrefix |
|
public mixed getPrefix(string $str)
|
| |
returns false, if not prefixed
|
| Parameter |
|
|
| Returns |
mixed |
|
getNamespaceFromPrefix |
|
public mixed getNamespaceFromPrefix(string $prefix)
|
| |
or false if no prefixes registered for the given namespace
|
| Parameter |
|
|
| Returns |
mixed |
|
getPrefixFromNamespace |
|
public mixed getPrefixFromNamespace(string $ns)
|
| |
returns false if no namespace registered with the given prefix
|
| Parameter |
|
|
| Returns |
mixed |
|
getTypeDef |
|
public mixed getTypeDef(string $type)
|
| |
returns false if no type exists by the given name typeDef = array( 'elements' => array(), // refs to elements array 'restrictionBase' => '', 'phpType' => '', 'order' => '(sequence|all)', 'attrs' => array() // refs to attributes array )
|
| Parameter |
|
|
| Returns |
mixed |
|
serializeTypeDef |
|
public mixed serializeTypeDef(string $type)
|
| |
|
| Parameter |
|
| string |
$type |
|
|
, name of type |
|
| Returns |
mixed |
|
typeToForm |
|
public string typeToForm(string $name, string $type)
|
| |
to enter values for creating an instance of the given type.
|
| Parameter |
|
| string |
$name |
|
|
, name for type instance |
|
|
| string |
$type |
|
|
, name of type |
|
| Returns |
string |
|