Method |
Description |
|
__construct ( string $name, string $label, array $fields ) |
Create a group field with the specified name and label. |
|
add_fields ( array $fields ) |
Add a group of fields. |
|
get_field_names ( ) : array |
Return the names of all fields. |
|
get_fields ( ) : array |
Fields attribute getter. |
|
get_group_id ( ) : string |
Group ID attribute getter. |
|
get_label ( ) : string |
Label attribute getter. |
|
get_label_template ( ) : string |
Set the Underscore label template. |
|
get_name ( ) : string |
Return the group name. |
|
set_datastore ( Carbon_Fields\Datastore\Datastore_Interface $store ) |
Assign a DataStore instance for all group fields. |
|
set_label ( string $label ) |
Set the group label. |
|
set_label_template ( string $template ) |
Set the Underscore label template. |
|
set_name ( string $name ) |
Set the group name. |
|
set_prefix ( string $prefix ) |
Set a prefix for all group fields. |
|
template_label ( ) |
Print the label Underscore template. |
|
to_json ( boolean $load ) : array |
Returns an array that holds the field data, suitable for JSON representation. |
|
verify_unique_field_name ( string $name ) |
Perform checks whether there is a field registered with the name $name. |
|