Calls
1 week ago
.htaccess
1 year ago
Ajax.php
1 week ago
ListRecord.php
1 year ago
aAjax.php
1 year ago
iAjax.php
1 year ago
index.html
1 year ago
web.config
1 year ago
iAjax.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup\Ajax; |
| 4 | |
| 5 | use JetBackup\Exception\AjaxException; |
| 6 | use JetBackup\Exception\JBException; |
| 7 | |
| 8 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 9 | |
| 10 | interface iAjax { |
| 11 | /** |
| 12 | * @param array $data |
| 13 | * |
| 14 | * @return void |
| 15 | */ |
| 16 | public function setData(array $data=[]): void; |
| 17 | |
| 18 | /** |
| 19 | * @param bool $cli |
| 20 | * |
| 21 | * @return void |
| 22 | */ |
| 23 | public function setCLI(bool $cli): void; |
| 24 | |
| 25 | /** |
| 26 | * @return void |
| 27 | * @throws AjaxException |
| 28 | * @throws JBException |
| 29 | */ |
| 30 | public function execute():void; |
| 31 | |
| 32 | /** |
| 33 | * @return array |
| 34 | */ |
| 35 | public function getResponseData(): array; |
| 36 | |
| 37 | /** |
| 38 | * @return string |
| 39 | */ |
| 40 | public function getResponseMessage(): string; |
| 41 | } |