\MainWP\Dashboard\Module\ApiBackupsApi_Backups_Admin

Class Api_Backups_Admin

Summary

Methods
Properties
Constants
get_instance()
get_class_name()
__construct()
admin_init()
hook_getprimarybackup_methods()
hook_managesites_getbackuplink()
hook_mainwp_log_specific_actions()
update_check()
init_menu()
init_left_menu()
render_header()
$version
$update_version
$page
$subPages
$instance
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$version

$version : string

Version string number.

Type

string — Version.

$update_version

$update_version : string

Update version string number.

Type

string — Update version.

$page

$page : string

Current page.

Type

string — Current page.

$subPages

$subPages : mixed

Variable to hold the Sub Pages.

Type

mixed — Sub Page, default null.

$instance

$instance : mixed

Static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Get Class Name.

Returns

string —

CLASS

__construct()

__construct() 

Constructor

Runs each time the class is called.

admin_init()

admin_init() 

Method admin_init() initiated by init()

Enqueue scripts and styles.

hook_getprimarybackup_methods()

hook_getprimarybackup_methods(array  $input) : array

Method hook_getprimarybackup_methods().

Parameters

array $input

Input values.

Returns

array —

$input

hook_managesites_getbackuplink()

hook_managesites_getbackuplink(array  $input, integer  $site_id, integer  $last_primary_backup, string  $primary_backup = '') : array

Handle @filter hook_managesites_getbackuplink().

Parameters

array $input

Input values.

integer $site_id

Site id.

integer $last_primary_backup

Last time primary backup.

string $primary_backup

Primary backup method.

Returns

array —

$input

hook_mainwp_log_specific_actions()

hook_mainwp_log_specific_actions(array  $input) : array

Method hook_mainwp_log_specific_actions().

Parameters

array $input

Input values.

Returns

array —

$input

update_check()

update_check() 

Method update_check().

Handle update db values if needed .

init_menu()

init_menu() 

Method init_menu()

Add Insights Overview sub menu "Insights".

init_left_menu()

init_left_menu(array  $subPages) 

Initiates API Backups menu.

Parameters

array $subPages

API Backups sub pages.

render_header()

render_header() 

Method render_header()

Render page header.