FormBuilderMaker class

Located in file /site/modules/FormBuilder/FormBuilderMaker.php

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?        

Common

NameReturnSummary 
FormBuilderMaker::arrayToInputfields(array $a)
InputfieldForm InputfieldWrapperGiven a form configuration array, create an InputfieldForm from it 
FormBuilderMaker::formName string 
FormBuilderMaker::getMarkup()
array mixed null@param string $property Name of property to retrieve or blank for all 
FormBuilderMaker::getNumPaginations()
intGet number of paginations found 
FormBuilderMaker::getPageNumLabel(int $pageNum)
stringGet defined label for given pagination number 
FormBuilderMaker::getPageNumToProcess()
intGet the page/pagination number to process input for 
FormBuilderMaker::getPageNumToRender()
intGet the page/pagination number to render 
FormBuilderMaker::getSubmitType()
bool intIs this a form or pagination submit request for this form? 
FormBuilderMaker::hasPagination()
boolDoes the current form appear to have more than 1 pagination? 
FormBuilderMaker::makeInputfieldForm(FormBuilderForm $fbForm)
InputfieldFormGiven a FormBuilderForm return an InputfieldForm 
FormBuilderMaker::makeSubmitKey(InputfieldForm $form)
string arrayCreate a new submitKey containing number of fields, random component and session key 
FormBuilderMaker::makeSubmitVal($sessionKey, $numFields)
string@param $sessionKey 
FormBuilderMaker::parseSubmitKey(string $submitKey)
arrayParse a submitKey into its component parts 
FormBuilderMaker::populateForm(InputfieldForm $form, array $data)
(nothing)Populate the given $form with the given $data 
FormBuilderMaker::populateInputfield(Inputfield $field, $value)
(nothing)Populate an individual Inputfield 
FormBuilderMaker::setPageNumToProcess($num)
(nothing) 
FormBuilderMaker::setPageNumToRender($num)
(nothing) 

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.236

Latest news

  • ProcessWire Weekly #550
    In the 550th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called PagefileMetadata, and more. Read on!
    Weekly.pw / 23 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.