MainWP Child Documentation

MainWP_Child_DB_Updater
in package

Class MainWP_Child_DB_Updater

MainWP Database Updater extension handler.

Table of Contents

Properties

$instance  : mixed
Public static variable to hold the single instance of the class.

Methods

__construct()  : void
Constructor.
action()  : mixed
Method action()
get_sync_data()  : mixed
Get sync data.
instance()  : mixed
Method instance()
sync_others_data()  : array<string|int, mixed>
Method sync_others_data()
update_db()  : array<string|int, mixed>
Method update_db()

Properties

$instance

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

public static mixed $instance = null

Default null

Methods

instance()

Method instance()

public static instance() : mixed

Create a public static instance.

Return values
mixed

Class instance.

sync_others_data()

Method sync_others_data()

public sync_others_data(array<string|int, mixed> $information[, array<string|int, mixed> $data = array() ]) : array<string|int, mixed>

Sync data to & from the MainWP Dashboard.

Parameters
$information : array<string|int, mixed>

Array containing the data to be sent to the Dashboard.

$data : array<string|int, mixed> = array()

Array containing the data sent from the Dashboard; to be saved to the Child Site.

Return values
array<string|int, mixed>

$information Array containing the data to be sent to the Dashboard.

update_db()

Method update_db()

public update_db() : array<string|int, mixed>

Update DB.

Return values
array<string|int, mixed>

Action result.


        
On this page

Search results