Documentation

ModelType extends Type

Table of Contents

$ModelClass  : string
$type  : string
$container  : Container
$createFields  : FieldBag
$fields  : FieldBag
$updateFields  : FieldBag
container()  : void
create()  : TypeMeta
created()  : void
getAttribute()  : Attribute|null
getCreateAttribute()  : Attribute|null
getCreateField()  : Field
getCreateFields()  : FieldBag
getCreateRelation()  : Relation|null
getField()  : Field
getFields()  : FieldBag
getRelation()  : Relation|null
getUpdateAttribute()  : Attribute|null
getUpdateField()  : Field
getUpdateFields()  : FieldBag
getUpdateRelation()  : Relation|null
hasAttribute()  : bool
hasCreateAttribute()  : bool
hasCreateField()  : bool
hasCreateRelation()  : bool
hasField()  : bool
hasRelation()  : bool
hasUpdateAttribute()  : bool
hasUpdateField()  : bool
hasUpdateRelation()  : bool
list()  : TypeMeta
toSchemaJson()  : array<string|int, mixed>
update()  : TypeMeta
createFields()  : void
fields()  : void
translations()  : array<string|int, mixed>
updateFields()  : void
insertAfter()  : mixed

Properties

$ModelClass

public static string $ModelClass

$type

public static string $type = 'Afeefa.ModelType'

Methods

create()

public static create(string $TypeClass) : TypeMeta
Parameters
$TypeClass : string
Return values
TypeMeta

created()

public created() : void
Return values
void

getAttribute()

public getAttribute(string $name) : Attribute|null
Parameters
$name : string
Return values
Attribute|null

getCreateAttribute()

public getCreateAttribute(string $name) : Attribute|null
Parameters
$name : string
Return values
Attribute|null

getCreateField()

public getCreateField(string $name) : Field
Parameters
$name : string
Return values
Field

getCreateRelation()

public getCreateRelation(string $name) : Relation|null
Parameters
$name : string
Return values
Relation|null

getField()

public getField(string $name) : Field
Parameters
$name : string
Return values
Field

getRelation()

public getRelation(string $name) : Relation|null
Parameters
$name : string
Return values
Relation|null

getUpdateAttribute()

public getUpdateAttribute(string $name) : Attribute|null
Parameters
$name : string
Return values
Attribute|null

getUpdateField()

public getUpdateField(string $name) : Field
Parameters
$name : string
Return values
Field

getUpdateRelation()

public getUpdateRelation(string $name) : Relation|null
Parameters
$name : string
Return values
Relation|null

hasAttribute()

public hasAttribute(string $name) : bool
Parameters
$name : string
Return values
bool

hasCreateAttribute()

public hasCreateAttribute(string $name) : bool
Parameters
$name : string
Return values
bool

hasCreateField()

public hasCreateField(string $name) : bool
Parameters
$name : string
Return values
bool

hasCreateRelation()

public hasCreateRelation(string $name) : bool
Parameters
$name : string
Return values
bool

hasField()

public hasField(string $name) : bool
Parameters
$name : string
Return values
bool

hasRelation()

public hasRelation(string $name) : bool
Parameters
$name : string
Return values
bool

hasUpdateAttribute()

public hasUpdateAttribute(string $name) : bool
Parameters
$name : string
Return values
bool

hasUpdateField()

public hasUpdateField(string $name) : bool
Parameters
$name : string
Return values
bool

hasUpdateRelation()

public hasUpdateRelation(string $name) : bool
Parameters
$name : string
Return values
bool

list()

public static list(string $TypeClass) : TypeMeta
Parameters
$TypeClass : string
Return values
TypeMeta

toSchemaJson()

public toSchemaJson() : array<string|int, mixed>
Return values
array<string|int, mixed>

update()

public static update(string $TypeClass) : TypeMeta
Parameters
$TypeClass : string
Return values
TypeMeta

fields()

protected fields(FieldBag $fields) : void
Parameters
$fields : FieldBag
Return values
void

translations()

protected translations() : array<string|int, mixed>
Return values
array<string|int, mixed>

insertAfter()

private insertAfter(mixed $afterKey, array<string|int, mixed> $array, mixed $newKey, mixed $newValue) : mixed
Parameters
$afterKey : mixed
$array : array<string|int, mixed>
$newKey : mixed
$newValue : mixed
Return values
mixed

Search results