Properties

$page

$page : string

Current page.

Type

string — Current page.

$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

instance()

instance() 

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_load_page()

on_load_page(mixed  $page) 

Method on_load_page()

Run on page load.

Parameters

mixed $page

Page name.

screen_options()

screen_options(mixed  $input) : mixed

Method screen_options()

Create Page Settings button.

Parameters

mixed $input

Page Settings button HTML.

Returns

mixed —

Page Settings button.

on_show_page()

on_show_page() 

Method on_show_page()

When the page loads render the body content.

render_dashboard_body()

render_dashboard_body() 

Method render_dashboard_body()

Render the Dashboard Body content.

render_screen_options()

render_screen_options() : void

Method render_screen_options()

Render Page Settings.

mainwp_help_content()

mainwp_help_content() : void

Method mainwp_help_content()

Hook the section help content to the Help Sidebar element