Class Fieldmanager_Options
Abstract base class for handling option fields, like select elements, checkboxes or radios.
- Fieldmanager_Field
- Fieldmanager_Options
Direct known subclasses
Fieldmanager_Checkboxes
,
Fieldmanager_Radios
,
Fieldmanager_Select
Methods summary
public
|
|
public
array|string
|
|
public
|
|
public
string
|
|
public
|
#
form_data_element( mixed $data_row, mixed $value )
A single element for a single bit of data, e.g. '<option>' |
public
string
|
#
option_selected( string $current_option, array $options, string $attribute )
Helper for output functions to toggle a selected options |
public
mixed[]
|
#
presave_all( mixed $values, mixed $current_values )
Override presave_all to handle special cases associated with multiple options fields. |
public
sanitized
|
|
public
|
|
public
int[]
|
#
presave_alter_values( int[] $values, int[] $current_values = array() )
Presave hook to set taxonomy data, maybe |
Methods inherited from Fieldmanager_Field
_invalid_definition()
,
_unauthorized_access()
,
activate_submenu_page()
,
add_another()
,
add_meta_box()
,
add_page_form()
,
add_quickedit_box()
,
add_submenu_page()
,
add_term_meta_box()
,
add_user_form()
,
element_markup()
,
escape()
,
form_element()
,
get_collapse_handle()
,
get_element_attributes()
,
get_element_id()
,
get_element_key()
,
get_element_label()
,
get_extra_element_classes()
,
get_form_name()
,
get_form_tree()
,
get_remove_handle()
,
get_sort_handle()
,
is_group()
,
is_repeatable()
,
set_options()
,
single_element_markup()
,
wrap_with_multi_tools()
Magic methods summary
Properties summary
public
array
|
$data |
#
Full option data, allows grouping |
public
array
|
$options |
#
Shortcut to data which allows a simple associative array |
public
boolean
|
$grouped |
#
Is the data grouped? E.g. should we use <optgroup> |
public
array
|
$first_element |
#
Always prepend this element to the $data |
public
boolean
|
$multiple |
#
Allow multiple selections? |
public
string
|
$options_template |
#
Path to an options template to load. |
Properties inherited from Fieldmanager_Field
$add_more_label
,
$add_more_position
,
$attributes
,
$data_id
,
$data_type
,
$datasource
,
$debug
,
$default_value
,
$description
,
$description_after_element
,
$display_if
,
$escape
,
$extra_elements
,
$field_class
,
$index
,
$index_filter
,
$inline_label
,
$input_type
,
$is_attachment
,
$label
,
$label_after_element
,
$label_element
,
$limit
,
$meta_boxes_to_remove
,
$minimum_count
,
$name
,
$one_label_per_item
,
$remove_default_meta_boxes
,
$required
,
$sanitize
,
$save_empty
,
$serialize_data
,
$skip_save
,
$sortable
,
$template
,
$validate
,
$validation_messages
,
$validation_rules