FormBuilder: Maker

Makes Inputfields and related types for FormBuilderProcessor

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FormBuilderMaker class also inherits all the methods and properties of: Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
FormBuilderMaker::arrayToInputfields(array $a)
InputfieldForm InputfieldWrapper

Given a form configuration array, create an InputfieldForm from it

 
FormBuilderMaker::getMarkup()
array mixed null

@param string $property Name of property to retrieve or blank for all

 
FormBuilderMaker::getNumPaginations()
int

Get number of paginations found

 
FormBuilderMaker::getPageNumLabel(int $pageNum)
string

Get defined label for given pagination number

 
FormBuilderMaker::getPageNumToProcess()
int

Get the page/pagination number to process input for

 
FormBuilderMaker::getPageNumToRender()
int

Get the page/pagination number to render

 
FormBuilderMaker::getSubmitType()
bool int

Is this a form or pagination submit request for this form?

 
FormBuilderMaker::hasPagination()
bool

Does the current form appear to have more than 1 pagination?

 
FormBuilderMaker::makeInputfieldForm(FormBuilderForm $fbForm)
InputfieldForm

Given a FormBuilderForm return an InputfieldForm

 
FormBuilderMaker::makeSubmitKey(InputfieldForm $form)
string array

Create a new submitKey containing number of fields, random component and session key

 
FormBuilderMaker::makeSubmitVal($sessionKey, $numFields)
string

@param $sessionKey

 
FormBuilderMaker::parseSubmitKey(string $submitKey)
array

Parse a submitKey into its component parts

 
FormBuilderMaker::populateForm(InputfieldForm $form, array $data)
None

Populate the given $form with the given $data

 
FormBuilderMaker::populateInputfield(Inputfield $field, $value)
None

Populate an individual Inputfield

 
FormBuilderMaker::setNumPaginations(int $qty)
None

Set number of paginations (internal)

 
FormBuilderMaker::setPageNumToProcess($num)
None 
FormBuilderMaker::setPageNumToRender($num)
None 

Properties

NameReturnSummary 
FormBuilderMaker::formName string 

Additional methods and properties

In addition to the methods and properties above, FormBuilderMaker also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.257