MediaWiki REL1_34
|
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. | |
validate () | |
Validates the script and returns a Status object containing the syntax errors for the given code. | |
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 Scribunto_LuaModule\__construct(), __construct(), and getChunkName().
|
protected |
Definition at line 305 of file Base.php.
Referenced by Scribunto_LuaModule\__construct(), __construct(), and getCode().
|
protected |
Definition at line 300 of file Base.php.
Referenced by __construct(), and getEngine().