Method |
Description |
|
add_fields ( ) |
Add a set/group of fields. |
|
delete ( ) |
Delete the values of all contained fields. |
|
get_fields ( ) : array |
Retrieve all groups of fields. |
|
get_group_by_name ( string $group_name ) : Group_Field |
Retrieve a group by its name. |
|
get_group_names ( ) : array |
Retrieve the groups of this field. |
|
get_max ( ) : integer |
Get the maximum number of entries. |
|
get_min ( ) : integer |
Get the minimum number of entries. |
|
get_values ( ) : array |
Retrieve the field values. |
|
init ( ) |
Initialization tasks. |
|
load ( ) |
Load all groups of fields and their data. |
|
load_values ( ) |
Load and parse the field data. |
|
load_values_from_array ( array $values ) : array |
Load and parse a raw set of field data. |
|
load_values_from_db ( ) |
Load and parse the field data from the database. |
|
process_loaded_values ( array $group_rows ) |
Parse groups of raw field data into the actual field hierarchy. |
|
save ( ) |
Save all contained groups of fields. |
|
set_datastore ( Carbon_Fields\Datastore\Datastore_Interface $store ) |
Set the datastore of this field. |
|
set_header_template ( string | callable $template ) |
Set the group label Underscore template. |
|
set_layout ( string $layout ) |
Modify the layout of this field. |
|
set_max ( integer $max ) |
Set the maximum number of entries. |
|
set_min ( integer $min ) |
Set the minimum number of entries. |
|
set_prefix ( string $prefix ) |
Generate and set the field prefix. |
|
set_value_from_input ( array $input = null ) |
Load the field value from an input array based on it's name. |
|
setup_labels ( array $labels ) |
Set the field labels. |
|
template ( ) |
The main Underscore template. |
|
template_group ( ) |
The Underscore template for the complex field group. |
|
template_group_tab_item ( ) |
The Underscore template for the group item tab. |
|
to_json ( boolean $load ) : array |
Returns an array that holds the field data, suitable for JSON representation. |
|