RoomListTable
extends WP_List_Table
in package
Table of Contents
- POSTS_PER_PAGE = 20
- $order : string
- $orderBy : string
- __construct() : mixed
- column_cb() : string
- Required if displaying checkboxes or using bulk actions! The "cb" column is given special treatment when columns are processed. It always needs to have it's own method.
- column_default() : string
- This method is called when the parent class can't find a method specifically build for a given column.
- column_export() : string
- column_import() : string
- column_title() : string
- Method specially for column "Title".
- get_bulk_actions() : array<string|int, mixed>
- get_columns() : array<string|int, mixed>
- Required to dictate the table's columns and titles.
- get_plural() : mixed
- Just a getter. Not required for WP_List_Table.
- get_sortable_columns() : array<string|int, mixed>
- prepare_items() : mixed
- This required method is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this->items and $this->set_pagination_args().
- process_bulk_action() : mixed
Constants
POSTS_PER_PAGE
public
mixed
POSTS_PER_PAGE
= 20
Properties
$order
private
string
$order
$orderBy
private
string
$orderBy
Methods
__construct()
public
__construct() : mixed
Return values
mixed —column_cb()
Required if displaying checkboxes or using bulk actions! The "cb" column is given special treatment when columns are processed. It always needs to have it's own method.
public
column_cb(Room $item) : string
Parameters
- $item : Room
-
A singular item (one full row's worth of data).
Return values
string —Text or HTML to be placed inside the column <td>.
column_default()
This method is called when the parent class can't find a method specifically build for a given column.
public
column_default(Room $item, string $columnName) : string
Parameters
- $item : Room
-
A singular item (one full row's worth of data).
- $columnName : string
-
The name/slug of the column to be processed.
Return values
string —Text or HTML to be placed inside the column <td>.
column_export()
public
column_export(Room $item) : string
Parameters
- $item : Room
Return values
string —column_import()
public
column_import(Room $item) : string
Parameters
- $item : Room
Return values
string —column_title()
Method specially for column "Title".
public
column_title(Room $item) : string
Parameters
- $item : Room
-
A singular item (one full row's worth of data).
Return values
string —Text or HTML to be placed inside the column <td>.
get_bulk_actions()
public
get_bulk_actions() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_columns()
Required to dictate the table's columns and titles.
public
get_columns() : array<string|int, mixed>
Return values
array<string|int, mixed> —An associative array [ %slug% => %Title% ].
get_plural()
Just a getter. Not required for WP_List_Table.
public
get_plural() : mixed
Return values
mixed —get_sortable_columns()
public
get_sortable_columns() : array<string|int, mixed>
Return values
array<string|int, mixed> —prepare_items()
This required method is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this->items and $this->set_pagination_args().
public
prepare_items() : mixed
Return values
mixed —process_bulk_action()
public
process_bulk_action() : mixed