This struct records information about Input Form definition elements.
Source for this file: /UserInput/src/structs/definition_element.php
ezcBaseStruct | --ezcInputFormDefinitionElement
Version: | //autogentag// |
OPTIONAL
= 0
|
|
REQUIRED
= 1
|
public string |
$filterName
= 'string'
The name of the filter to use for this definition element. |
public mixed |
$flags
= false
The extra flags to this filter. |
public string |
$hint
= ''
A short hint to be shown to the user about the constraint of an input element, e.g. 'between 0 and 100', 'valid email' or 'no specialchars' |
public mixed |
$options
= false
The extra options to this filter. |
public int |
$type
= self::OPTIONAL
Whether the field is optional or required. One of the self::OPTIONAL or self::REQUIRED constants. |
public ezcInputFormDefinitionElement |
__construct(
[ $type
= ezcInputFormDefinitionElement::OPTIONAL] , [ $filterName
= 'string'] , [ $options
= null] , [ $flags
= null] , [ $hint
= ''] )
Constructs a definition item. |
Constructs a definition item.
Constructs the definition item with all its options and flags.
Name | Type | Description |
---|---|---|
$type |
int | |
$filterName |
string | |
$options |
mixed | |
$flags |
int | |
$hint |
string |