FormsTable
extends ListTable
in package
Tags
Table of Contents
- $_countByType : array<string|int, mixed>
- $_itemsPerPage : int
- $_listType : string
- __construct() : mixed
- ajax_user_can() : bool
- get_columns() : array<string|int, mixed>
- getArgs() : array<string|int, mixed>
- getListType() : string
- no_items() : mixed
- prepare_items() : mixed
- $columns = array( 'link_name' => __('Link Name', 'onoffice-for-wp-websites'), 'link_category' => __('Link Category', 'onoffice-for-wp-websites'), 'cb' => '<input type="checkbox" />', );
- setListType() : mixed
- column_cb() : string
- column_default() : string
- column_shortcode() : string
- get_bulk_actions() : array<string|int, mixed>
- get_views() : array<string|int, mixed>
- getItems() : array<string|int, mixed>
- handle_row_actions() : string
- Generates and displays row action links.
- handleRecord() : mixed
- setItems() : mixed
- fillData() : mixed
Properties
$_countByType
private
array<string|int, mixed>
$_countByType
= array()
$_itemsPerPage
private
int
$_itemsPerPage
= null
$_listType
private
string
$_listType
= 'all'
Methods
__construct()
public
__construct([array<string|int, mixed> $args = array() ]) : mixed
Parameters
- $args : array<string|int, mixed> = array()
-
An associative array of arguments.
Tags
Return values
mixed —ajax_user_can()
public
ajax_user_can() : bool
Return values
bool —get_columns()
public
get_columns() : array<string|int, mixed>
Return values
array<string|int, mixed> —getArgs()
public
getArgs() : array<string|int, mixed>
Return values
array<string|int, mixed> —getListType()
public
getListType() : string
Return values
string —no_items()
public
no_items() : mixed
Return values
mixed —prepare_items()
$columns = array( 'link_name' => __('Link Name', 'onoffice-for-wp-websites'), 'link_category' => __('Link Category', 'onoffice-for-wp-websites'), 'cb' => '<input type="checkbox" />', );
public
prepare_items() : mixed
Return values
mixed —setListType()
public
setListType(string $listType) : mixed
Parameters
- $listType : string
Return values
mixed —column_cb()
protected
column_cb(object $pItem) : string
Parameters
- $pItem : object
Return values
string —column_default()
protected
column_default(object $pItem, string $columnName) : string
Parameters
- $pItem : object
- $columnName : string
Return values
string —column_shortcode()
protected
column_shortcode(object $pItem) : string
Parameters
- $pItem : object
Return values
string —get_bulk_actions()
protected
get_bulk_actions() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_views()
protected
get_views() : array<string|int, mixed>
Return values
array<string|int, mixed> —getItems()
protected
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed> —handle_row_actions()
Generates and displays row action links.
protected
handle_row_actions(object $pItem, string $column_name, string $primary) : string
Parameters
- $pItem : object
-
Link being acted upon.
- $column_name : string
-
Current column name.
- $primary : string
-
Primary column name.
Return values
string —Row action output for links.
handleRecord()
protected
handleRecord(array<string|int, mixed> $records) : mixed
Parameters
- $records : array<string|int, mixed>
Return values
mixed —setItems()
protected
setItems(array<string|int, mixed> $items) : mixed
Parameters
- $items : array<string|int, mixed>
Return values
mixed —fillData()
private
fillData() : mixed