Properties

$items

$items : array

Public variable to hold Items information.

Type

array

$total_items

$total_items : array

Public variable to hold Total Items information.

Type

array

$column_headers

$column_headers : array

Protected variable to hold columns headers

Type

array

$instance

$instance : mixed

The single instance of the class

Type

mixed — Default null

$userExtension

$userExtension : mixed

Protected variable to hold User extension.

Type

mixed — Default null.

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Returns

string —

CLASS Class name.

instance()

instance() 

Check if there is a session, if there isn't one create it.

@return self::singlton Overview Page Session.

render()

render() : mixed

Method render()

Returns

mixed —

render_site_info()

render_websites()

render_websites(object  $client_id) 

Render client overview Info.

Parameters

object $client_id

Client ID.

prepare_items()

prepare_items(integer  $client_id) 

Prepare the items to be listed.

Parameters

integer $client_id

client id.

print_column_headers()

print_column_headers() 

Echo the column headers.

display_rows_or_placeholder()

display_rows_or_placeholder() 

Return empty table place holders.

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_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_defines()

get_columns_defines() : array

Get column defines.

Returns

array —

$defines

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.

has_items()

has_items() 

Method has_items().

Verify if items exist.

get_column_info()

get_column_info() 

Get column info.