PHP Class RWMB_Choice_Field

Inheritance: extends RWMB_Field
Afficher le fichier Open project: rilwis/meta-box Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Filter options for walker
public static filter_options ( array $field, $options ) : array
$field array
Résultat array

format_single_value() public static méthode

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
Résultat string

get_db_fields() public static méthode

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

get_option_label() public static méthode

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

get_options() public static méthode

Get options for walker
public static get_options ( array $field ) : array
$field array
Résultat array

html() public static méthode

Get field HTML
public static html ( mixed $meta, array $field ) : string
$meta mixed
$field array
Résultat string

normalize() public static méthode

Normalize parameters for field
public static normalize ( array $field ) : array
$field array
Résultat array

walk() public static méthode

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