Свойство | Тип | Описание | |
---|---|---|---|
$collected_class | string | ||
$url | string |
Метод | Описание | |
---|---|---|
cancelBackupSchedule ( ) | Cancels an environment's regular backup schedule | |
create ( array $arg_options = [] ) : Workflow | Creates a backup | |
fetch ( array $options = [] ) : |
Fetches model data from API and instantiates its model instances | |
getBackupByFileName ( string $filename ) : Backup | Fetches backup for a specified filename | |
getBackupSchedule ( ) : array | Retrieves an environment's regular backup schedule | |
getBackupsByElement ( string $element = null ) : Backup[] | Lists all backups for a specific element. | |
getFinishedBackups ( string $element = null ) : Backup[] | Filters the backups for only ones which have finished | |
getValidElements ( ) : string[] | Valid backup types | |
setBackupSchedule ( array $options = ['day' => null, 'hour' => null] ) : Workflow | Sets an environment's regular backup schedule |
Метод | Описание | |
---|---|---|
getDayNumber ( string $day ) : integer | Retrieve an integer representing a the day of the week |
public cancelBackupSchedule ( ) |
public getBackupByFileName ( string $filename ) : Backup | ||
$filename | string | Name of the file name to filter by |
Результат | Backup |
public getBackupSchedule ( ) : array | ||
Результат | array | $schedule Elements as follows: - daily_backup_time: string - weekly_backup_day: string |
public getBackupsByElement ( string $element = null ) : Backup[] | ||
$element | string | Name of the element type to filter by |
Результат | Backup[] |
protected getDayNumber ( string $day ) : integer | ||
$day | string | The day of the week |
Результат | integer | 0 = Sunday, 6 = Saturday |
public getFinishedBackups ( string $element = null ) : Backup[] | ||
$element | string | Element requested (i.e. code, db, or files) |
Результат | Backup[] | An array of Backup objects |
public getValidElements ( ) : string[] | ||
Результат | string[] | An array of valid elements |
public setBackupSchedule ( array $options = ['day' => null, 'hour' => null] ) : Workflow | ||
$options | array | Elements as follow: string day A day of the week integer hour Hour of the day to run the backups at, 0 = 00:00 23 = 23:00 |
Результат | Workflow |