class Helpers

Forms helpers.

Traits

Static class.

Constants

UNSAFE_NAMES

Methods

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

Extracts and sanitizes submitted form data for single control.

static string
generateHtmlName(string $id)

Converts control name to HTML name.

static array
exportRules(Rules $rules)

No description

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

No description

static Html
createSelectBox(array $items, array $optionAttrs = null, $selected = null)

No description

Details

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

Extracts and sanitizes submitted form data for single control.

Parameters

array $data
string $htmlName
int $type

Return Value

string|string[]

at line 82
static string generateHtmlName(string $id)

Converts control name to HTML name.

Parameters

string $id

Return Value

string

at line 95
static array exportRules(Rules $rules)

Parameters

Rules $rules

Return Value

array

at line 135
static string createInputList(array $items, array $inputAttrs = null, array $labelAttrs = null, $wrapper = null)

Parameters

array $items
array $inputAttrs
array $labelAttrs
$wrapper

Return Value

string

at line 163
static Html createSelectBox(array $items, array $optionAttrs = null, $selected = null)

Parameters

array $items
array $optionAttrs
$selected

Return Value

Html