Documentation

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

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
object

Load()

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
XsdSchemaDefinition

ToObject()

Returns the data as a plain object.

public ToObject() : object
Return values
object

_loadComplexTypes()

Loads all types into the list.

private _loadComplexTypes() : void

        
On this page

Search results