CoolCMS API

ConnectionTypeRegistry
in package

FinalYes

All connection types known to the code, indexed by their code.

Table of Contents

Properties

$types  : array<string, ConnectionTypeInterface>

Methods

__construct()  : mixed
all()  : array<string, ConnectionTypeInterface>
get()  : ConnectionTypeInterface|null
Null for a row whose type the code does not know (installed by a newer/removed extension).
normalize()  : array<string, scalar|null>
Keeps only the values the type declares, cast to their kind. Unknown keys are dropped, so a stored JSON can never smuggle an undeclared value to a consumer.

Properties

Methods

normalize()

Keeps only the values the type declares, cast to their kind. Unknown keys are dropped, so a stored JSON can never smuggle an undeclared value to a consumer.

public normalize(ConnectionTypeInterface $type, array<string|int, mixed> $values) : array<string, scalar|null>
Parameters
$type : ConnectionTypeInterface
$values : array<string|int, mixed>
Return values
array<string, scalar|null>
On this page

Search results