PHP Class Pantheon\Terminus\Models\Backup

Inheritance: extends TerminusModel, implements Robo\Contract\ConfigAwareInterface, use trait Robo\Common\ConfigAwareTrait
Afficher le fichier Open project: pantheon-systems/terminus Class Usage Examples

Méthodes publiques

Свойство Type Description
$environment environment

Méthodes publiques

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

Méthodes protégées

Méthode Description
parseAttributes ( $data )

Method Details

__construct() public méthode

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

backupIsFinished() public méthode

Determines whether the backup has been completed or not
public backupIsFinished ( ) : boolean
Résultat boolean True if backup is completed.

getBucket() public méthode

Returns the bucket name for this backup
public getBucket ( ) : string
Résultat string

getDate() public méthode

Returns the date the backup was completed
public getDate ( ) : string
Résultat string Timestamp completion time or "Pending"

getInitiator() public méthode

Returns the type of initiator of the backup
public getInitiator ( ) : string
Résultat string Either "manual" or "automated"

getSizeInMb() public méthode

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

getUrl() public méthode

Gets the URL of a backup
public getUrl ( ) : string
Résultat string

parseAttributes() protected méthode

protected parseAttributes ( $data )

restore() public méthode

Restores this backup
public restore ( ) : Workflow
Résultat Workflow

Property Details

$environment public_oe property

public environment $environment
Résultat environment