Helpers
final class Helpers
Forms helpers.
Constants
| private UnsafeNames |
|
Methods
Extracts and sanitizes submitted form data for single control.
Converts a component path (e.g. 'form-person-name') to the HTML name attribute format (e.g. 'person[name]').
Exports validation rules into a JSON-serializable structure for the data-nette-rules attribute.
Generates an HTML list of labeled inputs (radio buttons or checkboxes).
Generates a
No description
Returns the single type name from reflection, or null if no type is defined.
No description
No description
Details
at line 37
static FileUpload|null
extractHttpData(array $data, string $htmlName, int $type)
| internal |
Extracts and sanitizes submitted form data for single control.
at line 94
static string
generateHtmlName(string $id)
Converts a component path (e.g. 'form-person-name') to the HTML name attribute format (e.g. 'person[name]').
at line 115
static array
exportRules(Rules $rules)
Exports validation rules into a JSON-serializable structure for the data-nette-rules attribute.
at line 186
static string
createInputList(array $items, array|null $inputAttrs = null, array|null $labelAttrs = null, Html|string|null $wrapper = null)
Generates an HTML list of labeled inputs (radio buttons or checkboxes).
at line 227
static Html
createSelectBox(array $items, array|null $optionAttrs = null, mixed $selected = null)
Generates a
at line 298
static int
iniGetSize(string $name)
| internal |
No description
at line 316
static string|null
getSingleType(ReflectionParameter|ReflectionProperty $reflection)
| internal |
Returns the single type name from reflection, or null if no type is defined.
at line 332
static mixed
tryEnumConversion(mixed $value, ReflectionParameter|ReflectionProperty|null $reflection)
| internal |
No description
at line 353
static array
getSupportedImages()
| internal |
No description