.htaccess
1 year ago
Destination.php
1 year ago
DestinationChunkedDownload.php
1 year ago
DestinationChunkedUpload.php
1 year ago
DestinationDirIterator.php
1 year ago
DestinationDiskUsage.php
1 year ago
DestinationFile.php
1 year ago
index.html
1 year ago
web.config
1 year ago
DestinationFile.php
100 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\Destination\Integration; |
| 4 | |
| 5 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 | |
| 7 | interface DestinationFile { |
| 8 | |
| 9 | const TYPE_UNKNOWN = 0; |
| 10 | const TYPE_FILE = 1; |
| 11 | const TYPE_DIRECTORY = 2; |
| 12 | const TYPE_LINK = 3; |
| 13 | const TYPE_BLOCK = 4; |
| 14 | const TYPE_FIFO = 5; |
| 15 | const TYPE_SOCKET = 6; |
| 16 | const TYPE_NETWORK = 7; |
| 17 | const TYPE_CHAR = 8; |
| 18 | |
| 19 | const TYPE_NAMES = [ |
| 20 | self::TYPE_UNKNOWN => "Unknown", |
| 21 | self::TYPE_FILE => "File", |
| 22 | self::TYPE_DIRECTORY => "Directory", |
| 23 | self::TYPE_LINK => "Link", |
| 24 | self::TYPE_BLOCK => "Block Device", |
| 25 | self::TYPE_FIFO => "Fifo", |
| 26 | self::TYPE_SOCKET => "Socket", |
| 27 | self::TYPE_NETWORK => "Network", |
| 28 | self::TYPE_CHAR => "Char", |
| 29 | ]; |
| 30 | |
| 31 | /** |
| 32 | * @return string |
| 33 | */ |
| 34 | public function getPath(): string; |
| 35 | |
| 36 | /** |
| 37 | * @return string |
| 38 | */ |
| 39 | public function getName(): string; |
| 40 | |
| 41 | /** |
| 42 | * @return string |
| 43 | */ |
| 44 | public function getFullPath(): string; |
| 45 | |
| 46 | /** |
| 47 | * @return int |
| 48 | */ |
| 49 | public function getType(): int; |
| 50 | |
| 51 | /** |
| 52 | * @return int |
| 53 | */ |
| 54 | public function getSize(): int; |
| 55 | |
| 56 | /** |
| 57 | * @return int |
| 58 | */ |
| 59 | public function getModifyTime(): int; |
| 60 | |
| 61 | /** |
| 62 | * @return string |
| 63 | */ |
| 64 | public function getOwner(): string; |
| 65 | |
| 66 | /** |
| 67 | * @return string |
| 68 | */ |
| 69 | public function getGroup(): string; |
| 70 | |
| 71 | /** |
| 72 | * @return int |
| 73 | */ |
| 74 | public function getPermissions(); |
| 75 | |
| 76 | /** |
| 77 | * @return string |
| 78 | */ |
| 79 | public function getLinkTarget(); |
| 80 | |
| 81 | /** |
| 82 | * @return string |
| 83 | */ |
| 84 | public function getFileId(); |
| 85 | |
| 86 | /** |
| 87 | * @return string |
| 88 | */ |
| 89 | public function getFilesDir(); |
| 90 | |
| 91 | /** |
| 92 | * @return string |
| 93 | */ |
| 94 | public function getFileData(); |
| 95 | |
| 96 | /** |
| 97 | * @return array |
| 98 | */ |
| 99 | public function getData(); |
| 100 | } |