\pm_Backup_Manager

Manager of backups for extension.

Summary

Methods
Properties
Constants
getBackupUrl()
getListUrl()
activateStorage()
No public properties found
OBJECT_TYPE_SERVER
OBJECT_TYPE_RESELLER
OBJECT_TYPE_CLIENT
OBJECT_TYPE_DOMAIN
No protected methods found
No protected properties found
N/A

Constants

OBJECT_TYPE_SERVER

OBJECT_TYPE_SERVER

OBJECT_TYPE_RESELLER

OBJECT_TYPE_RESELLER

OBJECT_TYPE_CLIENT

OBJECT_TYPE_CLIENT

OBJECT_TYPE_DOMAIN

OBJECT_TYPE_DOMAIN

Methods

getBackupUrl()

getBackupUrl(integer  $domainId, string  $context) : string

Retrieve backup form URL

Parameters

integer $domainId
string $context

Returns

string

getListUrl()

getListUrl(  $domainId,   $marker) : string

Retrieve backups list URL

Parameters

$domainId
$marker

Returns

string

activateStorage()

activateStorage(string  $objectType,   $objectId = null) 

Activate storage of extension

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

string $objectType
$objectId

Throws

\pm_Exception