Properties

$dashBoard

$dashBoard : integer

Screen dashdoard ID value.

Type

integer — default 0.

$instance

$instance : mixed

The single instance of the class

Type

mixed — Default null

$enable_widgets

$enable_widgets : array

Enabled widgets

Type

array

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

get()

get() 

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

@return self::singlton Overview Page Session.

__construct()

__construct() 

MainWP_Overview constructor.

Run each time the class is called.

on_screen_layout_columns()

on_screen_layout_columns(mixed  $columns, mixed  $screen) : integer

Set the number of page coumns.

Parameters

mixed $columns

Number of Columns.

mixed $screen

Screen size.

Returns

integer —

$columns Number of desired page columns.

on_admin_menu()

on_admin_menu() 

Add MainWP Overview top level menu.

init_left_menu()

init_left_menu() 

Instantiate the MainWP Overview Menu item.

on_load_page()

on_load_page() 

Method on_load_page()

Run on page load.

on_show_page()

on_show_page() 

Method on_show_page()

When the page loads render the body content.

render_dashboard_body()

render_dashboard_body(object  $websites = array()) 

Method render_dashboard_body()

Render the Dashboard Body content.

Parameters

object $websites

Object containing child sites info.

mainwp_help_content()

mainwp_help_content() : void

Method mainwp_help_content()

Hook the section help content to the Help Sidebar element