PHP Класс Pantheon\Terminus\Models\Backup

Наследование: extends TerminusModel, implements Robo\Contract\ConfigAwareInterface, use trait Robo\Common\ConfigAwareTrait
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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