Ajax
8 months ago
BackgroundProcessing
1 year ago
Dto
8 months ago
Entity
10 months ago
Exceptions
1 year ago
Interfaces
1 year ago
Job
8 months ago
Request
1 year ago
Service
8 months ago
Storage
8 months ago
Task
8 months ago
Traits
10 months ago
AfterRestore.php
1 year ago
BackupDeleter.php
1 year ago
BackupDownload.php
8 months ago
BackupFileIndex.php
1 year ago
BackupGlitchReason.php
1 year ago
BackupHeader.php
8 months ago
BackupRepairer.php
1 year ago
BackupRetentionHandler.php
1 year ago
BackupScheduler.php
11 months ago
BackupServiceProvider.php
10 months ago
BackupValidator.php
8 months ago
FileHeader.php
8 months ago
FileHeaderAttribute.php
2 years ago
WithBackupIdentifier.php
1 year ago
FileHeaderAttribute.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Backup; |
| 4 | |
| 5 | /** |
| 6 | * FileHeader has 2 bytes field reserved for attributes. That can contain attributes about the file like compressed, encrypted etc. |
| 7 | * This class contains the attributes that can be set in that attribute field. |
| 8 | * Each const in this class should be in 16-bit (2 bytes) representation. |
| 9 | */ |
| 10 | class FileHeaderAttribute |
| 11 | { |
| 12 | const COMPRESSED = 0b0000000000000001; |
| 13 | |
| 14 | const REQUIRE_PREVIOUS_PART = 0b0000000000000010; |
| 15 | |
| 16 | const REQUIRE_NEXT_PART = 0b0000000000000100; |
| 17 | } |
| 18 |