PHP Class RWMB_Choice_Field

Inheritance: extends RWMB_Field
显示文件 Open project: rilwis/meta-box Class Usage Examples

Public Methods

Method Description
filter_options ( array $field, $options ) : array Filter options for walker
format_single_value ( array $field, string $value ) : string Format a single value for the helper functions.
get_db_fields ( ) : array Get field names of object to be used by walker
get_option_label ( array $field, string $value ) : string Get option label
get_options ( array $field ) : array Get options for walker
html ( mixed $meta, array $field ) : string Get field HTML
normalize ( array $field ) : array Normalize parameters for field
walk ( array $field, mixed $options, mixed $db_fields, mixed $meta ) : string Walk options

Method Details

filter_options() public static method

Filter options for walker
public static filter_options ( array $field, $options ) : array
$field array
return array

format_single_value() public static method

Format a single value for the helper functions.
public static format_single_value ( array $field, string $value ) : string
$field array Field parameter
$value string The value
return string

get_db_fields() public static method

Get field names of object to be used by walker
public static get_db_fields ( ) : array
return array

get_option_label() public static method

Get option label
public static get_option_label ( array $field, string $value ) : string
$field array Field parameter
$value string Option value
return string

get_options() public static method

Get options for walker
public static get_options ( array $field ) : array
$field array
return array

html() public static method

Get field HTML
public static html ( mixed $meta, array $field ) : string
$meta mixed
$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