Properties

$items

$items : array

Public variable to hold Items information.

Type

array

$total_items

$total_items : integer

Public variable to hold total items number.

Type

integer

$primary_backup

$primary_backup : string

Public variable to hold primary backup method.

Type

string

$userExtension

$userExtension : mixed

Protected variable to hold User extension.

Type

mixed — Default null.

$column_headers

$column_headers : array

Protected variable to hold columns headers

Type

array

Methods

__construct()

__construct() 

MainWP_Client_List_Table constructor.

Run each time the class is called. Add action to generate tabletop.

column_site_preview()

column_site_preview(mixed  $item) : mixed

Method column_site_preview()

Site preview column.

Parameters

mixed $item

List of backups.

Returns

mixed —

preview content.

column_default()

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

Set the column names.

Parameters

mixed $item

MainWP site table item.

string $column_name

Column name to use.

Returns

string —

Column name.

get_sortable_columns()

get_sortable_columns() : array

Get sortable columns.

Returns

array —

$sortable_columns Array of sortable column names.

get_default_columns()

get_default_columns() : array

Gets default columns.

Returns

array —

Array of default column names.

get_columns()

get_columns() : array

Method get_columns()

Combine all columns.

Returns

array —

$columns Array of column names.

get_columns_init()

get_columns_init() : array

Instantiate Columns.

Returns

array —

$init_cols

get_columns_defines()

get_columns_defines() : array

Get column defines.

Returns

array —

$defines

generate_tabletop()

generate_tabletop() 

Method generate_tabletop()

Run the render_manage_sites_table_top menthod.

get_bulk_actions()

get_bulk_actions() : array

Create bulk actions drop down.

Returns

array —

$actions Return actions through the mainwp_manageclients_bulk_actions filter.

render_manage_sites_table_top()

render_manage_sites_table_top() 

Render manage sites table top.

render_page_navigation_left_items()

render_page_navigation_left_items() 

Method render_page_navigation_left_items()

Render page navigation left items.

no_items()

no_items() 

Html output if no Child Sites are connected.

has_items()

has_items() 

Method has_items().

Verify if items exist.

prepare_items()

prepare_items(boolean  $optimize = false) 

Prepair the items to be listed.

Parameters

boolean $optimize

true|false Whether or not to optimize.

display()

display(boolean  $optimize = false) 

Display the table.

Parameters

boolean $optimize

true|false Whether or not to optimize.

display_rows_or_placeholder()

display_rows_or_placeholder() 

Return empty table place holders.

get_column_count()

get_column_count() : integer

Get the column count.

Returns

integer —

Column Count.

print_column_headers()

print_column_headers(boolean  $optimize, boolean  $top = true) 

Echo the column headers.

Parameters

boolean $optimize

true|false Whether or not to optimize.

boolean $top

true|false.

get_groups_classes()

get_groups_classes(array  $item) : mixed

Get groups classes row.

Parameters

array $item

Array containing child site data.

Returns

mixed —

Single Row Classes Item.

display_rows()

display_rows() : mixed

Fetch single row item.

Returns

mixed —

Single Row Item.

single_row()

single_row(mixed  $item) 

Single row.

Parameters

mixed $item

Object containing the client info.

get_default_primary_column_name()

get_default_primary_column_name() : string

Get the default primary column name.

Returns

string —

Child site name.

get_column_info()

get_column_info() 

Get column info.

single_row_columns()

single_row_columns(mixed  $item, boolean  $compatible = true) 

Columns for a single row.

Parameters

mixed $item

Object containing the client info.

boolean $compatible

to compatible param - DO NOT remove.