\MainWP\Dashboard\Module\ApiBackupsApi_Backups_Handler

MainWP API Backups Handler

Summary

Methods
Properties
Constants
get_instance()
__construct()
admin_init()
ajax_backups_selected_websites()
backups_selected_site()
send_backups_response()
send_bulk_backups_error()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$instance

$instance : mixed

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

Type

mixed — Default null

Methods

get_instance()

get_instance() : \MainWP\Dashboard\Module\ApiBackups\instance.

Get Instance

Creates public static instance.

Returns

\MainWP\Dashboard\Module\ApiBackups\instance.

__construct()

__construct() 

Constructor.

Run each time the class is called.

admin_init()

admin_init() 

Init ajax actions.

ajax_backups_selected_websites()

ajax_backups_selected_websites() : void

Bulk Action: action backup.

Perform a backup on the selected Child Site.

backups_selected_site()

backups_selected_site(boolean  $die_output = true) : mixed

Backups selected site.

Parameters

boolean $die_output

Die to output.

Returns

mixed

send_backups_response()

send_backups_response(boolean  $success = true, mixed  $error = '') : void

Send backups response.

Parameters

boolean $success

Suceess or not.

mixed $error

error.

send_bulk_backups_error()

send_bulk_backups_error(boolean  $success = true, mixed  $error = '') : void

Send bulk backups error.

Parameters

boolean $success

Suceess or not.

mixed $error

error.