\Barn2\Plugin\Posts_Table_ProTable_Columns

Responsible for managing the columns for a specific Posts Table, and column utility functions.

Summary

Methods
Properties
Constants
__construct()
get_all_columns()
get_columns()
get_hidden_columns()
column_index()
get_column_heading()
get_column_heading_class()
get_column_priority()
get_column_width()
is_click_filterable()
is_searchable()
is_sortable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$args
N/A

Properties

Methods

get_all_columns()

get_all_columns()

get_columns()

get_columns()

get_hidden_columns()

get_hidden_columns()

column_index()

column_index(  $column,  $incude_hidden = false)

Parameters

$column
$incude_hidden

get_column_heading()

get_column_heading(  $index,  $column)

Parameters

$index
$column

get_column_heading_class()

get_column_heading_class(integer  $index,string  $column): string

Get the class for each column header <th> tag. This sets the responsive visibility class based on the responsive options.

Parameters

integer $index

The column index (0 based)

string $column

The column name

Returns

string —

The CSS class

get_column_priority()

get_column_priority(  $index,  $column)

Parameters

$index
$column

get_column_width()

get_column_width(  $index,  $column)

Parameters

$index
$column

is_click_filterable()

is_click_filterable(  $column)

Parameters

$column

is_searchable()

is_searchable(  $column)

Parameters

$column

is_sortable()

is_sortable(  $column)

Parameters

$column