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
파일 보기 프로젝트 열기: silverstripe/deploynaut 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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