OSB enhancements to date

This commit is contained in:
Deon George
2010-11-30 09:41:08 +11:00
parent 8715a2059b
commit ec6a542bc3
478 changed files with 23423 additions and 9309 deletions

View File

@@ -52,7 +52,8 @@ class CORE_method {
include_once($file);
if (class_exists($module) && method_exists($module,$method)) {
eval (sprintf('$%s = new %s();$%s->%s($VAR,$%s);',$module,$module,$module,$method,$module));
eval(sprintf('$%s = new %s(%s);$%s->%s($VAR,$%s);',
$module,$module,isset($VAR['id']) ? $VAR['id'] : 'null',$module,$method,$module));
} else {
$C_debug->alert($C_translate->translate('method_non_existant','core',''));
@@ -76,6 +77,13 @@ class CORE_method {
}
}
/**
* Execute a method that supports output for a template
*/
public function exetm($module,$method) {
return $this->exe($module,'tm'.$method);
}
/**
* Execute a modules method
*/
@@ -120,7 +128,8 @@ class CORE_method {
include_once($file);
if (class_exists($module) && method_exists($module,$method)) {
eval (sprintf('$%s = new %s();$%s->%s($VAR,$%s,$args);',$module,$module,$module,$method,$module));
eval(sprintf('$%s = new %s(%s);$%s->%s($VAR,$%s,$args);',
$module,$module,(isset($VAR['id']) ? $VAR['id'] : 'null'),$module,$method,$module));
global $smarty;