CRUDUI PHP API

FieldPath
in package

FinalYes

The data path of the value a rule validates, with the positions of its row keys, so a relative field reference treats a row as one level (expressions.md, "Evaluation").

Table of Contents

Properties

$rowKeys  : array<string|int, mixed>
$segments  : array<string|int, mixed>

Methods

__construct()  : mixed
reference()  : mixed
The value of a field reference of a rule parameter in the data.

Properties

$rowKeys read-only

public array<string|int, mixed> $rowKeys

$segments read-only

public array<string|int, mixed> $segments

Methods

__construct()

public __construct(array<int, string> $segments, array<int, int> $rowKeys) : mixed
Parameters
$segments : array<int, string>

the data path, row keys included

$rowKeys : array<int, int>

positions of the row keys in $segments

reference()

The value of a field reference of a rule parameter in the data.

public reference(string $expression, array<string|int, mixed>|stdClass $data) : mixed
Parameters
$expression : string
$data : array<string|int, mixed>|stdClass
On this page

Search results