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

static string|null
getSingleType($reflection)

No description

static array
getSupportedImages()

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::DataText, DataLine, DataFile, DataKeys

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 169
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 205
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 272
static int iniGetSize(string $name)

internal  
 

No description

Parameters

string $name

Return Value

int

at line 283
static string|null getSingleType($reflection)

internal  
 

No description

Parameters

$reflection

Return Value

string|null

at line 299
static array getSupportedImages()

internal  
 

No description

Return Value

array

Traits

StaticClass