\Points_List_Table

Summary

Methods
Properties
Constants
prepare_items()
get_columns()
get_hidden_columns()
get_sortable_columns()
column_default()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
table_data()
sort_data()
No private properties found
N/A

Methods

prepare_items()

prepare_items() : Void

Prepare the items for the table to process

Returns

Void

get_columns()

get_columns() : Array

Override the parent columns method.

Defines the columns to use in your listing table

Returns

Array

get_hidden_columns()

get_hidden_columns() : Array

Define which columns are hidden

Returns

Array

get_sortable_columns()

get_sortable_columns() : Array

Define the sortable columns

Returns

Array

column_default()

column_default(Array  $item, String  $column_name) : Mixed

Define what data to show on each column of the table

Parameters

Array $item

Data

String $column_name
  • Current column name

Returns

Mixed

table_data()

table_data() : Array

Get the table data

Returns

Array

sort_data()

sort_data(  $a,   $b) : Mixed

Allows you to sort the data by the variables set in the $_GET

Parameters

$a
$b

Returns

Mixed