WebRTC2_List_Table_Srv
extends WP_List_Table
in package
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- column_cb() : string
- Fills table cells with data in column cb (column 0). intval($item[ $column_name ])
- column_default() : mixed
- Define what data to show on each column of the table
- get_bulk_actions() : array<string|int, mixed>
- Determines list of bulk actions.
- get_columns() : array<string|int, mixed>
- Override the parent columns method. Defines the columns to use in your listing table
- get_hidden_columns() : array<string|int, mixed>
- Define which columns are hidden.
- get_sortable_columns() : array<string|int, mixed>
- Define the sortable columns
- prepare_items() : void
- Prepare the items for the table to process
- usort_reorder() : array<string|int, mixed>
- Sorting data of table.
- webrtc2_create_report_stun() : mixed
- Create report file of WP-WebRTC2: stun servers
- webrtc2_update_tbl() : mixed
- Update fields of tbl webrtc2_stun_servers.
- process_bulk_action() : mixed
- Performs bulk actions.
- table_data() : array<string|int, mixed>
- Get the table data
Methods
__construct()
Constructor.
public
__construct() : mixed
column_cb()
Fills table cells with data in column cb (column 0). intval($item[ $column_name ])
public
column_cb(mixed $item) : string
Parameters
- $item : mixed
Return values
string —sprintf(...)
column_default()
Define what data to show on each column of the table
public
column_default(array<string|int, mixed> $item, string $column_name) : mixed
Parameters
- $item : array<string|int, mixed>
-
Data
- $column_name : string
-
Current column name
get_bulk_actions()
Determines list of bulk actions.
public
get_bulk_actions() : array<string|int, mixed>
Return values
array<string|int, mixed> —Bulk actions
get_columns()
Override the parent columns method. Defines the columns to use in your listing table
public
get_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>get_hidden_columns()
Define which columns are hidden.
public
get_hidden_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>get_sortable_columns()
Define the sortable columns
public
get_sortable_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>prepare_items()
Prepare the items for the table to process
public
prepare_items() : void
usort_reorder()
Sorting data of table.
public
usort_reorder(mixed $a, mixed $b) : array<string|int, mixed>
Parameters
- $a : mixed
- $b : mixed
Return values
array<string|int, mixed> —Bulk actions
webrtc2_create_report_stun()
Create report file of WP-WebRTC2: stun servers
public
webrtc2_create_report_stun(array<string|int, mixed> $result) : mixed
Parameters
- $result : array<string|int, mixed>
-
Selected records for report.
webrtc2_update_tbl()
Update fields of tbl webrtc2_stun_servers.
public
webrtc2_update_tbl(array<string|int, mixed> $result, array<string|int, mixed> $repeat) : mixed
Parameters
- $result : array<string|int, mixed>
-
Selected records of tbl.
- $repeat : array<string|int, mixed>
-
Update records or not (auto/manually/no).
process_bulk_action()
Performs bulk actions.
private
process_bulk_action() : mixed
table_data()
Get the table data
private
table_data([string $search = "" ]) : array<string|int, mixed>
Parameters
- $search : string = ""
-
Search.