XsdSchemaDefinition
in package
implements
JsonSerializable
XsdSchemaDefinition
Represents the schema definition for XML.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $elements : array<string|int, XsdElementDefinition>
- $types : array<string|int, XsdSimpleTypeDefinition>
- $_schema : XmlNode
- The XML schema node.
- $_types : array<string|int, mixed>
- The array of types.
Methods
- __construct() : mixed
- Constructor.
- __get() : mixed
- Getter.
- jsonSerialize() : object
- Returns the data as a plain object for JSON serialization.
- Load() : XsdSchemaDefinition
- Loads the schema from a file or string.
- ToObject() : object
- Returns the data as a plain object.
- _loadComplexTypes() : void
- Loads all types into the list.
Properties
$elements read-only
public
array<string|int, XsdElementDefinition>
$elements
The elements defined in the schema.
$types read-only
public
array<string|int, XsdSimpleTypeDefinition>
$types
The types defined in the schema.
$_schema
The XML schema node.
private
XmlNode
$_schema
$_types
The array of types.
private
array<string|int, mixed>
$_types
Methods
__construct()
Constructor.
public
__construct(string $fileName[, bool $isFile = true ]) : mixed
Parameters
- $fileName : string
-
The name of the file.
- $isFile : bool = true
-
Specifies if the input is a file or not.
__get()
Getter.
public
__get(string $property) : mixed
Parameters
- $property : string
-
The name of the property.
jsonSerialize()
Returns the data as a plain object for JSON serialization.
public
jsonSerialize() : object
Return values
objectLoad()
Loads the schema from a file or string.
public
static Load(string $fileName[, bool $isFile = true ]) : XsdSchemaDefinition
Parameters
- $fileName : string
-
The name of the file.
- $isFile : bool = true
-
Specifies if the input is a file or not.
Return values
XsdSchemaDefinitionToObject()
Returns the data as a plain object.
public
ToObject() : object
Return values
object_loadComplexTypes()
Loads all types into the list.
private
_loadComplexTypes() : void