MediaWiki REL1_34
|
Public Member Functions | |
__construct (Scribunto_LuaEngine $engine, $code, $chunkName) | |
getInitChunk () | |
Get the chunk which, when called, will return the export table. | |
invoke ( $name, $frame) | |
Invoke a function within the module. | |
validate () | |
Validates the script and returns a Status object containing the syntax errors for the given code. | |
Public Member Functions inherited from ScribuntoModuleBase | |
__construct (ScribuntoEngineBase $engine, $code, $chunkName) | |
getChunkName () | |
getCode () | |
getEngine () | |
Protected Attributes | |
Scribunto_LuaEngine | $engine |
mixed | $initChunk |
Protected Attributes inherited from ScribuntoModuleBase | |
string bool | $chunkName |
string | $code |
ScribuntoEngineBase | $engine |
Definition at line 918 of file LuaCommon.php.
Scribunto_LuaModule::__construct | ( | Scribunto_LuaEngine | $engine, |
$code, | |||
$chunkName ) |
Scribunto_LuaEngine | $engine | |
string | $code | |
string | bool | $chunkName |
Definition at line 934 of file LuaCommon.php.
References ScribuntoModuleBase\$chunkName, ScribuntoModuleBase\$code, and $engine.
Scribunto_LuaModule::getInitChunk | ( | ) |
Get the chunk which, when called, will return the export table.
Definition at line 951 of file LuaCommon.php.
References $initChunk.
Referenced by invoke(), and validate().
Scribunto_LuaModule::invoke | ( | $name, | |
$frame ) |
Invoke a function within the module.
Return the expanded wikitext result.
string | $name | |
PPFrame | $frame |
ScribuntoException |
Reimplemented from ScribuntoModuleBase.
Definition at line 969 of file LuaCommon.php.
References getInitChunk().
Scribunto_LuaModule::validate | ( | ) |
Validates the script and returns a Status object containing the syntax errors for the given code.
Reimplemented from ScribuntoModuleBase.
Definition at line 938 of file LuaCommon.php.
References getInitChunk(), and ScribuntoException\toStatus().
|
protected |
Definition at line 927 of file LuaCommon.php.
Referenced by __construct().
|
protected |
Definition at line 922 of file LuaCommon.php.
Referenced by getInitChunk().