AirLay backend

View
in package
implements JsonSerializable, Persistable

Interfaces, Classes, Traits and Enums

JsonSerializable
Persistable

Table of Contents

REQUIRED_PROPERTIES  = ['slimView' => true, 'compactView' => false, 'allowGallery' => true]
$form  : array<string|int, mixed>
$properties  : stdClass
$title  : string
__construct()  : mixed
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
fromArray()  : View
getProperties()  : array<string|int, mixed>
jsonSerialize()  : array<string|int, mixed>
setForm()  : self
setProperties()  : self
toArray()  : array<string|int, mixed>

Constants

REQUIRED_PROPERTIES

private mixed REQUIRED_PROPERTIES = ['slimView' => true, 'compactView' => false, 'allowGallery' => true]

Properties

$form

public array<string|int, mixed> $form

$properties

public stdClass $properties

$title

public string $title

Methods

__construct()

public __construct(string $title, array<string|int, mixed> $form, array<string|int, mixed> $properties) : mixed
Parameters
$title : string
$form : array<string|int, mixed>
$properties : array<string|int, mixed>
Return values
mixed

bsonSerialize()

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

bsonUnserialize()

public bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

fromArray()

public static fromArray(array<string|int, mixed> $data) : View
Parameters
$data : array<string|int, mixed>
Return values
View

getProperties()

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

jsonSerialize()

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

setForm()

public setForm(array<string|int, mixed> $form) : self
Parameters
$form : array<string|int, mixed>
Return values
self

setProperties()

public setProperties(array<string|int, mixed> $properties) : self
Parameters
$properties : array<string|int, mixed>
Return values
self

toArray()

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

Search results