TwistPHP Documentation

addGroupField

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

addGroupField

Parameters

Name Type Description
$mxdGroupIDmixedn/a
$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
$mxdGroupID 'foo-123';
$strTitle 'foo';
$strName 'foo';
$strType 'foo';
$intMaxLength null;
$mxdValue null;
$arrAttributes = array();

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