PHP 클래스 Pantheon\Terminus\Models\Backup

상속: extends TerminusModel, implements Robo\Contract\ConfigAwareInterface, use trait Robo\Common\ConfigAwareTrait
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$environment environment

공개 메소드들

메소드 설명
__construct ( $attributes, array $options = [] )
backupIsFinished ( ) : boolean Determines whether the backup has been completed or not
getBucket ( ) : string Returns the bucket name for this backup
getDate ( ) : string Returns the date the backup was completed
getInitiator ( ) : string Returns the type of initiator of the backup
getSizeInMb ( ) : string Returns the size of the backup in MB
getUrl ( ) : string Gets the URL of a backup
restore ( ) : Workflow Restores this backup

보호된 메소드들

메소드 설명
parseAttributes ( $data )

메소드 상세

__construct() 공개 메소드

public __construct ( $attributes, array $options = [] )
$options array

backupIsFinished() 공개 메소드

Determines whether the backup has been completed or not
public backupIsFinished ( ) : boolean
리턴 boolean True if backup is completed.

getBucket() 공개 메소드

Returns the bucket name for this backup
public getBucket ( ) : string
리턴 string

getDate() 공개 메소드

Returns the date the backup was completed
public getDate ( ) : string
리턴 string Timestamp completion time or "Pending"

getInitiator() 공개 메소드

Returns the type of initiator of the backup
public getInitiator ( ) : string
리턴 string Either "manual" or "automated"

getSizeInMb() 공개 메소드

Returns the size of the backup in MB
public getSizeInMb ( ) : string
리턴 string A number (an integer or a float) followed by 'MB'.

getUrl() 공개 메소드

Gets the URL of a backup
public getUrl ( ) : string
리턴 string

parseAttributes() 보호된 메소드

protected parseAttributes ( $data )

restore() 공개 메소드

Restores this backup
public restore ( ) : Workflow
리턴 Workflow

프로퍼티 상세

$environment 공개적으로 프로퍼티

public environment $environment
리턴 environment