PHP Class RWMB_Post_Field

Inheritance: extends RWMB_Field
Mostra file Open project: rilwis/meta-box

Public Methods

Method Description
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
meta ( $post_id, $saved, $field ) : array Get meta value If field is cloneable, value is saved as a single entry in DB Otherwise value is saved as multiple entries (for backward compatibility)
normalize ( array $field ) : array Normalize parameters for field

Method Details

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

meta() public static method

Get meta value If field is cloneable, value is saved as a single entry in DB Otherwise value is saved as multiple entries (for backward compatibility)
public static meta ( $post_id, $saved, $field ) : array
$post_id
$saved
$field
return array

normalize() public static method

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