class Helpers extends Object

Forms helpers.

Methods

static string|string[]
extractHttpData(array $data, $htmlName, $type)

Extracts and sanitizes submitted form data for single control.

static string
generateHtmlName($id)

Converts control name to HTML name.

static string
createInputList(array $items, array $inputAttrs = NULL, array $labelAttrs = NULL, $wrapper = NULL)

No description

static Html
createSelectBox(array $items, array $optionAttrs = NULL)

No description

Details

at line 36
static string|string[] extractHttpData(array $data, $htmlName, $type)

internal  
 

Extracts and sanitizes submitted form data for single control.

Parameters

array $data
$htmlName
$type

Return Value

string|string[]

at line 83
static string generateHtmlName($id)

Converts control name to HTML name.

Parameters

$id

Return Value

string

at line 99
static string createInputList(array $items, array $inputAttrs = NULL, array $labelAttrs = NULL, $wrapper = NULL)

No description

Parameters

array $items
array $inputAttrs
array $labelAttrs
$wrapper

Return Value

string

at line 130
static Html createSelectBox(array $items, array $optionAttrs = NULL)

No description

Parameters

array $items
array $optionAttrs

Return Value

Html