DataLimits
in package
FinalYes
The data limits of a form root (validation-rules.md, "Data limits"): the bounds of the levels and the nodes of the submitted data.
Table of Contents
Constants
- DEPTH : mixed = 64
- The levels of a form root that declares none (CUVR-083).
- VALUES : mixed = 100000
- The nodes of a form root that declares none (CUVR-083).
Methods
- check() : void
- Data beyond its limits is an input failure, its levels checked before its nodes (CUVR-082).
- read() : array{int, int}
- The `dataLimits` of a form root as [depth, values], a missing member taking its default.
- bad() : ComposeLoadError
Constants
DEPTH
The levels of a form root that declares none (CUVR-083).
public
mixed
DEPTH
= 64
VALUES
The nodes of a form root that declares none (CUVR-083).
public
mixed
VALUES
= 100000
Methods
check()
Data beyond its limits is an input failure, its levels checked before its nodes (CUVR-082).
public
static check(mixed $data, array{int, int} $limits) : void
Parameters
- $data : mixed
- $limits : array{int, int}
Tags
read()
The `dataLimits` of a form root as [depth, values], a missing member taking its default.
public
static read(array<string, mixed> $root) : array{int, int}
Parameters
- $root : array<string, mixed>
Tags
Return values
array{int, int}bad()
private
static bad() : ComposeLoadError