TwistPHP Documentation

addField

File path: dist/twist/Core/Models/Form/Builder.model.php
Namespace: Twist\Core\Models\Form
Extends:

addField

Parameters

Name Type Description
$strTitlestringn/a
$strNamestringn/a
$strTypestringn/a
[$intMaxLength = null]integern/a
[$mxdValue = null]mixedn/a
[$arrAttributes = array()]arrayn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strTitle 'foo';
$strName 'foo';
$strType 'foo';
$intMaxLength null;
$mxdValue null;
$arrAttributes = array();

//Call the function addField with the example vars
$resBuilder = new \Twist\Core\Models\Form\Builder();
$resBuilder -> addField($strTitle$strName$strType$intMaxLength$mxdValue$arrAttributes);