PHP Class 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.
Inheritance: extends DataObject
Afficher le fichier Open project: silverstripe/deploynaut Class Usage Examples

Protected Properties

Свойство Type Description
$backupBeforePush boolean When running the transfer, should a backup be performed before pushing the data?

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
logfile ( ) : string Return a path to the log file.

Method Details

IsBackupDataTransfer() public méthode

Is this transfer an automated backup prior to a push transfer or deployment?
public IsBackupDataTransfer ( ) : boolean
Résultat boolean

LogContent() public méthode

public LogContent ( ) : string
Résultat string

ResqueStatus() public méthode

Returns the status of the resque job
public ResqueStatus ( ) : string
Résultat string

canView() public méthode

public canView ( Member | null $member = null ) : boolean
$member Member | null
Résultat boolean

getCMSFields() public méthode

public getCMSFields ( )

getDefaultSearchContext() public méthode

getDescription() public méthode

public getDescription ( )

getModeNice() public méthode

public getModeNice ( )

getTitle() public méthode

public getTitle ( )

log() public méthode

public log ( ) : DeploynautLogFile
Résultat DeploynautLogFile

logfile() protected méthode

Return a path to the log file.
protected logfile ( ) : string
Résultat string

map_resque_status() public static méthode

public static map_resque_status ( integer $int ) : string
$int integer
Résultat string

setBackupBeforePush() public méthode

public setBackupBeforePush ( boolean $value )
$value boolean

start() public méthode

Queue a transfer job
public start ( )

Property Details

$backupBeforePush protected_oe property

When running the transfer, should a backup be performed before pushing the data?
protected bool $backupBeforePush
Résultat boolean