Form_Field_Radio_Group __construct(
string
$name, [integer
$value = NULL], [boolean
$required = false]
)
|
|
Constructor
Parameters:
|
string |
$name: |
Name of the field |
|
integer |
$value: |
Default value. |
|
boolean |
$required: |
Is field required. Default is false |
Redefinition of:
- Form_Field::__construct()
- Constructor
void add_radio(
integer
$value
)
|
|
Adds radio button
Parameters:
|
integer |
$value: |
Value of the radio button |
API Tags:
Information Tags:
| Throws: | TE_Radio_Value_Already_Exists |
Returns all radios as array
API Tags:
boolean is_unique_value(
integer
$value
)
|
|
Checks if there is a radio with same value
Parameters:
API Tags:
| Internal: | |
| Access: | private |
unknown is_value_valid(
integer
$value
)
|
|
Checks if there is radio button with that value
Parameters:
API Tags:
void set_radios(
array
$radios_arr
)
|
|
Sets all radios at once using array
Parameters:
API Tags:
void set_radio_checked(
integer
$value
)
|
|
Marks radio as checked
Parameters:
|
integer |
$value: |
Value of radio that will be marked as checked |
API Tags:
void set_value(
integer
$value
)
|
|
Sets value
Parameters:
API Tags:
Redefinition of:
- Form_Field::set_value()
- Sets field's value
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