4 public function register() {
6 'test' => [ $this,
'test' ],
9 return $this->
getEngine()->registerInterface(
10 __DIR__ .
'/mw.ext.TitleBlacklist.lua', $lib, []
15 $this->
checkType(
'mw.ext.TitleBlacklist.test', 1, $action,
'string' );
24 'params' => $entry->getParams(),
25 'regex' => $entry->getRegex(),
26 'raw' => $entry->getRaw(),
27 'version' => $entry->getFormatVersion(),
28 'message' => $entry->getErrorMessage( $action ),
29 'custommessage' => $entry->getCustomMessage()
This class provides some basic services that Lua libraries will probably need.
checkType( $name, $argIdx, $arg, $expectType)
Check the type of a variable.
getEngine()
Get the engine.
checkTypeOptional( $name, $argIdx, &$arg, $expectType, $default)
Check the type of a variable, with default if null.
getParser()
Get the parser.
incrementExpensiveFunctionCount()
Increment the expensive function count, and throw if limit exceeded.
test( $action=null, $title=null)
static singleton()
Get an instance of this class.