.htaccess
1 year ago
Progress.php
1 year ago
Queue.php
5 months ago
QueueItem.php
2 days ago
QueueItemBackup.php
5 months ago
QueueItemDownload.php
1 year ago
QueueItemExport.php
1 year ago
QueueItemExtract.php
1 year ago
QueueItemReindex.php
1 year ago
QueueItemRestore.php
1 year ago
QueueItemRetentionCleanup.php
1 year ago
QueueItemSystem.php
1 year ago
aQueueItem.php
1 year ago
index.html
1 year ago
web.config
1 year ago
QueueItemExport.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\Queue; |
| 4 | |
| 5 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 | |
| 7 | class QueueItemExport extends aQueueItem { |
| 8 | |
| 9 | const TYPE = 'type'; |
| 10 | const SNAPSHOT_ID = 'snapshot_id'; |
| 11 | const DOWNLOAD_ID = 'download_id'; |
| 12 | |
| 13 | public function setType(int $type):void { $this->set(self::TYPE, $type); } |
| 14 | public function getType():int { return (int) $this->get(self::TYPE, 0); } |
| 15 | |
| 16 | public function setSnapshotId(int $_id):void { $this->set(self::SNAPSHOT_ID, $_id); } |
| 17 | public function getSnapshotId():int { return (int) $this->get(self::SNAPSHOT_ID, 0); } |
| 18 | |
| 19 | public function setDownloadId(int $_id):void { $this->set(self::DOWNLOAD_ID, $_id); } |
| 20 | public function getDownloadId():int { return (int) $this->get(self::DOWNLOAD_ID, 0); } |
| 21 | |
| 22 | public function getDisplay():array { |
| 23 | return [ |
| 24 | self::TYPE => $this->getType(), |
| 25 | self::SNAPSHOT_ID => $this->getSnapshotId(), |
| 26 | self::DOWNLOAD_ID => $this->getDownloadId(), |
| 27 | ]; |
| 28 | } |
| 29 | } |
| 30 |