CRUDUI PHP API

Outline
in package

FinalYes

The structure map model derived from evaluated nodes: one entry per form row.

Table of Contents

Methods

build()  : array<int, stdClass>
Build the structure map: the form's rows, nested as in the form. Collections, counts and empty collections are not rows.
children()  : array<int, stdClass>
The child nodes of a node, none when it has no children list.
entry()  : stdClass
The entry of one row of the collection at `$path`, with the rows nested in it.
rows()  : array<int, stdClass>
The rows under the nodes, looking through every node that is not a collection.

Methods

build()

Build the structure map: the form's rows, nested as in the form. Collections, counts and empty collections are not rows.

public static build(array<int, stdClass> $nodes) : array<int, stdClass>
Parameters
$nodes : array<int, stdClass>

evaluated nodes

Return values
array<int, stdClass>

children()

The child nodes of a node, none when it has no children list.

private static children(stdClass $node) : array<int, stdClass>
Parameters
$node : stdClass
Return values
array<int, stdClass>

entry()

The entry of one row of the collection at `$path`, with the rows nested in it.

private static entry(string $path, stdClass $row) : stdClass
Parameters
$path : string
$row : stdClass
Return values
stdClass

rows()

The rows under the nodes, looking through every node that is not a collection.

private static rows(array<int, stdClass> $nodes) : array<int, stdClass>
Parameters
$nodes : array<int, stdClass>
Return values
array<int, stdClass>
On this page

Search results