Goffy, you are not human !
This module seems to be crazy !
I'm exploring it to try to understand all tabs and parameters on this module.
Anyway, thank you for this amazing job you have done for the XOOPS community!
Event is triggered when the establishment, or re-establishment, of the current user is complete.
At this point valid security decisions can be made based on the state of the current user.
This event is triggered when a new XoopsTpl (an extended Smarty object) is created. This allows customization of the Smarty environment from within a module.
One possible use would be to support a module based plugin library. An simplified example event listener:public static function eventCoreClassTemplateNew($arg)
{
$smartyObject = $arg[0];
$smartyObject->plugins_dir[] = __DIR__;
}
function smarty_function_translate($params, $smarty)
{
function smarty_function_translate($params, $smarty)
{
$key = isset($params['key']) ? $params['key'] : '';
$dirname = isset($params['dir']) ? $params['dir'] : ''; //Mtools
$utility = '\Xoopsmodules\' . ucfirst($dirname) . '\Utility';
return $utility::translate($key, $dirname);
}
}