mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 08:52:46 +08:00
* [APP-1401] clear cache on update * [APP-1401] clear cache on update * [APP-1401] clear cache on update * [APP-1401] clear cache on update
46 lines
881 B
PHP
46 lines
881 B
PHP
<?php
|
|
|
|
namespace EA11y\Modules\Remediation;
|
|
|
|
use EA11y\Classes\Module_Base;
|
|
use EA11y\Modules\Connect\Module as Connect;
|
|
use EA11y\Modules\Remediation\Database\Page_Table;
|
|
use EA11y\Modules\Remediation\Database\Remediation_Table;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
class Module extends Module_Base {
|
|
|
|
public function get_name(): string {
|
|
return 'remediation';
|
|
}
|
|
|
|
public static function is_active(): bool {
|
|
return Connect::is_connected();
|
|
}
|
|
|
|
public static function routes_list(): array {
|
|
return [
|
|
'Register',
|
|
'Set_Alt_Text',
|
|
'Items',
|
|
'Item',
|
|
];
|
|
}
|
|
|
|
public static function component_list(): array {
|
|
return [
|
|
'Remediation_Runner',
|
|
'Cache_Cleaner',
|
|
];
|
|
}
|
|
|
|
public function __construct() {
|
|
Page_Table::install();
|
|
Remediation_Table::install();
|
|
$this->register_routes();
|
|
$this->register_components();
|
|
}
|
|
}
|