|
LuaSandbox::wrapPhpFunctionWrap a PHP callable in a LuaSandboxFunction 説明
public LuaSandboxFunction LuaSandbox::wrapPhpFunction(callable
$function )Wraps a PHP callable in a LuaSandboxFunction, so it can be passed into Lua as an anonymous function.
The function must return either an array of values (which may be empty),
or
Exceptions will be raised as errors in Lua, however only
LuaSandboxRuntimeError exceptions may be caught
inside Lua with For more information about calling Lua functions and the return values, see LuaSandboxFunction::call. パラメータ
戻り値Returns a LuaSandboxFunction. 参考
|