Documentation

XsdElementDefinition
in package
implements JsonSerializable

XsdElementDefinition

Represents the definition of an XML element.

Table of Contents

Interfaces

JsonSerializable

Properties

$annotation  : string
$attributes  : array<string|int, XsdAttributeDefinition>
$autocomplete  : array<string|int, mixed>
$elements  : array<string|int, XsdElementDefinition>
$generate  : string
$lookup  : string
$name  : string
$occurs  : stdClass
$type  : XmlNode
$_node  : XmlNode
The XML node.
$_schema  : XsdSchemaDefinition
The schema definition.

Methods

__construct()  : mixed
Constructor.
__get()  : mixed
Getter.
CreateObject()  : XmlSerialized
Creates an XmlSerialized object based on the element definition.
jsonSerialize()  : object
Returns the data as a plain object for JSON serialization.
ToObject()  : object
Returns the data as a plain object.

Properties

$autocomplete read-only

public array<string|int, mixed> $autocomplete

The list of values for auto-completion.

$lookup read-only

public string $lookup

The command for generating inter-object relationships.

$occurs read-only

public stdClass $occurs

An object defining the minimum and maximum occurrences of the element.

Methods

__construct()

Constructor.

public __construct(XmlNode $elementNode, mixed $schema) : mixed
Parameters
$elementNode : XmlNode

The XML node representing the element.

$schema : mixed

The schema definition.

__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

ToObject()

Returns the data as a plain object.

public ToObject() : object
Return values
object

        
On this page

Search results