for example,
debugHelper.php becomes: debugHelper.class.php
and gets wrapped in:
class debugHelper
{
//insert original debugHelper functions here
}
For backwards compatibility, 'use_helper' will load all the functions into the current scope for execution/use.
function use_helper($helperName)
{
//insert original use_helper code here
foreach ( get_class_methods($helperName) as $methodName )
{
eval('function ' . $methodName . '() { $args = func_get_args(); return call_user_func_array(array("' . $helperName. '", "' . $methodName . '"), $args); }');
}
}
eventually then, in a later version, helperHelper could be phased out.