MediaWiki
1.34.0
|
Class that represents a module. More...
Public Member Functions | |
__construct (ScribuntoEngineBase $engine, $code, $chunkName) | |
getChunkName () | |
getCode () | |
getEngine () | |
invoke ( $name, $frame) | |
Invoke the function with the specified name. More... | |
validate () | |
Validates the script and returns a Status object containing the syntax errors for the given code. More... | |
Protected Attributes | |
string bool | $chunkName |
string | $code |
ScribuntoEngineBase | $engine |
Class that represents a module.
Responsible for initial module parsing and maintaining the contents of the module.
ScribuntoModuleBase::__construct | ( | ScribuntoEngineBase | $engine, |
$code, | |||
$chunkName | |||
) |
ScribuntoEngineBase | $engine | |
string | $code | |
string | bool | $chunkName |
Definition at line 317 of file Base.php.
References $chunkName, $code, and $engine.
ScribuntoModuleBase::getChunkName | ( | ) |
ScribuntoModuleBase::getCode | ( | ) |
ScribuntoModuleBase::getEngine | ( | ) |
|
abstract |
Invoke the function with the specified name.
string | $name | |
PPFrame | $frame |
Reimplemented in Scribunto_LuaModule.
|
abstract |
Validates the script and returns a Status object containing the syntax errors for the given code.
Reimplemented in Scribunto_LuaModule.
|
protected |
Definition at line 310 of file Base.php.
Referenced by __construct(), Scribunto_LuaModule\__construct(), and getChunkName().
|
protected |
Definition at line 305 of file Base.php.
Referenced by __construct(), Scribunto_LuaModule\__construct(), and getCode().
|
protected |
Definition at line 300 of file Base.php.
Referenced by __construct(), and getEngine().