PHP Class RWMB_Key_Value_Field

Inheritance: extends RWMB_Text_Field
Show file Open project: rilwis/meta-box

Public Methods

Method Description
begin_html ( mixed $meta, array $field ) : string Show begin HTML markup for fields
element_description ( array $field ) : string Do not show field description.
esc_meta ( mixed $meta ) : mixed Escape meta for field output
format_value ( array $field, string | array $value ) : string Format value for the helper functions.
html ( mixed $meta, array $field ) : string Get field HTML
normalize ( array $field ) : array Normalize parameters for field
value ( mixed $new, mixed $old, integer $post_id, array $field ) : string Sanitize field value.

Method Details

begin_html() static public method

Show begin HTML markup for fields
static public begin_html ( mixed $meta, array $field ) : string
$meta mixed
$field array
return string

element_description() public static method

Do not show field description.
public static element_description ( array $field ) : string
$field array
return string

esc_meta() static public method

Escape meta for field output
static public esc_meta ( mixed $meta ) : mixed
$meta mixed
return mixed

format_value() public static method

Format value for the helper functions.
public static format_value ( array $field, string | array $value ) : string
$field array Field parameter
$value string | array The field meta value
return string

html() static public method

Get field HTML
static public html ( mixed $meta, array $field ) : string
$meta mixed
$field array
return string

normalize() static public method

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

value() static public method

Sanitize field value.
static public value ( mixed $new, mixed $old, integer $post_id, array $field ) : string
$new mixed
$old mixed
$post_id integer
$field array
return string