class Helpers

Forms helpers.

Constants

private UnsafeNames

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|null $inputAttrs = null, array|null $labelAttrs = null, $wrapper = null)

No description

static Html
createSelectBox(array $items, array|null $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 89
static string generateHtmlName(string $id)

Converts control name to HTML name.

Parameters

string $id

Return Value

string

at line 104
static array exportRules(Rules $rules)

No description

Parameters

Rules $rules

Return Value

array

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

No description

Parameters

array $items
array|null $inputAttrs
array|null $labelAttrs
$wrapper

Return Value

string

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

No description

Parameters

array $items
array|null $optionAttrs
$selected

Return Value

Html

at line 263
static int iniGetSize(string $name)

internal  
 

No description

Parameters

string $name

Return Value

int

Traits

StaticClass