Properties

$subPages

$subPages : \MainWP\Dashboard\undefined

Subpages variable.

Type

\MainWP\Dashboard\undefined — Subpages variable.

$hideSubmenuBackups

$hideSubmenuBackups : boolean

Whether or not to show the Backups Submenu.

Type

boolean — true|false, .

$instance

$instance : null

Instance variable.

Type

null — Instance variable.

Methods

get_class_name()

get_class_name() : string

Get Class Name.

Returns

string —

CLASS

instance()

instance() : self

Create instance.

Returns

self —

$instance.

init()

init() 

Instantiate Hooks.

init_menu()

init_menu() : void

Instantiate Legacy Backups Menu.

init_subpages_menu()

init_subpages_menu() 

Instantiate legacy backups subpages.

init_left_menu()

init_left_menu(array  $subPages = array(), boolean  $enableLegacyBackup = true) 

Instantiate Legacy Backups Menu.

Parameters

array $subPages

Legacy Backup Subpages.

boolean $enableLegacyBackup

ture|false, whether or not to enable menu.

render_header()

render_header(string  $shownPage = '') 

Render MainWP Legacy Backups Page Header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Render MainWP Legacy Backups Footer.

display()

display(mixed  $backup_items) 

Render MainWP Legacy Backups Table.

Parameters

mixed $backup_items

List Item.

single_row()

single_row(mixed  $item, mixed  $columns) 

Single row Content.

Parameters

mixed $item

Item to go in column.

mixed $columns

Columns Array.

column_actions()

column_actions(mixed  $item) : string

Column Actions.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_task_name()

column_task_name(mixed  $item) : string

Column Task Name.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_type()

column_type(mixed  $item) : string

Column Type.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_schedule()

column_schedule(mixed  $item) : string

Column Schdule.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_destination()

column_destination(mixed  $item) : string

Column Destination.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_websites()

column_websites(mixed  $item) 

Column Websites.

Parameters

mixed $item

Item to go in column.

column_details()

column_details(mixed  $item) : string

Column Details.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

column_trigger()

column_trigger(mixed  $item) : string

Column Trigger.

Parameters

mixed $item

Item to go in column.

Returns

string —

Action content.

render_edit()

render_edit(mixed  $task) 

Render edit.

Parameters

mixed $task

Task to edit.

render_new()

render_new() 

Render New Task Form.

render_new_edit()

render_new_edit(mixed  $task) 

Render New edit Form.

Parameters

mixed $task

Task to edit.

render_task_details()

render_task_details(mixed  $task, mixed  $globalArchiveFormatText, mixed  $archiveFormat, mixed  $useGlobal, mixed  $useSite) 

Render Task Details.

Parameters

mixed $task

Task to perform.

mixed $globalArchiveFormatText

Global Archived Format Text.

mixed $archiveFormat

Archive Format.

mixed $useGlobal

Use Global.

mixed $useSite

Use Site.

render_settings()

render_settings() 

Method render_settings()

Render backup settings.