| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/image-optimization/modules/backups/ |
Upload File : |
<?php
namespace ImageOptimization\Modules\Backups;
use ImageOptimization\Classes\Module_Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends Module_Base {
public function get_name(): string {
return 'backups';
}
public static function routes_list() : array {
return [
'Remove_Backups',
'Restore_Single',
'Restore_All',
];
}
public static function component_list() : array {
return [
'Handle_Backups_Removing',
'Restore_Images',
];
}
/**
* Module constructor.
*/
public function __construct() {
$this->register_components();
$this->register_routes();
}
}