MediaWiki  1.34.0
Scribunto_LuaSiteLibrary Class Reference
Inheritance diagram for Scribunto_LuaSiteLibrary:
Collaboration diagram for Scribunto_LuaSiteLibrary:

Public Member Functions

 getNsIndex ( $name=null)
 Handler for getNsIndex. More...
 
 interwikiMap ( $filter=null)
 Handler for interwikiMap. More...
 
 pagesInCategory ( $category=null, $which=null)
 Handler for pagesInCategory. More...
 
 pagesInNamespace ( $ns=null)
 Handler for pagesInNamespace. More...
 
 register ()
 Called to register the library. More...
 
 usersInGroup ( $group=null)
 Handler for usersInGroup. More...
 
- Public Member Functions inherited from Scribunto_LuaLibraryBase
 __construct (Scribunto_LuaEngine $engine)
 
 incrementExpensiveFunctionCount ()
 Increment the expensive function count, and throw if limit exceeded. More...
 

Private Attributes

 $pagesInCategoryCache = []
 

Static Private Attributes

static $interwikiMapCache = []
 
static $namespacesCache = null
 
static $namespacesCacheLang = null
 

Additional Inherited Members

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

Detailed Description

Definition at line 5 of file SiteLibrary.php.

Member Function Documentation

◆ getNsIndex()

Scribunto_LuaSiteLibrary::getNsIndex (   $name = null)

Handler for getNsIndex.

Definition at line 161 of file SiteLibrary.php.

References $wgContLang, and Scribunto_LuaLibraryBase\checkType().

◆ interwikiMap()

Scribunto_LuaSiteLibrary::interwikiMap (   $filter = null)

◆ pagesInCategory()

Scribunto_LuaSiteLibrary::pagesInCategory (   $category = null,
  $which = null 
)

◆ pagesInNamespace()

Scribunto_LuaSiteLibrary::pagesInNamespace (   $ns = null)

Handler for pagesInNamespace.

Definition at line 139 of file SiteLibrary.php.

References Scribunto_LuaLibraryBase\checkType(), and SiteStats\pagesInNs().

◆ register()

◆ usersInGroup()

Scribunto_LuaSiteLibrary::usersInGroup (   $group = null)

Handler for usersInGroup.

Definition at line 150 of file SiteLibrary.php.

References Scribunto_LuaLibraryBase\checkType(), and SiteStats\numberingroup().

Member Data Documentation

◆ $interwikiMapCache

Scribunto_LuaSiteLibrary::$interwikiMapCache = []
staticprivate

Definition at line 8 of file SiteLibrary.php.

◆ $namespacesCache

Scribunto_LuaSiteLibrary::$namespacesCache = null
staticprivate

Definition at line 7 of file SiteLibrary.php.

Referenced by register().

◆ $namespacesCacheLang

Scribunto_LuaSiteLibrary::$namespacesCacheLang = null
staticprivate

Definition at line 6 of file SiteLibrary.php.

◆ $pagesInCategoryCache

Scribunto_LuaSiteLibrary::$pagesInCategoryCache = []
private

Definition at line 9 of file SiteLibrary.php.


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