mtoken handle coma in quotes - coma can be only in a string
this code:
define('IN_AIKI', true);
require('libs/php.php');
$foo = new php();
print_r($foo->mtoken('"f\"o,o", "b,ar", 10'));
prints this:
Array
(
[0] => f"o,o
[1] => b,ar
[2] => 10
)
So we can use mtoken in $aiki-> the same as in other php functions, but
this will change the default behavior that you have one argument.
--
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/871905
Title:
You can't use multiple arguments in calling API from a widget
Status in Aiki Framework:
New
Bug description:
if you use <php $aiki->class->method(foo, bar, baz) php>
it call $aiki->class->method("foo, bar, baz")
Sollution:
in php->aiki_function instead of:
$aiki->$class->$function($para);
use:
public function aiki_function($class,$function, $array) {
...
call_user_func_array(array($aiki->$class, $function), $array);
...
}
and in php->parser
$php_output = $this->aiki_function($partial[1],
$partial[2], $partial[3] ? preg_split("/\s*,\s*/", $partial[3]) :
array());
}
But I don't know how this affect the other code and user extensions:
Are people using them?
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/871905/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp