MediaWiki REL1_34
Scribunto_LuaMessageLibrary Class Reference
Inheritance diagram for Scribunto_LuaMessageLibrary:
Collaboration diagram for Scribunto_LuaMessageLibrary:

Public Member Functions

 messageCheck ( $what, $data)
 Handler for messageCheck.
 
 messagePlain ( $data)
 Handler for messagePlain.
 
 register ()
 Called to register the library.
 
- Public Member Functions inherited from Scribunto_LuaLibraryBase
 __construct (Scribunto_LuaEngine $engine)
 
 incrementExpensiveFunctionCount ()
 Increment the expensive function count, and throw if limit exceeded.
 

Private Member Functions

 makeMessage ( $data, $setParams)
 

Additional Inherited Members

- Protected Member Functions inherited from Scribunto_LuaLibraryBase
 checkType ( $name, $argIdx, $arg, $expectType)
 Check the type of a variable.
 
 checkTypeOptional ( $name, $argIdx, &$arg, $expectType, $default)
 Check the type of a variable, with default if null.
 
 getEngine ()
 Get the engine.
 
 getInterpreter ()
 Get the interpreter.
 
 getLuaType ( $var)
 Get the Lua type corresponding to the type of the variable.
 
 getParser ()
 Get the parser.
 
 getParserOptions ()
 Get the parser options.
 
 getTitle ()
 Get the title.
 

Detailed Description

Definition at line 3 of file MessageLibrary.php.

Member Function Documentation

◆ makeMessage()

Scribunto_LuaMessageLibrary::makeMessage ( $data,
$setParams )
private

Definition at line 23 of file MessageLibrary.php.

References Message\newFallbackSequence().

Referenced by messageCheck(), and messagePlain().

◆ messageCheck()

Scribunto_LuaMessageLibrary::messageCheck ( $what,
$data )

Handler for messageCheck.

Definition at line 59 of file MessageLibrary.php.

References makeMessage().

◆ messagePlain()

Scribunto_LuaMessageLibrary::messagePlain ( $data)

Handler for messagePlain.

Definition at line 43 of file MessageLibrary.php.

References makeMessage().

◆ register()

Scribunto_LuaMessageLibrary::register ( )

Called to register the library.

This should do any necessary setup and then call $this->getEngine()->registerInterface(). The value returned by that call should be returned from this function, and must be for 'deferLoad' libraries to work right.

Returns
array Lua package

Reimplemented from Scribunto_LuaLibraryBase.

Definition at line 4 of file MessageLibrary.php.

References $lang, $wgContLang, Scribunto_LuaLibraryBase\getEngine(), and Scribunto_LuaLibraryBase\getParser().


The documentation for this class was generated from the following file: