PHP Class Carbon_Fields\Field\Set_Field

Allows to create a set of checkboxes where multiple can be selected.
Inheritance: extends Field
Show file Open project: htmlburger/carbon-fields

Protected Properties

Property Type Description
$limit_options

Public Methods

Method Description
get_value ( ) : array Retrieve the field value(s).
limit_options ( integer $limit ) Set the number of the options to be displayed at the initial field display.
template ( ) The Underscore template of this field.
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Method Details

get_value() public method

Retrieve the field value(s).
public get_value ( ) : array
return array

limit_options() public method

Set the number of the options to be displayed at the initial field display.
public limit_options ( integer $limit )
$limit integer

template() public method

The Underscore template of this field.
public template ( )

to_json() public method

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
return array

Property Details

$limit_options protected property

protected $limit_options