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_Manage_Sites_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 Sitetable 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

Get 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 Available bulk actions.

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.

display()

display(boolean  $optimize = true) 

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 optimise.

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  $website) 

Single Row.

Parameters

mixed $website

Child Site.

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.