Abstract_Posts_Table_Data extends Abstract_Table_Data

Abstract post data class used to fetch data for a post in the table.

Tags
deprecated
2.3

Replaced by Barn2\Plugin\Posts_Table_Pro\Data\Abstract_Table_Data

Table of Contents

$links  : mixed
$post  : mixed
__construct()  : mixed
get_filter_data()  : mixed
get_sort_data()  : mixed
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.

Properties

Methods

__construct()

public __construct(mixed $post[, mixed $links = '' ]) : mixed
Parameters
$post : mixed
$links : mixed = ''
Tags
Return values
mixed

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.

Tags
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: ', '

Tags
Return values
string

HTML string of the list of terms.

Search results