Document_Categories extends Abstract_Table_Data

Gets post data for the document categories column

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$links  : mixed
$post  : mixed
$date_format  : mixed
$is_date  : mixed
$taxonomy  : mixed
__construct()  : mixed
Constructor.
get_data()  : mixed
{@inheritdoc}
get_filter_data()  : mixed
get_sort_data()  : int|true|string
Get the sort data.
get_separator()  : string
Get the category, tag, term or custom field separator for displaying a list of items in the table.
get_terms_for_column()  : string
Get a list of terms for the specified column, returned as an HTML list.
convert_to_timestamp()  : int|bool
Convert date to timestamp.

Properties

Methods

__construct()

Constructor.

public __construct(WP_Post $post, Table_Args $args) : mixed
Parameters
$post : WP_Post
$args : Table_Args
Return values
mixed

get_sort_data()

Get the sort data.

public get_sort_data() : int|true|string
Return values
int|true|string

get_separator()

Get the category, tag, term or custom field separator for displaying a list of items in the table.

protected static get_separator(string $item_type) : string
Parameters
$item_type : string

The type of item.

Return values
string

The separator.

get_terms_for_column()

Get a list of terms for the specified column, returned as an HTML list.

protected get_terms_for_column(string $column[, bool $show_links = false ][, string $sep = ', ' ]) : string
Parameters
$column : string

The column the retrieve terms for (categories, tags, tax:region, etc).

$show_links : bool = false

Whether to include links to the term archive page. Default: false.

$sep : string = ', '

The term separator, Default: ', '

Return values
string

HTML string of the list of terms.

convert_to_timestamp()

Convert date to timestamp.

private convert_to_timestamp(string $date) : int|bool
Parameters
$date : string
Return values
int|bool

Search results