Properties

$subPages

$subPages : array

Public static varable to hold Subpages information.

Type

array

Methods

get_class_name()

get_class_name() : \MainWP\Dashboard\__CLASS__

Get Class Name

Returns

\MainWP\Dashboard\__CLASS__

init()

init() 

Instantiate Hooks for the Settings Page.

admin_init()

admin_init() 

Run the export_sites method that exports the Child Sites .csv file

init_menu()

init_menu() 

Instantiate the Settings Menu.

init_subpages_menu()

init_subpages_menu() 

Instantiate Settings SubPages Menu.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Instantiate left menu

Settings Page & SubPage link data.

Parameters

array $subPages

SubPages Array.

render_header()

render_header(string  $shownPage = '') 

Render Page Header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer(string  $shownPage) 

Close the HTML container.

Parameters

string $shownPage

The page slug shown at this moment.

handle_settings_post()

handle_settings_post() : boolean

Method handle_settings_post().

This class handles the $_POST of Settings Options.

Returns

boolean —

True|False Posts On True.

get_websites_automatic_update_time()

get_websites_automatic_update_time() : mixed

Method get_websites_automatic_update_time()

Get websites automatic update time.

Returns

mixed —

array

get_next_time_automatic_update_to_show()

get_next_time_automatic_update_to_show() : mixed

Method get_next_time_automatic_update_to_show()

Get websites automatic update next time.

Returns

mixed —

array

show_openssl_lib_config()

show_openssl_lib_config() : mixed

Returns false or the location of the OpenSSL Lib File.

Returns

mixed —

false|opensslLibLocation

is_local_window_config()

is_local_window_config() : boolean

Check MainWP Installation Hosting Type & System Type.

Returns

boolean —

true|false

render_advanced()

render_advanced() 

Render Advanced Options Subpage.

render_mainwp_tools()

render_mainwp_tools() 

Render MainWP Tools SubPage.

render_rest_api()

render_rest_api() 

Render REST API SubPage

generate_random_string()

generate_random_string(integer  $length = 8) : string

Method generate_random_string()

Generate a random string.

Parameters

integer $length

Lenght of final string.

Returns

string —

$randomString Random String.

render_report_responder()

render_report_responder() 

Render Client Reports Responder.

mainwp_help_content()

mainwp_help_content() 

Hook the section help content to the Help Sidebar element