Fieldmanager
  • Package
  • Class
  • Tree
  • Todo

Packages

  • Fieldmanager
    • Context
    • Datasource
    • Field
    • Util
  • None

Classes

  • Fieldmanager_Autocomplete
  • Fieldmanager_Checkbox
  • Fieldmanager_Checkboxes
  • Fieldmanager_Colorpicker
  • Fieldmanager_Datepicker
  • Fieldmanager_DraggablePost
  • Fieldmanager_Field
  • Fieldmanager_Grid
  • Fieldmanager_Group
  • Fieldmanager_Hidden
  • Fieldmanager_Link
  • Fieldmanager_Media
  • Fieldmanager_Options
  • Fieldmanager_Password
  • Fieldmanager_Radios
  • Fieldmanager_RichTextArea
  • Fieldmanager_Select
  • Fieldmanager_TextArea
  • Fieldmanager_TextField

Class Fieldmanager_DraggablePost

An interface for dragging posts from a repository to assorted buckets.

This field might be deprecated in a future version of Fieldmanager. It is preferable to use https://github.com/alleyinteractive/fm-zones instead.

Fieldmanager_Field
Extended by Fieldmanager_DraggablePost
Package: Fieldmanager\Field
Located at class-fieldmanager-draggablepost.php

Methods summary

public
# __construct( string $label = '', array $options = array() )

Add scripts and styles and other setup tasks.

Add scripts and styles and other setup tasks.

Parameters

$label
string
$label
$options
array
$options

Overrides

Fieldmanager_Field::__construct
public array
# presave( array $value, mixed $current_values = array() )

Massage form data into proper storage format..

Massage form data into proper storage format..

Parameters

$value
array
$value
$current_values

Returns

array
$value

Overrides

Fieldmanager_Field::presave
public string
# form_element( mixed $value )

Render form element

Render form element

Parameters

$value
mixed
$value

Returns

string
HTML

Overrides

Fieldmanager_Field::form_element

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(), 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(), preload_alter_values(), presave_all(), set_options(), single_element_markup(), wrap_with_multi_tools()

Magic methods summary

Properties summary

public array $repositories
#

Keyed array defining repository boxes and what their content should be. Keys are the machine names of the repositories. Each can include:
- 'label' (string) the publicly displayed label of the box (eg 'News Artickes')
- 'post_type' (string or array of strings) post type(s) to select for this box
- 'length' (int) number of items to show in the box
- 'orderby' (string) field to order the query by, as allowed by WP_Query
- 'order' (string) ASC or DESC
- 'taxonomy_args' (array) arguments to pass to WP_Query to filter by category (see https://codex.wordpress.
org/Class_Reference/WP_Query#Taxonomy_Parameters). If omitted, no taxonomy filtering will be performed.
- 'callback' (callable) a custom function to call in lieu of WP_Query to retrieve posts for this repository. The function
must have the signature callback($key, $data) and must return an array of post ids. If callback is set, all the above
options (except label) will be overridden.

Keyed array defining repository boxes and what their content should be. Keys are the machine names of the repositories. Each can include: - 'label' (string) the publicly displayed label of the box (eg 'News Artickes') - 'post_type' (string or array of strings) post type(s) to select for this box - 'length' (int) number of items to show in the box - 'orderby' (string) field to order the query by, as allowed by WP_Query - 'order' (string) ASC or DESC - 'taxonomy_args' (array) arguments to pass to WP_Query to filter by category (see https://codex.wordpress. org/Class_Reference/WP_Query#Taxonomy_Parameters). If omitted, no taxonomy filtering will be performed. - 'callback' (callable) a custom function to call in lieu of WP_Query to retrieve posts for this repository. The function must have the signature callback($key, $data) and must return an array of post ids. If callback is set, all the above options (except label) will be overridden.

public array $bins
#

Keyed array defining the bins (destination droppable locations) for the draggable items. Keys are machine names, values are labels.

Keyed array defining the bins (destination droppable locations) for the draggable items. Keys are machine names, values are labels.

public boolean $use_image_checkbox
#

Provide "Use image?" checkbox for draggable divs?

Provide "Use image?" checkbox for draggable divs?

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

Fieldmanager API documentation generated by ApiGen 2.8.0