anonymize plugin standard files

master
Jean-Christian Paul Denis 2023-01-07 16:22:42 +01:00
parent fc2a12cae8
commit 914722068d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
6 changed files with 24 additions and 20 deletions

View File

@ -12,6 +12,9 @@
*/
declare(strict_types=1);
if (Dotclear\Plugin\improve\Admin::init()) {
Dotclear\Plugin\improve\Admin::process();
$admin = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Admin']);
if ($admin::init()) {
return $admin::process();
}
return null;

View File

@ -12,11 +12,8 @@
*/
declare(strict_types=1);
if (!defined('DC_CONTEXT_MODULE')) {
return null;
}
if (Dotclear\Plugin\improve\Config::init()) {
Dotclear\Plugin\improve\Config::process();
Dotclear\Plugin\improve\Config::render();
$config = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Config']);
if ($config::init()) {
$config::process();
$config::render();
}

View File

@ -12,8 +12,9 @@
*/
declare(strict_types=1);
if (Dotclear\Plugin\improve\Install::init()) {
return Dotclear\Plugin\improve\Install::process();
$install = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Install']);
if ($install::init()) {
return $install::process();
}
return null;

View File

@ -12,10 +12,11 @@
*/
declare(strict_types=1);
if (!class_exists('Dotclear\Plugin\improve\Prepend')) {
require __DIR__ . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Prepend.php';
$prepend = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Prepend']);
if (!class_exists($prepend)) {
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Prepend.php']);
if (Dotclear\Plugin\improve\Prepend::init()) {
Dotclear\Plugin\improve\Prepend::process();
if ($prepend::init()) {
$prepend::process();
}
}

View File

@ -12,6 +12,7 @@
*/
declare(strict_types=1);
if (Dotclear\Plugin\improve\Uninstall::init()) {
Dotclear\Plugin\improve\Uninstall::process($this);
$uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
if ($uninstall::init()) {
$uninstall::process($this);
}

View File

@ -12,7 +12,8 @@
*/
declare(strict_types=1);
if (Dotclear\Plugin\improve\Manage::init()) {
Dotclear\Plugin\improve\Manage::process();
Dotclear\Plugin\improve\Manage::render();
$manage = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Manage']);
if ($manage::init()) {
$manage::process();
$manage::render();
}