PHP Class Carbon_Fields\Datastore\Term_Meta_Datastore

Inheritance: extends Datastore
Show file Open project: htmlburger/carbon-fields

Protected Properties

Property Type Description
$term_id integer ID of the term.

Public Methods

Method Description
create_table ( ) Create term meta database table (for WP < 4.4)
get_id ( ) : integer Retrieve the term ID of the datastore.
get_meta_type ( ) : string Retrieve the type of meta data.
get_table_field_name ( ) : string Retrieve the meta table field name to query by.
get_table_name ( ) : string Retrieve the meta table name to query.
init ( ) Initialization tasks.
on_delete_term ( integer $term_id ) : boolean Delete term meta on term deletion.
set_id ( integer $term_id ) Set the term ID of the datastore.

Method Details

create_table() public static method

Create term meta database table (for WP < 4.4)
public static create_table ( )

get_id() public method

Retrieve the term ID of the datastore.
public get_id ( ) : integer
return integer ID of the term.

get_meta_type() public method

Retrieve the type of meta data.
public get_meta_type ( ) : string
return string

get_table_field_name() public method

Retrieve the meta table field name to query by.
public get_table_field_name ( ) : string
return string

get_table_name() public method

Retrieve the meta table name to query.
public get_table_name ( ) : string
return string

init() public method

Initialization tasks.
public init ( )

on_delete_term() public static method

Useful for WP < 4.4.
public static on_delete_term ( integer $term_id ) : boolean
$term_id integer Term ID.
return boolean Result of the deletion operation.

set_id() public method

Set the term ID of the datastore.
public set_id ( integer $term_id )
$term_id integer ID of the term.

Property Details

$term_id protected property

ID of the term.
protected int $term_id
return integer