PHP Class Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy

Inheritance: extends Spatie\Backup\Tasks\Cleanup\CleanupStrategy
Afficher le fichier Open project: spatie/laravel-backup

Protected Properties

Свойство Type Description
$newestBackup Spatie\Backup\BackupDestination\Backup

Méthodes publiques

Méthode Description
deleteOldBackups ( BackupCollection $backups )

Méthodes protégées

Méthode Description
calculateDateRanges ( ) : Collection
groupByDateFormat ( Collection $backups, string $dateFormat ) : Collection
removeBackupsForAllPeriodsExceptOne ( Collection $backupsPerPeriod )
removeBackupsOlderThan ( Carbon\Carbon $endDate, BackupCollection $backups )
removeOldBackupsUntilUsingLessThanMaximumStorage ( BackupCollection $backups )

Method Details

calculateDateRanges() protected méthode

protected calculateDateRanges ( ) : Collection
Résultat Illuminate\Support\Collection

deleteOldBackups() public méthode

public deleteOldBackups ( BackupCollection $backups )
$backups Spatie\Backup\BackupDestination\BackupCollection

groupByDateFormat() protected méthode

protected groupByDateFormat ( Collection $backups, string $dateFormat ) : Collection
$backups Illuminate\Support\Collection
$dateFormat string
Résultat Illuminate\Support\Collection

removeBackupsForAllPeriodsExceptOne() protected méthode

protected removeBackupsForAllPeriodsExceptOne ( Collection $backupsPerPeriod )
$backupsPerPeriod Illuminate\Support\Collection

removeBackupsOlderThan() protected méthode

protected removeBackupsOlderThan ( Carbon\Carbon $endDate, BackupCollection $backups )
$endDate Carbon\Carbon
$backups Spatie\Backup\BackupDestination\BackupCollection

removeOldBackupsUntilUsingLessThanMaximumStorage() protected méthode

protected removeOldBackupsUntilUsingLessThanMaximumStorage ( BackupCollection $backups )
$backups Spatie\Backup\BackupDestination\BackupCollection

Property Details

$newestBackup protected_oe property

protected Backup,Spatie\Backup\BackupDestination $newestBackup
Résultat Spatie\Backup\BackupDestination\Backup