\MainWP\ChildMainWP_Child_DB_Updater_Elementor

Class MainWP_Child_DB_Updater_Elementor.

MainWP Database Updater extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
hook_db_updater_sync_data()
get_needs_db_update()
should_upgrade()
has_pro()
get_current_version()
get_new_version()
get_version_option_name()
update_db()
check_parent_method()
$instance
$is_plugin_elementor_installed
No constants found
get_update_db_manager_class()
do_db_upgrade()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : mixed

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

Type

mixed — Default null

$is_plugin_elementor_installed

$is_plugin_elementor_installed : boolean

Public variable to hold the infomration if the WooCommerce plugin is installed on the child site.

Type

boolean — If WooCommerce intalled, return true, if not, return false.

Methods

instance()

instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

__construct()

__construct() : void

Constructor.

Run any time class is called.

hook_db_updater_sync_data()

hook_db_updater_sync_data(array  $db_upgrades) : array

Get sync data.

Parameters

array $db_upgrades

Input sync data.

Returns

array —

$db_upgrades Return data array.

get_needs_db_update()

get_needs_db_update(boolean  $pro = false) : boolean

Is a DB update needed?

Parameters

boolean $pro

Pro version or not.

Returns

boolean

should_upgrade()

should_upgrade(boolean  $pro = false) : boolean

Method should_upgrade().

Get should upgrade.

Parameters

boolean $pro

Pro version or not.

Returns

boolean —

version compare result.

has_pro()

has_pro() 

Method has_pro().

Has pro version.

get_current_version()

get_current_version(boolean  $pro = false) : string

Method get_current_version().

Get current version.

Parameters

boolean $pro

Pro version or not.

Returns

string —

version result.

get_new_version()

get_new_version(boolean  $pro = false) : string

Method get_new_version().

Get new elementor version.

Parameters

boolean $pro

Pro version or not.

Returns

string —

version result.

get_version_option_name()

get_version_option_name(boolean  $pro = false) : string

Method get_version_option_name().

Get version option name.

Parameters

boolean $pro

Pro version or not.

Returns

string —

option name.

update_db()

update_db(boolean  $pro = false) : array

Method update_db()

Update Elementor DB.

Parameters

boolean $pro

Pro version or not.

Returns

array —

Action result.

check_parent_method()

check_parent_method(mixed  $obj, string  $func) : array

Method check_parent_method().

Check parent method.

Parameters

mixed $obj

Object to check.

string $func

Function to check.

Returns

array —

Action result.

get_update_db_manager_class()

get_update_db_manager_class(boolean  $pro = false) : array

Method get_update_db_manager_class()

Get update db manager class.

Parameters

boolean $pro

Pro version or not.

Returns

array —

Action result.

do_db_upgrade()

do_db_upgrade(boolean  $pro = false) : array

Method do_db_upgrade()

Do DB upgrade.

Parameters

boolean $pro

Pro version or not.

Returns

array —

Action result.