FormDataCollectorInterface
extends
DataCollectorInterface
in
Collects and structures information about forms.
Tags
Table of Contents
Methods
- associateFormWithView() : mixed
- Specifies that the given objects represent the same conceptual form.
- buildFinalFormTree() : mixed
- Assembles the data collected about the given form and its children as a tree-like data structure.
- buildPreliminaryFormTree() : mixed
- Assembles the data collected about the given form and its children as a tree-like data structure.
- collect() : mixed
- Collects data for the given Request and Response.
- collectConfiguration() : mixed
- Stores configuration data of the given form and its children.
- collectDefaultData() : mixed
- Stores the default data of the given form and its children.
- collectSubmittedData() : mixed
- Stores the submitted data of the given form and its children.
- collectViewVariables() : mixed
- Stores the view variables of the given form view and its children.
- getData() : array<string|int, mixed>|Data
- Returns all collected data.
- getName() : string
- Returns the name of the collector.
- reset() : mixed
Methods
associateFormWithView()
Specifies that the given objects represent the same conceptual form.
public
associateFormWithView(FormInterface $form, FormView $view) : mixed
Parameters
- $form : FormInterface
- $view : FormView
buildFinalFormTree()
Assembles the data collected about the given form and its children as a tree-like data structure.
public
buildFinalFormTree(FormInterface $form, FormView $view) : mixed
The result can be queried using .
Contrary to , a object has to be passed. The tree structure of this view object will be used for structuring the resulting data. That means, if a child is present in the view, but not in the form, it will be present in the final data array anyway.
When instances are present in the view tree, for which no corresponding objects can be found in the form tree, only the view data will be included in the result. If a corresponding exists otherwise, call before calling this method.
Parameters
- $form : FormInterface
- $view : FormView
buildPreliminaryFormTree()
Assembles the data collected about the given form and its children as a tree-like data structure.
public
buildPreliminaryFormTree(FormInterface $form) : mixed
Parameters
- $form : FormInterface
collect()
Collects data for the given Request and Response.
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
collectConfiguration()
Stores configuration data of the given form and its children.
public
collectConfiguration(FormInterface $form) : mixed
Parameters
- $form : FormInterface
collectDefaultData()
Stores the default data of the given form and its children.
public
collectDefaultData(FormInterface $form) : mixed
Parameters
- $form : FormInterface
collectSubmittedData()
Stores the submitted data of the given form and its children.
public
collectSubmittedData(FormInterface $form) : mixed
Parameters
- $form : FormInterface
collectViewVariables()
Stores the view variables of the given form view and its children.
public
collectViewVariables(FormView $view) : mixed
Parameters
- $view : FormView
getData()
Returns all collected data.
public
getData() : array<string|int, mixed>|Data
Return values
array<string|int, mixed>|DatagetName()
Returns the name of the collector.
public
getName() : string
Return values
stringreset()
public
reset() : mixed