"added simple callback for config templates, html eg. selectbox get created by using:

- {call_class::method} or 
- {call_app.class.method}
The returned selectbox or input has to be for \"newsettings[$name]\"!"
This commit is contained in:
Ralf Becker 2009-08-18 16:07:39 +00:00
parent f70cccd2ef
commit 1bb3fadd1f

View File

@ -47,7 +47,7 @@
{
$_POST['newsettings'] = $this->array_stripslashes($_POST['newsettings']);
}
switch($_GET['appname'])
{
case 'admin':
@ -234,9 +234,13 @@
$t->set_var($value,'');
}
break;
case 'call': // eg. call_class::method or call_app.class.method
$newval = str_replace(' ','_',$newval);
$t->set_var($value,ExecMethod($newval,$c->config_data));
break;
default:
$t->set_var($value,'');
break;
$t->set_var($value,'');
break;
}
}
@ -249,8 +253,8 @@
/**
* applies stripslashes recursivly on each element of an array
*
* @param array &$var
*
* @param array &$var
* @return array
*/
function array_stripslashes($var)