MediaWiki  1.34.0
LuaInterpreter.php
Go to the documentation of this file.
1 <?php
2 
3 abstract class Scribunto_LuaInterpreter {
12  abstract public function loadString( $text, $chunkName );
13 
21  abstract public function callFunction( $func, ...$args );
22 
30  abstract public function wrapPhpFunction( $callable );
31 
38  abstract public function isLuaFunction( $object );
39 
49  abstract public function registerLibrary( $name, array $functions );
50 
55  abstract public function pauseUsageTimer();
56 
61  abstract public function unpauseUsageTimer();
62 }
63 
65 }
66 
68 }
Scribunto_LuaInterpreter\unpauseUsageTimer
unpauseUsageTimer()
Unpause CPU usage and limits.
Scribunto_LuaInterpreter\loadString
loadString( $text, $chunkName)
Load a string.
Scribunto_LuaInterpreterNotFoundError
Definition: LuaInterpreter.php:64
MWException
MediaWiki exception.
Definition: MWException.php:26
Scribunto_LuaInterpreter\pauseUsageTimer
pauseUsageTimer()
Pause CPU usage and limits.
Scribunto_LuaInterpreterBadVersionError
Definition: LuaInterpreter.php:67
Scribunto_LuaInterpreter\isLuaFunction
isLuaFunction( $object)
Test whether an object is a Lua function.
$args
if( $line===false) $args
Definition: cdb.php:64
Scribunto_LuaInterpreter
Definition: LuaInterpreter.php:3
Scribunto_LuaInterpreter\wrapPhpFunction
wrapPhpFunction( $callable)
Wrap a PHP callable as a Lua function, which can be passed back into Lua.
Scribunto_LuaInterpreter\callFunction
callFunction( $func,... $args)
Call a Lua function.
Scribunto_LuaInterpreter\registerLibrary
registerLibrary( $name, array $functions)
Register a library of functions.