Form_Field_Select __construct(
string
$name, [integer
$value = NULL], [boolean
$required = false], [integer
$empty_value = NULL]
)
|
|
Constructor
Parameters:
|
string |
$name: |
Name of the field |
|
integer |
$value: |
Default value |
|
boolean |
$required: |
Is field required. Default is false |
|
integer |
$empty_value: |
Value of empty value |
Redefinition of:
- Form_Field::__construct()
- Constructor
Redefined in descendants as:
void add_option(
integer
$value
)
|
|
Adds new option
Parameters:
|
integer |
$value: |
Value of the option |
API Tags:
Information Tags:
| Throws: | TE_Select_Value_Already_Exists |
Performs basic check for validity
API Tags:
Redefinition of:
- Form_Field::basic_check()
- Performs basic check for validity
Redefined in descendants as:
unknown get_empty_value(
)
|
|
Returns empty value
API Tags:
Returns all options as array
API Tags:
boolean is_unique_value(
integer
$value
)
|
|
Checks if there is option with same value
Parameters:
|
integer |
$value: |
Value of the option |
API Tags:
| Internal: | |
| Access: | private |
void set_empty_value(
integer
$empty_value
)
|
|
Sets empty value
Parameters:
API Tags:
void set_options(
array
$options_arr
)
|
|
Sets all options at once using array
Parameters:
API Tags:
void set_option_selected(
integer
$value
)
|
|
marks option as selected
Parameters:
|
integer |
$value: |
Value of the option |
API Tags:
| Internal: | |
| Access: | private |
void set_value(
integer
$value
)
|
|
Sets current value
Parameters:
API Tags:
Redefinition of:
- Form_Field::set_value()
- Sets field's value
Redefined in descendants as:
void translate_value_html2app(
)
|
|
Transfers data from html_value to value
API Tags:
| Internal: | |
| Access: | protected |
Redefinition of:
- Form_Field::translate_value_html2app()
- Transfers data from html_value to value
Redefined in descendants as:
void _set_value(
integer
$value
)
|
|
Sets current value
Parameters:
|
integer |
$value: |
Value of the option |
API Tags:
| Internal: | |
| Access: | protected |