PHP Class RWMB_Select_Field

Datei anzeigen Open project: rilwis/meta-box Class Usage Examples

Public Methods

Method Description
admin_enqueue_scripts ( ) Enqueue scripts and styles
get_attributes ( array $field, mixed $value = null ) : array Get the attributes for a field
get_select_all_html ( array $field ) : string Get html for select all|none for multiple select
normalize ( array $field ) : array Normalize parameters for field
walk ( array $field, mixed $options, mixed $db_fields, mixed $meta ) : string Walk options

Method Details

admin_enqueue_scripts() public static method

Enqueue scripts and styles
public static admin_enqueue_scripts ( )

get_attributes() public static method

Get the attributes for a field
public static get_attributes ( array $field, mixed $value = null ) : array
$field array
$value mixed
return array

get_select_all_html() public static method

Get html for select all|none for multiple select
public static get_select_all_html ( array $field ) : string
$field array
return string

normalize() public static method

Normalize parameters for field
public static normalize ( array $field ) : array
$field array
return array

walk() public static method

Walk options
public static walk ( array $field, mixed $options, mixed $db_fields, mixed $meta ) : string
$field array
$options mixed
$db_fields mixed
$meta mixed
return string