| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class AAPanelBackup extends AAPanelConnect |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Class Construct |
||
| 16 | */ |
||
| 17 | public function __construct() |
||
| 18 | { |
||
| 19 | parent::__construct(); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @description List Backup |
||
| 24 | * @param int $limit |
||
| 25 | * @param $search |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function List(int $limit = 100, $search = null): mixed |
||
| 29 | { |
||
| 30 | $url = $this->serverUrl .'/data?action=getData&table=backup'; |
||
| 31 | |||
| 32 | $this->data['limit'] = $limit; |
||
| 33 | $this->data['type'] = 0; |
||
| 34 | $this->data['search'] = $search; |
||
| 35 | return (parent::Execute($url,$this->data)); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @description Create Backup |
||
| 40 | * @param $id |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function Create($id): mixed |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @description Delete Backup |
||
| 53 | * @param $id |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function Delete($id): mixed |
||
| 62 | } |
||
| 63 | } |