PHP Class Papi_Property_Number, papi

Inheritance: extends Papi_Property
Show file Open project: wp-papi/papi

Public Properties

Property Type Description
$convert_type string The convert type.

Public Methods

Method Description
format_value ( mixed $value, string $slug, integer $post_id ) : float | integer Format the value of the property before it's returned to WordPress admin or the site.
get_convert_type ( ) : string Get convert type.
get_default_settings ( ) : array Get default settings.
get_value ( ) : float | integer Get value from the database.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.

Method Details

format_value() public method

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 ) : float | integer
$value mixed
$slug string
$post_id integer
return float | integer

get_convert_type() public method

Get convert type.
public get_convert_type ( ) : string
return string

get_default_settings() public method

Get default settings.
public get_default_settings ( ) : array
return array

get_value() public method

Get value from the database.
public get_value ( ) : float | integer
return float | integer

html() public method

Render property html.
public html ( )

import_value() public method

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

Property Details

$convert_type public property

The convert type.
public string $convert_type
return string