Gravity_Forms\Gravity_Forms\Settings\Fields\Radio
Source: includes/settings/fields/class-radio.php:11
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Settings\Fields - Extends:
Base
Properties
| Property | Type | Description |
|---|---|---|
$type | string | Field type. |
$choices | array | Field choices. |
$image_select | bool | Whether the input should be an image select. |
$horizontal | bool | Whether the inputs should be horizontal. |
Methods
| Method | Description |
|---|---|
__construct() | Initialize field. |
markup() | Render field. |
do_validation() | Validate posted field value. |
Method Reference
__construct()
public function __construct( $props, $settings )
Initialize field.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$props | array | Field properties. | |
$settings | Settings | Settings instance. |
Since: 2.5
Source: includes/settings/fields/class-radio.php:55
markup()
public function markup()
Render field.
Returns
string
Since: 2.5
Source: includes/settings/fields/class-radio.php:86
do_validation()
public function do_validation( $value )
Validate posted field value.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$value | string | Posted field value. |
Since: 2.5
Source: includes/settings/fields/class-radio.php:182