class Reference extends SubSchema

Reference

Constants

MIMETYPE

MIMETYPE

ID_KEY

ID

SCHEMA_KEY

Schema

REFERENCE_KEY

Reference

COMMENT_KEY

Kommentar

DEFINITIONS_KEY

Kommentar

TYPE_KEY

TITLE_KEY

DESCRIPTION_KEY

DEFAULT_KEY

ENUM_KEY

CONST_KEY

READ_ONLY_KEY

WRITE_ONLY_KEY

EXAMPLES_KEY

IF_KEY

THEN_KEY

ELSE_KEY

ALL_OF_KEY

ANY_OF_KEY

ONE_OF_KEY

NOT_KEY

TYPE

Type

Properties

protected URI $shemaURI from Schema
protected URI $id from Schema
protected Map $definitions from Schema
protected Type $instance from Schema
protected string $type from SubSchema
protected Schema $root from SubSchema
protected integer $escapedCharacterMap

Methods

__construct(Schema $root)

No description

from SubSchema
string
getIDFromDefinition(string $key, array $definition)

No description

from Schema
parseSchema(array $definition)

No description

from Schema
parseDefinitions(array $definition)

No description

from Schema
$this
parse(array $definition)

No description

from Schema
static Schema
fromDefinition(array $definition, Schema $root = null)

Instanz aus einer Definition erstellen.

from SubSchema
static Schema
fromJson(string $json)

No description

from Schema
Schema|null
getRoot()

No description

from SubSchema
parseTypeSchema(array $definition)

No description

array
decodePropertyPaths(string $pathString)

No description

string
encodePath(string $path)

No description

string
decodePath(string $path)

No description

Details

in SubSchema at line 132
__construct(Schema $root)

Parameters

Schema $root

in Schema at line 106
protected string getIDFromDefinition(string $key, array $definition)

Parameters

string $key
array $definition

Return Value

string

in Schema at line 121
protected Schema parseSchema(array $definition)

Parameters

array $definition

Return Value

Schema

in Schema at line 134
protected Schema parseDefinitions(array $definition)

Parameters

array $definition

Return Value

Schema

Exceptions

SchemaException

in Schema at line 159
protected $this parse(array $definition)

Parameters

array $definition

Return Value

$this

in SubSchema at line 172
static Schema fromDefinition(array $definition, Schema $root = null)

Instanz aus einer Definition erstellen.

Wichtig: $root darf nicht null sein, sondern muss ein Verweis auf das Hauptschema sein.

Parameters

array $definition
Schema $root

Return Value

Schema

Exceptions

SchemaException
NullException

in Schema at line 199
static Schema fromJson(string $json)

Parameters

string $json

Return Value

Schema

Exceptions

SchemaException

in SubSchema at line 145
Schema|null getRoot()

Return Value

Schema|null

at line 51
protected Schema parseTypeSchema(array $definition)

Parameters

array $definition

Return Value

Schema

Exceptions

SchemaException

at line 78
protected array decodePropertyPaths(string $pathString)

Parameters

string $pathString

Return Value

array

at line 96
protected string encodePath(string $path)

Parameters

string $path

Return Value

string

at line 106
protected string decodePath(string $path)

Parameters

string $path

Return Value

string