PHP Class Cuztom_Meta

Since: 1.5
Author: Gijs Jorissen
Afficher le fichier Open project: gizburdt/cuztom Class Usage Examples

Méthodes publiques

Свойство Type Description
$callback
$data
$description
$fields
$id
$title

Méthodes publiques

Méthode Description
__construct ( string | array $title ) Construct for all meta types, creates title (and description)
build ( array $data, $parent = null ) : array This array builds the complete array with the right key => value pairs
callback ( $object, object $data = [] ) : mixed Main callback for meta
edit_form_tag ( ) : mixed Adds multipart support to form
get_meta_type ( ) : string Check what kind of meta we're dealing with
is_accordion ( array $data ) : boolean Checks if the given array is an accordion
is_bundle ( array $data ) : boolean Checks if the given array is a bundle
is_meta_type ( $meta_type ) : string Check what kind of meta we're dealing with
is_tabs ( array $data ) : boolean Checks if the given array are tabs
save ( $object_id, $values ) Normal save method to save all the fields in a metabox Metabox and User Meta rely on this method

Method Details

__construct() public méthode

Construct for all meta types, creates title (and description)
Since: 1.6.4
Author: Gijs Jorissen
public __construct ( string | array $title )
$title string | array

build() public méthode

This array builds the complete array with the right key => value pairs
Since: 1.1
Author: Gijs Jorissen
public build ( array $data, $parent = null ) : array
$data array
Résultat array

callback() public méthode

Main callback for meta
Since: 0.2
Author: Gijs Jorissen
public callback ( $object, object $data = [] ) : mixed
$data object
Résultat mixed

edit_form_tag() static public méthode

Adds multipart support to form
Since: 0.2
Author: Gijs Jorissen
static public edit_form_tag ( ) : mixed
Résultat mixed

get_meta_type() public méthode

Check what kind of meta we're dealing with
Since: 1.5
Author: Gijs Jorissen
public get_meta_type ( ) : string
Résultat string

is_accordion() static public méthode

Checks if the given array is an accordion
Since: 1.3
Author: Gijs Jorissen
static public is_accordion ( array $data ) : boolean
$data array
Résultat boolean

is_bundle() static public méthode

Checks if the given array is a bundle
Since: 1.3
Author: Gijs Jorissen
static public is_bundle ( array $data ) : boolean
$data array
Résultat boolean

is_meta_type() public méthode

Check what kind of meta we're dealing with
Since: 2.3
Author: Gijs Jorissen
public is_meta_type ( $meta_type ) : string
Résultat string

is_tabs() static public méthode

Checks if the given array are tabs
Since: 1.3
Author: Gijs Jorissen
static public is_tabs ( array $data ) : boolean
$data array
Résultat boolean

save() public méthode

Normal save method to save all the fields in a metabox Metabox and User Meta rely on this method
Since: 2.6
Author: Gijs Jorissen
public save ( $object_id, $values )

Property Details

$callback public_oe property

public $callback

$data public_oe property

public $data

$description public_oe property

public $description

$fields public_oe property

public $fields

$id public_oe property

public $id

$title public_oe property

public $title