pm_Backup_Manager
in package
Manager of backups for extension.
Tags
Table of Contents
- OBJECT_TYPE_CLIENT = 'client'
- OBJECT_TYPE_DOMAIN = 'domain'
- OBJECT_TYPE_RESELLER = 'reseller'
- OBJECT_TYPE_SERVER = 'server'
- activateStorage() : void
- Activate storage of extension
- getBackupUrl() : string
- Retrieve backup form URL
- getDumpsDir() : string
- Returns an absolute path to the local backups directory.
- getListUrl() : string
- Retrieve backups list URL
- getLogsDir() : string
- Returns an absolute path to the logs directory.
Constants
OBJECT_TYPE_CLIENT
public
mixed
OBJECT_TYPE_CLIENT
= 'client'
Tags
OBJECT_TYPE_DOMAIN
public
mixed
OBJECT_TYPE_DOMAIN
= 'domain'
Tags
OBJECT_TYPE_RESELLER
public
mixed
OBJECT_TYPE_RESELLER
= 'reseller'
Tags
OBJECT_TYPE_SERVER
public
mixed
OBJECT_TYPE_SERVER
= 'server'
Tags
Methods
activateStorage()
Activate storage of extension
public
static activateStorage(string $objectType[, int|null $objectId = null ]) : void
Object type is the one of
- pm_Backup_Manager::OBJECT_TYPE_SERVER
- pm_Backup_Manager::OBJECT_TYPE_RESELLER
- pm_Backup_Manager::OBJECT_TYPE_CLIENT
- pm_Backup_Manager::OBJECT_TYPE_DOMAIN
Parameters
- $objectType : string
- $objectId : int|null = null
Tags
Return values
void —getBackupUrl()
Retrieve backup form URL
public
static getBackupUrl(int $domainId, string $context) : string
Parameters
- $domainId : int
- $context : string
Return values
string —getDumpsDir()
Returns an absolute path to the local backups directory.
public
static getDumpsDir() : string
Tags
Return values
string —getListUrl()
Retrieve backups list URL
public
static getListUrl(int $domainId, string $marker) : string
Parameters
- $domainId : int
- $marker : string
Return values
string —getLogsDir()
Returns an absolute path to the logs directory.
public
static getLogsDir() : string