PHP Class Papi_Property_Bool, papi

Inheritance: extends Papi_Property
Afficher le fichier Open project: wp-papi/papi

Méthodes publiques

Свойство Type Description
$convert_type string The convert type.
$default_value boolean The default value.

Méthodes publiques

Méthode Description
format_value ( mixed $value, string $slug, integer $post_id ) : boolean Format the value of the property before it's returned to WordPress admin or the site.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.
load_value ( mixed $value, string $slug, integer $post_id ) : mixed Change value after it's loaded from the database.
update_value ( mixed $value, string $slug, integer $post_id ) : array Fix the database value on update.

Méthodes protégées

Méthode Description
prepare_value ( mixed $value ) : mixed Prepare property value.

Method Details

format_value() public méthode

Format the value of the property before it's returned to WordPress admin or the site.
public format_value ( mixed $value, string $slug, integer $post_id ) : boolean
$value mixed
$slug string
$post_id integer
Résultat boolean

html() public méthode

Render property html.
public html ( )

import_value() public méthode

Import value to the property.
public import_value ( mixed $value, string $slug, integer $post_id ) : mixed
$value mixed
$slug string
$post_id integer
Résultat mixed

load_value() public méthode

Change value after it's loaded from the database.
public load_value ( mixed $value, string $slug, integer $post_id ) : mixed
$value mixed
$slug string
$post_id integer
Résultat mixed

prepare_value() protected méthode

Prepare property value.
protected prepare_value ( mixed $value ) : mixed
$value mixed
Résultat mixed

update_value() public méthode

Fix the database value on update.
public update_value ( mixed $value, string $slug, integer $post_id ) : array
$value mixed
$slug string
$post_id integer
Résultat array

Property Details

$convert_type public_oe property

The convert type.
public string $convert_type
Résultat string

$default_value public_oe property

The default value.
public bool $default_value
Résultat boolean