diff --git a/reference/lua/book.xml b/reference/lua/book.xml index 4fd1ec77b4..c39a3aad14 100644 --- a/reference/lua/book.xml +++ b/reference/lua/book.xml @@ -1,18 +1,17 @@ - - + Lua Lua &reftitle.intro; - + "Lua is a powerful, fast, light-weight, embeddable scripting language." This extension embeds the lua interpreter and offers an OO-API to lua variables and functions. - + &reference.lua.setup; @@ -20,7 +19,6 @@ &reference.lua.lua; &reference.lua.luaclosure; - - -
+
&reftitle.install; - + &pecl.info; &url.pecl.package;lua - + + -
- - - - + The Lua class Lua @@ -11,9 +10,9 @@
&reftitle.intro; - + - +
@@ -40,13 +39,13 @@ &Methods; - +
- +
&reftitle.constants; @@ -55,7 +54,7 @@ Lua::LUA_VERSION - + @@ -69,7 +68,6 @@ &reference.lua.entities.lua; - - - + Lua::assign Assign a PHP variable to Lua @@ -14,9 +13,9 @@ stringname stringvalue - + - + &warn.undocumented.func; @@ -28,17 +27,17 @@ name - - - + + + value - - - + + + @@ -46,9 +45,9 @@ &reftitle.returnvalues; - + Returns $this or &null; on failure. - + @@ -82,7 +81,6 @@ Array - - - + Lua::call Lua::__call @@ -22,9 +21,9 @@ arrayargs intuse_self0 - + - + &warn.undocumented.func; @@ -36,25 +35,25 @@ lua_func - + Function name in lua - + args - + Arguments passed to the Lua function - + use_self - + Whether to use self - + @@ -62,10 +61,10 @@ &reftitle.returnvalues; - + Returns result of the called function, &null; for wrong arguments or &false; on other failure. - + @@ -107,7 +106,6 @@ string(5) "1-2-3" - - - + Lua::__construct Lua constructor @@ -13,9 +12,9 @@ public Lua::__construct stringlua_script_fileNULL - + - + &warn.undocumented.func; @@ -27,8 +26,8 @@ lua_script_file - - + + @@ -36,14 +35,13 @@ &reftitle.returnvalues; - - - + + + - - - + Lua::eval Evaluate a string as Lua code @@ -13,9 +12,9 @@ public mixedLua::eval stringstatements - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ statements - - - + + + @@ -37,10 +36,10 @@ &reftitle.returnvalues; - + Returns result of evaled code, &null; for wrong arguments or &false; on other failure. - + @@ -68,7 +67,6 @@ CODE - - - + Lua::getVersion The getversion purpose @@ -11,11 +10,11 @@ &reftitle.description; public stringLua::getVersion - + - + - + &warn.undocumented.func; @@ -28,14 +27,13 @@ &reftitle.returnvalues; - + Returns Lua::LUA_VERSION. - + - - - + Lua::include Parse a Lua script file @@ -13,9 +12,9 @@ public mixedLua::include stringfile - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ file - - - + + + @@ -37,15 +36,14 @@ &reftitle.returnvalues; - + Returns result of included code, &null; for wrong arguments or &false; on other failure. - + - - - + Lua::registerCallback Register a PHP function to Lua @@ -14,9 +13,9 @@ stringname callablefunction - + Register a PHP function to Lua as a function named "$name" - + @@ -26,17 +25,17 @@ name - - - + + + function - + A valid PHP function callback - + @@ -44,10 +43,10 @@ &reftitle.returnvalues; - + Returns $this, &null; for wrong arguments or &false; on other failure. - + @@ -83,7 +82,6 @@ array(3) { - - - + The LuaClosure class LuaClosure @@ -11,10 +10,10 @@
&reftitle.intro; - + LuaClosure is a wrapper class for LUA_TFUNCTION which could be return from calling to Lua function. - +
@@ -32,9 +31,9 @@ - + &Methods; - + @@ -45,7 +44,6 @@ &reference.lua.entities.luaclosure;
- - - + LuaClosure::__invoke Invoke luaclosure @@ -13,9 +12,9 @@ public voidLuaClosure::__invoke mixedargs - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ args - - - + + + @@ -37,9 +36,9 @@ &reftitle.returnvalues; - + - + @@ -72,7 +71,6 @@ hello worldhello world - - - + The LuaException class LuaException @@ -11,9 +10,9 @@
&reftitle.intro; - + - +
@@ -29,35 +28,34 @@ LuaException - + extends Exception - + &InheritedProperties; - + &Methods; - - + + &InheritedMethods; - +
- + &reference.lua.entities.luaexception; - - - + &reftitle.setup;
&reftitle.required; - + To use this extension, you will need Lua installed, available on the Lua homepage - +
&reftitle.install; - + &pecl.moved; - - + + &pecl.info; &url.pecl.package;lua. - +
-