Properties

$items

$items : array

Public variable to hold Items information.

Type

array

$items_prev

$items_prev : array

Public variable to hold Previous Items information.

Type

array

$total_items

$total_items : integer

Public variable to hold total items number.

Type

integer

$column_headers

$column_headers : array

Protected variable to hold columns headers

Type

array

Methods

__construct()

__construct(\MainWP\Dashboard\Module\Log\Log_Manager  $manager) 

Class constructor.

Run each time the class is called.

Parameters

\MainWP\Dashboard\Module\Log\Log_Manager $manager

Instance of manager object.

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

column_default()

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

Returns the column content for the provided item and column.

Parameters

array $item

Record data.

string $column_name

Column name.

Returns

string —

$out Output.

get_state_title()

get_state_title(object  $record) : string

Returns the label for a status.

Parameters

object $record

record item.

Returns

string

get_action_title()

get_action_title(string  $act, string  $type, boolean  $coloring = false) : string

Returns the label for a connector term.

Parameters

string $act

Action type.

string $type

Connector term.

boolean $coloring

Coloring term.

Returns

string

parse_event_title()

parse_event_title(object  $record) : string

Parse event title.

Parameters

object $record

Log record object.

Returns

string

get_context_title()

get_context_title(string  $context, string  $connector) : string

Returns the label for a context.

Parameters

string $context

Log context.

string $connector

Log connector.

Returns

string

no_items()

no_items() 

Html output if no Child Sites are connected.

has_items()

has_items() 

Method has_items().

Verify if items exist.

get_total_found_rows()

get_total_found_rows() : integer

Get last query found rows

Returns

integer

prepare_items()

prepare_items(boolean  $with_prev_data = false, array  $insights_filters = array()) 

Prepare the items to be listed.

Parameters

boolean $with_prev_data

To get previous data.

array $insights_filters

Insights filters.

display()

display() 

Display the table.

get_column_count()

get_column_count() : integer

Get the column count.

Returns

integer —

Column Count.

print_column_headers()

print_column_headers() 

Echo the column headers.

ajax_get_datatable_rows()

ajax_get_datatable_rows() : array

Get table rows.

Optimize for shared hosting or big networks.

Returns

array —

Rows html.

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.