Document_Link extends Abstract_Table_Data
Gets data for the 'link' column.
Tags
Table of Contents
- $links : mixed
- $post : mixed
- $accessing_documents : mixed
- $button_class : mixed
- $document_link : mixed
- $link_destination : mixed
- $link_style : mixed
- $link_target : mixed
- $link_text : mixed
- $preview : mixed
- $preview_style : mixed
- $preview_text : mixed
- __construct() : mixed
- Constructor.
- get_data() : mixed
- {@inheritdoc}
- 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
$links
protected
mixed
$links
Tags
$post
protected
mixed
$post
Tags
$accessing_documents
private
mixed
$accessing_documents
Tags
$button_class
private
mixed
$button_class
Tags
$document_link
private
mixed
$document_link
Tags
$link_destination
private
mixed
$link_destination
Tags
$link_style
private
mixed
$link_style
Tags
$link_target
private
mixed
$link_target
Tags
$link_text
private
mixed
$link_text
Tags
$preview
private
mixed
$preview
Tags
$preview_style
private
mixed
$preview_style
Tags
$preview_text
private
mixed
$preview_text
Tags
Methods
__construct()
Constructor.
public
__construct(WP_Post $post, Table_Args $args) : mixed
Parameters
- $post : WP_Post
- $args : Table_Args
Tags
Return values
mixed —get_data()
{@inheritdoc}
public
get_data() : mixed
Tags
Return values
mixed —get_filter_data()
public
get_filter_data() : mixed
Tags
Return values
mixed —get_sort_data()
public
get_sort_data() : 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.