PHP Класс DNDataTransfer

It can be one of two directions: - Backup: Package up data on an environment and store it in a local file - Restore: Transfer data from a local file into an environment, extract assets and/or restore a database The choice of database and/or assets is represented in the "Mode". There's always one file archive involved (stored as the has_one "ArchiveFile") on the local Deploynaut environment. Each transfer is executed by a Resque job, so the model also contains a reference to a Resque token (which might still be in progress). The "Environment" points to the source or target involved.
Наследование: extends DataObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$backupBeforePush boolean When running the transfer, should a backup be performed before pushing the data?

Открытые методы

Метод Описание
IsBackupDataTransfer ( ) : boolean Is this transfer an automated backup prior to a push transfer or deployment?
Link ( )
LogContent ( ) : string
LogLink ( )
ResqueStatus ( ) : string Returns the status of the resque job
canView ( Member | null $member = null ) : boolean
getCMSFields ( )
getDefaultSearchContext ( )
getDescription ( )
getModeNice ( )
getTitle ( )
log ( ) : DeploynautLogFile
map_resque_status ( integer $int ) : string
setBackupBeforePush ( boolean $value )
start ( ) Queue a transfer job

Защищенные методы

Метод Описание
logfile ( ) : string Return a path to the log file.

Описание методов

IsBackupDataTransfer() публичный Метод

Is this transfer an automated backup prior to a push transfer or deployment?
public IsBackupDataTransfer ( ) : boolean
Результат boolean

LogContent() публичный Метод

public LogContent ( ) : string
Результат string

ResqueStatus() публичный Метод

Returns the status of the resque job
public ResqueStatus ( ) : string
Результат string

canView() публичный Метод

public canView ( Member | null $member = null ) : boolean
$member Member | null
Результат boolean

getCMSFields() публичный Метод

public getCMSFields ( )

getDefaultSearchContext() публичный Метод

getDescription() публичный Метод

public getDescription ( )

getModeNice() публичный Метод

public getModeNice ( )

getTitle() публичный Метод

public getTitle ( )

log() публичный Метод

public log ( ) : DeploynautLogFile
Результат DeploynautLogFile

logfile() защищенный Метод

Return a path to the log file.
protected logfile ( ) : string
Результат string

map_resque_status() публичный статический Метод

public static map_resque_status ( integer $int ) : string
$int integer
Результат string

setBackupBeforePush() публичный Метод

public setBackupBeforePush ( boolean $value )
$value boolean

start() публичный Метод

Queue a transfer job
public start ( )

Описание свойств

$backupBeforePush защищенное свойство

When running the transfer, should a backup be performed before pushing the data?
protected bool $backupBeforePush
Результат boolean