Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

$clients_costs

$clients_costs : mixed

Public static variable to hold the clients costs.

Type

mixed — Default null

$clients_sites

$clients_sites : mixed

Public static variable to hold the clients costs.

Type

mixed — Default null

$sites_costs

$sites_costs : mixed

Public static variable to hold the clients costs.

Type

mixed — Default null

Methods

__construct()

__construct() 

Constructor

Runs each time the class is called.

init()

init() 

Initiate Hooks

Initiates hooks for the extension.

hook_widgets_screen_options()

hook_widgets_screen_options(array  $input) : array

Widgets screen options.

Parameters

array $input

Input.

Returns

array —

$input Input.

hook_screen_options()

hook_screen_options(mixed  $input) : mixed

Method screen_options()

Create Screen Options button.

Parameters

mixed $input

Screen options button HTML.

Returns

mixed —

Screen sptions button.

hook_manage_clients_column()

hook_manage_clients_column(array  $columns) : array

Method hook_manage_clients_column().

Handle hook to manage sites columns.

Parameters

array $columns

sites table columns.

Returns

array —

$columns columns.

hook_clientstable_prepared_items()

hook_clientstable_prepared_items(array  $clients, array  $clients_ids) 

Method hook_clientstable_prepared_items().

Handle hook to prepared manage sites items.

Parameters

array $clients

sites prepared.

array $clients_ids

sites ids prepared.

hook_manage_clients_display_item()

hook_manage_clients_display_item(array  $item) : array

Manage Sites Item

Adds the custom column data in the Manage Sites and Monitoring tables.

Parameters

array $item

Site comlumn data.

Returns

array —

$item Site comlumn data.

hook_manage_sites_column()

hook_manage_sites_column(array  $columns) : array

Method hook_manage_sites_column().

Handle hook to manage sites columns.

Parameters

array $columns

sites table columns.

Returns

array —

$columns columns.

hook_sitestable_prepared_items()

hook_sitestable_prepared_items(array  $websites,   $site_ids) 

Method hook_sitestable_prepared_items().

Handle hook to prepared manage sites items.

Parameters

array $websites

sites prepared. @param array $site_ids sites ids prepared.

$site_ids

hook_manage_sites_display_item()

hook_manage_sites_display_item(array  $item) : array

Manage Sites Item

Adds the custom column data in the Manage Sites and Monitoring tables.

Parameters

array $item

Site comlumn data.

Returns

array —

$item Site comlumn data.

hook_get_widgets_screen_options()

hook_get_widgets_screen_options(array  $input) : array

Widgets screen options.

Parameters

array $input

Input.

Returns

array —

$input Input.

hook_get_client_page_metaboxes()

hook_get_client_page_metaboxes(array  $widgets) 

Method hook_get_client_page_metaboxes().

Hook Clients get metaboxes.

Parameters

array $widgets

Client widgets.

hook_get_site_overview_screen_options()

hook_get_site_overview_screen_options(array  $input) : array

Widgets screen options.

Parameters

array $input

Input.

Returns

array —

$input Input.

hook_get_site_overview_page_metaboxes()

hook_get_site_overview_page_metaboxes(array  $widgets, integer  $dashboard_siteid) : array

Method hook_get_client_page_metaboxes().

Hook Clients get metaboxes.

Parameters

array $widgets

Client widgets.

integer $dashboard_siteid

Site Id.

Returns

array —

$widgets Widgets data.