\MainWP\DashboardMainWP_Connection_Status

Class MainWP_Connection_Status

Build the Connection Status Widget.

Summary

Methods
Properties
Constants
get_class_name()
render()
render_sites()
render_status()
render_current_status()
render_multi_status()
render_details()
render_all_item()
render_up_item()
render_down_item()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Returns

string —

CLASS Class Name

render()

render() : mixed

Method render()

Returns

mixed —

render_sites()

render_status()

render_status(mixed  $current_wpid) 

The renders the MainWP Overview page Connection Status Widget Header and Drop down Box.

Parameters

mixed $current_wpid

Current Website ID.

render_current_status()

render_current_status(mixed  $site, mixed  $count_connected) 

Render the MainWP Overview page Conection Status Widget Content.

Parameters

mixed $site

Site list.

mixed $count_connected

Connection Count.

render_multi_status()

render_multi_status(integer  $count_connected, integer  $count_disconnected) 

Render connection status summary section.

Parameters

integer $count_connected

Connected Count.

integer $count_disconnected

Disconnected Count.

render_details()

render_details(mixed  $html_all_sites, mixed  $html_online_sites, mixed  $html_other_sites) 

Render See All Sites List.

Parameters

mixed $html_all_sites

All sites html.

mixed $html_online_sites

Online sites html.

mixed $html_other_sites

Other sites html.

render_all_item()

render_all_item(mixed  $website, mixed  $lastSyncTime, mixed  $hasSyncErrors) 

Render all items list.

Parameters

mixed $website

Website Info.

mixed $lastSyncTime

Last time the Child Site was synced to.

mixed $hasSyncErrors

Collected errors.

render_up_item()

render_up_item(object  $website, string  $lastSyncTime) 

Render Connected Sites List.

Parameters

object $website

Object containing the child site info.

string $lastSyncTime

Last time the Child Site was synced to.

render_down_item()

render_down_item(object  $website, string  $lastSyncTime) 

Render Disconected Sites List.

Parameters

object $website

Object containing the child site info.

string $lastSyncTime

Last time the Child Site was synced to.