\Wms7_Black_List_Table

Description: Creates a blacklist table for frontend.

To customize the appearance of the "Blacklist" table, use the file wms7-frontend-style.css
which is in the folder: ../plugins/watchman-site7/css/

Summary

Methods
Properties
Constants
__construct()
column_cb()
column_default()
get_hidden_columns()
get_columns()
wms7_width_columns()
get_sortable_columns()
get_bulk_actions()
extra_tablenav()
wms7_black_list_src()
wms7_per_page_box()
search_box()
prepare_items()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
process_bulk_action()
No private properties found
N/A

Methods

__construct()

__construct() 

[__construct description]

column_cb()

column_cb(  $item) : string

Fills table cells with data in column cb (column 0).

Parameters

$item

Returns

string —

sprintf(...)

column_default()

column_default(array  $item, string  $column_name) : string

Method used to render a column when no other specific method exists for that column.

When WP_List_Tables attempts to render columns, it first checks for a column-specific method. If none exists, it defaults to this method instead.

Parameters

array $item

Content cell of table.

string $column_name

Column name.

Returns

string

get_hidden_columns()

get_hidden_columns() : array

Returns the unvisible columns.

Returns

array

get_columns()

get_columns() : array

Creates column names for a table.

Returns

array —

Name of columns.

wms7_width_columns()

wms7_width_columns() 

Settings width of colums table.

get_sortable_columns()

get_sortable_columns() : array

Determines which columns of the table can be sorted.

Returns

array —

Sortable columns

get_bulk_actions()

get_bulk_actions() : array

Determines list of bulk actions.

Returns

array —

Bulk actions

extra_tablenav()

extra_tablenav(object  $which) 

Extra controls to be displayed between bulk actions and pagination.

Parameters

object $which

The location of the extra table nav markup:'top' or 'bottom' for table.

wms7_black_list_src()

wms7_black_list_src() : object

Creates source of black list.

Returns

object —

Records of black list source

wms7_per_page_box()

wms7_per_page_box() 

Displays the per_page box.

search_box()

search_box(string  $text, string  $input_id) 

Displays the search box.

Parameters

string $text

The 'submit' button label.

string $input_id

ID attribute value for the search input field.

prepare_items()

prepare_items() 

Prepares the list of black list for displaying.

Used to query and filter data, handle sorting, and pagination, and any other data-manipulation required prior to rendering.
This method should be called explicitly after instantiating Wms7_List_Table class, and before rendering.

process_bulk_action()

process_bulk_action() 

Performs bulk actions.