PHP Class Papi_Property_Term, 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 ) : array Format the value of the property before it's returned to the application.
get_default_settings ( ) : array Get default settings.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.

Protected Methods

Method Description
get_labels ( ) : array Get labels from taxonomies.
get_taxonomies ( ) : array Get taxonomies.
get_term ( integer $term_id ) : object Get single term.
get_terms ( string $taxonomy ) : array Get terms for specified taxonomy.

Method Details

format_value() public method

Format the value of the property before it's returned to the application.
public format_value ( mixed $value, string $slug, integer $post_id ) : array
$value mixed
$slug string
$post_id integer
return array

get_default_settings() public method

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

get_labels() protected method

Get labels from taxonomies.
protected get_labels ( ) : array
return array

get_taxonomies() protected method

Get taxonomies.
protected get_taxonomies ( ) : array
return array

get_term() protected method

Get single term.
protected get_term ( integer $term_id ) : object
$term_id integer
return object

get_terms() protected method

Get terms for specified taxonomy.
protected get_terms ( string $taxonomy ) : array
$taxonomy string
return array

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