PHP Class RWMB_Post_Field

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

Méthodes publiques

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

meta() public static méthode

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

normalize() public static méthode

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