class Helpers

Forms helpers.

Constants

private 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

static int
iniGetSize(string $name)

No description

Details

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

internal  
 

Extracts and sanitizes submitted form data for single control.

Parameters

array $data
string $htmlName
int $type

type Form::DATA_TEXT, DATA_LINE, DATA_FILE, DATA_KEYS

Return Value

string|string[]

at line 86
static string generateHtmlName(string $id)

Converts control name to HTML name.

Parameters

string $id

Return Value

string

at line 99
static array exportRules(Rules $rules)

No description

Parameters

Rules $rules

Return Value

array

at line 153
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 185
static Html createSelectBox(array $items, array $optionAttrs = null, $selected = null)

No description

Parameters

array $items
array $optionAttrs
$selected

Return Value

Html

at line 245
static int iniGetSize(string $name)

internal  
 

No description

Parameters

string $name

Return Value

int

Traits

Static class.