final class Helpers

Forms helpers.

Constants

private UnsafeNames

Methods

static FileUpload|null
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 35
static FileUpload|null 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

FileUpload|null

at line 91
static string generateHtmlName(string $id)

Converts control name to HTML name.

Parameters

string $id

Return Value

string

at line 106
static array exportRules(Rules $rules)

No description

Parameters

Rules $rules

Return Value

array

at line 163
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 198
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 265
static int iniGetSize(string $name)

internal  
 

No description

Parameters

string $name

Return Value

int

Traits

StaticClass