1 <?php
2
3 /**
4 * A collection of multiple radio button fields.
5 *
6 * This class extends {@link Fieldmanager_Options}, which allows you to define
7 * options (values) via an array or via a dynamic
8 * {@link Fieldmanager_Datasource}, like {@link Fieldmanager_Datasource_Post},
9 * {@link Fieldmanager_Datasource_Term}, or {@link Fieldmanager_Datasource_User}.
10 *
11 * @package Fieldmanager_Field
12 */
13 class Fieldmanager_Radios extends Fieldmanager_Options {
14
15 /**
16 * @var string
17 * Override field class
18 */
19 public $field_class = 'radio';
20
21 /**
22 * Form element
23 * @param array $value
24 * @return string HTML
25 */
26 public function form_element( $value = array() ) {
27
28 return $this->form_data_elements( $value );
29
30 }
31
32 }