FormBuilderMaker::arrayToInputfields()
Given a form configuration array, create an InputfieldForm from it
Usage
// basic usage
$inputfieldForm = $formBuilderMaker->arrayToInputfields(array $a);
// usage with all arguments
$inputfieldForm = $formBuilderMaker->arrayToInputfields(array $a, int $requestPageNum = 0, int $currentPageNum = 1, InputfieldWrapper $inputfields = null, $submitType = null);Arguments
| Name | Type(s) | Description |
|---|---|---|
$a | array | Form configuration array |
$requestPageNum (optional) | int | Requested pagination number, or -1 to disregard any found pagination (0=auto detect) |
$currentPageNum (optional) | int | Current pagination number, for internal/recursive use only |
$inputfields (optional) | InputfieldWrapper | For internal/recursive use only |
$submitType (optional) | bool int | For internal/recursive use only |
Return value
InputfieldForm InputfieldWrapper
FormBuilderMaker methods and properties
API reference based on ProcessWire core version 3.0.257