Lua::__call
Lua
PHP Manual
The Lua class
Introduction
Class synopsis
Lua
{
/* Constants */
const
string
LUA_VERSION
= Lua 5.1.4
;
/* Properties */
static
$
Lua->_callbacks
;
/* Methods */
public
void
Lua::__call
(
string
$lua_func
,
array
$args
)
public
void
Lua::assign
(
string
$name
,
string
$value
)
public
void
Lua::call
(
mixed
$lua_func
,
array
$args
)
Lua::__construct
(
string
$lua_script_file
= NULL
)
public
void
Lua::eval
(
string
$statements
)
public
void
Lua::getversion
(
void
)
public
void
Lua::include
(
string
$file
)
public
void
Lua::registerCallback
(
string
$name
,
callback
$function
)
}
Properties
_callbacks
Predefined Constants
Lua Node Types
Lua::LUA_VERSION
Table of Contents
Lua::__call
— Magic method for Lua to call Lua functions
Lua::assign
— Assign a PHP variable to Lua
Lua::call
— Call Lua functions
Lua::__construct
— Lua constructor
Lua::eval
— Evaluate a string as Lua code
Lua::getversion
— The getversion purpose
Lua::include
— Parse a Lua script file
Lua::registerCallback
— Register a PHP function to Lua
Lua::__call
Lua
PHP Manual