From 58bfee6d6041fbb95b7234387972203eb16e7d19 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 15 Jul 2023 23:56:37 +0200 Subject: [PATCH] add some deprecated --- src/Task/dcdeprecated/dc2.26.php | 35 ++++++++++++++++++++++++++++++++ src/Task/dcdeprecated/dc2.27.php | 5 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/Task/dcdeprecated/dc2.26.php diff --git a/src/Task/dcdeprecated/dc2.26.php b/src/Task/dcdeprecated/dc2.26.php new file mode 100644 index 0000000..8c559ae --- /dev/null +++ b/src/Task/dcdeprecated/dc2.26.php @@ -0,0 +1,35 @@ + [ + ['Clearbricks::lib\(', 'Clearbricks::lib()', __('namespaces'), '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['Clearbricks::add\(', 'Clearbricks::add()', __('namespaces'), '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['toExtStatic\(', 'dcRecord::toExtStatic()', 'Dotclear\Database\MetaRecord::toStatic()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + //['(themes|plugins)->setModules\(', 'adminModulesList::setModules()', 'ModulesList::setDefine()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + //['(themes|plugins)->getModules\(', 'adminModulesList::getModules()', 'ModulesList::getDefines()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['->sanitizeModule\(', 'adminModulesList::sanitizeModule()', 'ModulesList::fillSanitizeModule()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['->fillSanitizeModule\(', 'adminModulesList::fillSanitizeModule()', 'ModulesList::fillSanitizeModule()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['->isDistributedModule\(', 'adminModulesList::isDistributedModule()', 'ModulesList::getDefine($id)->distributed', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->getModules\(', 'dcModules::getModules()', 'dcModules::getDefines()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->getAnyModules\(', 'dcModules::getAnyModules()', 'dcModules::getDefines()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->getDisabledModules\(', 'dcModules::getDisabledModules()', "dcModules::getDefines(['state' => '!' . dcModuleDefine::STATE_ENABLED])", '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->getHardDisabledModules\(', 'dcModules::getHardDisabledModules()', "dcModules::getDefines(['state' => dcModuleDefine::STATE_HARD_DISABLED])", '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->getSoftDisabledModules\(', 'dcModules::getSoftDisabledModules()', "dcModules::getDefines(['state' => dcModuleDefine::STATE_SOFT_DISABLED])", '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->moduleRoot\(', 'dcModules::moduleRoot()', "dcModules::getDefine(\$id, ['state' => dcModuleDefine::STATE_ENABLED])->root", '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['(themes|plugins)->loadNsFiles\(', 'dcModules::loadNsFiles()', __('nothing'), '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['store->getModules\(', 'dcStoreParser::getModules()', 'dcStoreParser::getDefines()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['store->get\(', 'dcStoreParser::get()', 'dcStoreParser::getDefine()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['store->search\(', 'dcStoreParser::search()', 'dcStoreParser::searchDefines()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ['dcUtils::removeDiacritics\(', 'dcUtils::removeDiacritics()', 'Text::removeDiacritics()', '2.27', 'https://dotclear.watch/Billet/Release-2.26'], + ], +]; diff --git a/src/Task/dcdeprecated/dc2.27.php b/src/Task/dcdeprecated/dc2.27.php index 6997c66..3839766 100644 --- a/src/Task/dcdeprecated/dc2.27.php +++ b/src/Task/dcdeprecated/dc2.27.php @@ -12,7 +12,7 @@ */ return [ 'php' => [ - ['dcCore::autoload\(\)', 'dcCore::autoload() ', 'Autoloader::Me()', '2.27', 'https://dotclear.watch/Billet/Les-d%C3%A9pr%C3%A9ci%C3%A9s'], + ['dcCore::autoload\(\)', 'dcCore::autoload()', 'Autoloader::Me()', '2.27', 'https://dotclear.watch/Billet/Les-d%C3%A9pr%C3%A9ci%C3%A9s'], ['App::autoload\(\)', 'dcCore::autoload()', 'Autoloader::Me()', '2.27', 'https://dotclear.watch/Billet/Les-d%C3%A9pr%C3%A9ci%C3%A9s'], ['__error\(\)', '__error()', 'Autoloader::Me()', '2.27', 'https://dotclear.watch/Billet/La-classe-d-erreur'], //todo: logout @@ -75,5 +75,8 @@ return [ ['dcPublic', 'dcPublic', 'Dotclear\Core\Frontend\Utility', '2.27', 'https://dotclear.watch/Billet/D%C3%A9placement-de-classes'], ['dcNsProcess', 'dcNsProcess', 'Dotclear\Core\Process', '2.27', 'https://dotclear.watch/Billet/D%C3%A9placement-de-classes'], ['dcUpgrade', 'dcUpgrade', 'Dotclear\Core\Upgrade\Upgrade', '2.27', 'https://dotclear.watch/Billet/D%C3%A9placement-de-classes'], + + ['dcCore::app\(\)->auth === null', 'is_null(dcCore::app()->auth)', 'isset(dcCore::app()->auth)', '2.27'], + ['is_null\(dcCore::app\(\)->auth\)', 'is_null(dcCore::app()->auth)', 'isset(dcCore::app()->auth)', '2.27'], ], ];