Properties

$instance

$instance : mixed

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

Type

mixed — Default null

$demo_website_ids

$demo_website_ids : mixed

Protected static variable to hold the single instance of the demo website ids.

Type

mixed — Default array().

Methods

get_class_name()

get_class_name() : \MainWP\Dashboard\__CLASS__

Get Class Name

Returns

\MainWP\Dashboard\__CLASS__

get_instance()

get_instance() : mixed

Return the single instance of the class.

Returns

mixed —

$instance The single instance of the class.

init_data_demo()

init_data_demo() 

Method init_data_demo()

Handle init data mode.

is_instawp_site()

is_instawp_site() 

Handle detect if it's instawp site.

import_data_demo()

import_data_demo() 

Method import_data_demo()

Handle import data demo.

delete_data_demo()

delete_data_demo() 

Method delete_data_demo()

Handle delete demo data .

is_new_instance()

is_new_instance() 

Method delete_data_demo()

Handle delete demo data .

is_demo_website()

is_demo_website(array  $website) 

Method is_demo_website()

Check if website is demo data.

Parameters

array $website

Site to check.

get_open_site_demo_url()

get_open_site_demo_url(mixed  $website) 

Method get_open_site_demo_url()

Render open site demo url.

Parameters

mixed $website

Site.

is_demo_mode()

is_demo_mode() : boolean

Method is_demo_mode()

Check if mainwp is demo mode.

Returns

boolean —

True if demo mode, else False.

render_demo_disable_button()

render_demo_disable_button(string  $content, boolean  $echo_out = true) : mixed

Method render_demo_disable_button()

Handle render disable demo buttons.

Parameters

string $content

html content.

boolean $echo_out

to echo or return.

Returns

mixed —

Button or echo.

get_markup_str()

get_markup_str() : string

Method get_markup_str()

Get demo markup string.

Returns

string —

markup string.

get_demo_tooltip()

get_demo_tooltip() 

Method get_demo_notice()

Get demo message to notice.

get_demo_notice()

get_demo_notice() 

Method get_demo_notice()

Get demo message to notice.

handle_action_demo()

handle_action_demo(object  $pWebsite, string  $what) 

Method handle_action_demo()

Handle action for demo website.

Parameters

object $pWebsite

The demo site.

string $what

action.

handle_fetch_urls_demo()

handle_fetch_urls_demo(mixed  $data, object  $website, mixed  $output) 

Method handle_fetch_urls_demo()

Handle action for demo website.

Parameters

mixed $data

action.

object $website

The demo site.

mixed $output

output.

clear_session_cached_demo_data()

clear_session_cached_demo_data() 

Method clear_session_cached_demo_data()

Handle clear session cached demo data.

add_demo_client()

add_demo_client(array  $params, array  $selected_sites) 

Method add_demo_client()

Handle to add demo Client.

Parameters

array $params

Array of data.

array $selected_sites

client sites ids.

add_demo_contact()

add_demo_contact(array  $params, integer  $client_id) 

Method add_demo_contact()

Handle to add demo contact.

Parameters

array $params

Array of data.

integer $client_id

client id.

add_demo_website()

add_demo_website(array  $params) 

Method add_demo_website()

Handle add demo website data.

Parameters

array $params

Array of demo Site to add.

add_demo_wp_option()

add_demo_wp_option(array  $data_rows, \MainWP\Dashboard\index  $index, \MainWP\Dashboard\index  $websiteid) 

Method add_demo_wp_option()

Handle add demo website options data.

Parameters

array $data_rows

Array of Site options.

\MainWP\Dashboard\index $index

index of data.

\MainWP\Dashboard\index $websiteid

website id.

add_demo_none_mainwp_action()

add_demo_none_mainwp_action(array  $data_rows, \MainWP\Dashboard\index  $index, \MainWP\Dashboard\index  $websiteid) 

Method add_demo_none_mainwp_action()

Handle add demo none mainwp actions.

Parameters

array $data_rows

Array of actions.

\MainWP\Dashboard\index $index

index of data.

\MainWP\Dashboard\index $websiteid

website id.