| 1 |
<?php |
| 2 |
|
| 3 |
namespace ImageOptimization\Modules\Backups; |
| 4 |
|
| 5 |
use ImageOptimization\Classes\Module_Base; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
class Module extends Module_Base { |
| 12 |
public function get_name(): string { |
| 13 |
return 'backups'; |
| 14 |
} |
| 15 |
|
| 16 |
public static function routes_list() : array { |
| 17 |
return [ |
| 18 |
'Remove_Backups', |
| 19 |
'Restore_Single', |
| 20 |
'Restore_All', |
| 21 |
]; |
| 22 |
} |
| 23 |
|
| 24 |
public static function component_list() : array { |
| 25 |
return [ |
| 26 |
'Handle_Backups_Removing', |
| 27 |
'Restore_Images', |
| 28 |
]; |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* Module constructor. |
| 33 |
*/ |
| 34 |
public function __construct() { |
| 35 |
$this->register_components(); |
| 36 |
$this->register_routes(); |
| 37 |
} |
| 38 |
} |
| 39 |
|