Properties

$instance

$instance : null

Holds the Public static instance of MainWP_Child_WPvivid_BackupRestore.

Type

null — default null.

$is_plugin_installed

$is_plugin_installed : boolean

Whether WPvivid Plugin is installed or not.

Type

boolean — default false.

$public_intetface

$public_intetface : object

Interface variable.

Type

object — WPvivid_Public_Interface

Methods

__construct()

__construct() 

MainWP_Child_WPvivid_BackupRestore constructor.

Run any time class is called.

init()

init() 

MainWP_Child_WPvivid_BackupRestore initiator.

sync_others_data()

sync_others_data(array  $information, array  $data = array()) : array

Sync other data from $data[] and merge with $information[]

Parameters

array $information

Stores the returned information.

array $data

Other data to sync.

Throws

\MainWP\Child\Exception

Error message.

Returns

array —

$information Returned information array with both sets of data.

action()

action() 

Perform specific WPvivid actions.

post_mainwp_data()

post_mainwp_data(string  $data) : mixed

Post MainWP data.

Parameters

string $data

Data to post.

Returns

mixed —

$ret Returned response.

prepare_backup()

prepare_backup() : mixed

Prepare backup.

Returns

mixed —

$ret Returned response.

backup_now()

backup_now() : mixed

Backup now.

Returns

mixed —

$ret Returned response.

get_status()

get_status() : mixed

Get status.

Returns

mixed —

$ret Returned response.

get_backup_schedule()

get_backup_schedule() : mixed

Get backup schedule.

Returns

mixed —

$ret Returned response.

get_backup_list()

get_backup_list() : mixed

Get backup list.

Returns

mixed —

$ret Returned response.

get_default_remote()

get_default_remote() : mixed

Get default remote destination.

Returns

mixed —

$ret Returned response.

delete_backup()

delete_backup() : mixed

Delete backup.

Returns

mixed —

$ret Returned response.

delete_backup_array()

delete_backup_array() : mixed

Delete backup array.

Returns

mixed —

$ret Returned response.

set_security_lock()

set_security_lock() : mixed

Set security lock.

Returns

mixed —

$ret Returned response.

view_log()

view_log() : mixed

View log file.

Returns

mixed —

$ret Returned response.

read_last_backup_log()

read_last_backup_log() : mixed

Read the last backup log entry.

Returns

mixed —

$ret Returned response.

view_backup_task_log()

view_backup_task_log() : mixed

View backup task log.

Returns

mixed —

$ret Returned response.

backup_cancel()

backup_cancel() : mixed

Cancel backup schedule.

Returns

mixed —

$ret Returned response.

init_download_page()

init_download_page() : mixed

Initiate download page.

Returns

mixed —

$ret Returned response.

prepare_download_backup()

prepare_download_backup() : mixed

Prepare backup download.

Returns

mixed —

$ret Returned response.

get_download_task()

get_download_task() : mixed

Get download task.

Returns

mixed —

$ret Returned response.

download_backup()

download_backup() : mixed

Download Backup.

Returns

mixed —

$ret Returned response.

set_general_setting()

set_general_setting() : mixed

Set general settings.

Returns

mixed —

$ret Returned response.

set_schedule()

set_schedule() : mixed

Set backup schedule.

Returns

mixed —

$ret Returned response.

set_remote()

set_remote() : mixed

Set remote destination.

Returns

mixed —

$ret Returned response.