Quote:
kris_fr wrote:
Hi,
And when is it the compatibility of old modules with version 2.6, because I see on mine a significant amount of work to be done
Can we count on a migration script modules?
And a big thank you to Trabis for the tremendous work done on cleaning the old kernel
if you want to watch 2.6.-dev version, I installed it on a miniserv which can be downloaded here -> http://tutos.xoofoo.org/modules/mydownloads/visit.php?cid=24&lid=412
my other question is that version 2.6 will she get out before the final 2.5.4?
Thanks kris,
Modules that run on Xoops 2.5.4 without trowing deprecated messages and that do not use functions/defines/classes marked as deprecated in the source code will run in 2.6.0.
We will be doing a step by step code refactoring. Xoops 2.6.x will trow deprecated messages for 100% of the actual Xoops modules, meaning that our blue modules will have to be refactored if they want to work on Xoops 2.7.0.
In each middle version we will drop deprecated code.
Refactoring for 2.6.0 will be small work for module developers that already have blue modules. Many of the replacements can be done with search and replace.
$GLOBALS['xoopsConfig'] becomes $xoops->config
$GLOBALS['xoopsModule'] becomes $xoops->module
$GLOBALS['xoopsUser'] becomes $xoops->user
etc, etc
And for functions, many can also be changed with search and replace:
xoops_getModuleHandler() becomes $xoops->getModuleHandler();
etc, etc
Templates from database are also not being used by the core anymore but we will maintain the tables for legacy compatibility until 2.7
Instead of using:
$GLOBALS['xoopsOption']['template'] = 'db:mytemplate';
include XOOPS_ROOT_PATH . '/header.php';
You use should use $xoops->header('mytemplate.html');
The above also works for admin side, the interface for front end and admin is the same.
Module developers can/should also remove file includes for core classes. Classes are being loaded 'automagicaly'.
We will need to document all this but we don't even have an alpha yet. Interfaces may change.
Can you create a xref of the 2.6 code? Thanks.