Skip to content
docsv0.17.0

FormView

The visual state of a form to render: which fields (definition), with which values, and with which validation outcome. It is pure render input — the renderer renders state, it never binds. The same FormView drives the no-JS transport (P5.3a) and the live transport (P5.3b).

FormView::__construct()

public function __construct(Milpa\Live\Schema\FormDefinition $definition, array $values, Milpa\Live\Schema\ValidationResult $validation):

Parameters

Parameters of __construct()
NameTypeDescription
$definitionMilpa\Live\Schema\FormDefinition
$valuesarray<string, mixed>
$validationMilpa\Live\Schema\ValidationResult