MediaWiki REL1_34
|
Public Member Functions | |
hashValue ( $algo, $value) | |
Hash a given value. | |
listAlgorithms () | |
Returns a list of known/ supported hash algorithms. | |
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. | |
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. | |
Definition at line 3 of file HashLibrary.php.
Scribunto_LuaHashLibrary::hashValue | ( | $algo, | |
$value ) |
Hash a given value.
Definition at line 35 of file HashLibrary.php.
Scribunto_LuaHashLibrary::listAlgorithms | ( | ) |
Returns a list of known/ supported hash algorithms.
Definition at line 20 of file HashLibrary.php.
Scribunto_LuaHashLibrary::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.
Reimplemented from Scribunto_LuaLibraryBase.
Definition at line 5 of file HashLibrary.php.
References Scribunto_LuaLibraryBase\getEngine().