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

static string|null
getSingleType($reflection)

No description

static mixed
tryEnumConversion(mixed $value, $reflection)

No description

static array
getSupportedImages()

No description

Details

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

Return Value

FileUpload|null

at line 93
static string generateHtmlName(string $id)

Converts control name to HTML name.

Parameters

string $id

Return Value

string

at line 108
static array exportRules(Rules $rules)

No description

Parameters

Rules $rules

Return Value

array

at line 173
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 209
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 276
static int iniGetSize(string $name)

internal  
 

No description

Parameters

string $name

Return Value

int

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

internal  
 

No description

Parameters

$reflection

Return Value

string|null

at line 303
static mixed tryEnumConversion(mixed $value, $reflection)

internal  
 

No description

Parameters

mixed $value
$reflection

Return Value

mixed

at line 318
static array getSupportedImages()

internal  
 

No description

Return Value

array

Traits

StaticClass