MediaWiki
1.34.0
|
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... | |
Definition at line 5 of file SiteLibrary.php.
Scribunto_LuaSiteLibrary::getNsIndex | ( | $name = null | ) |
Handler for getNsIndex.
Definition at line 161 of file SiteLibrary.php.
References $wgContLang, and Scribunto_LuaLibraryBase\checkType().
Scribunto_LuaSiteLibrary::interwikiMap | ( | $filter = null | ) |
Handler for interwikiMap.
Definition at line 175 of file SiteLibrary.php.
References $filter, $wgExtraInterlanguageLinkPrefixes, $wgLocalInterwikis, Scribunto_LuaLibraryBase\checkTypeOptional(), PROTO_RELATIVE, wfExpandUrl(), and wfMessage().
Scribunto_LuaSiteLibrary::pagesInCategory | ( | $category = null , |
|
$which = null |
|||
) |
Handler for pagesInCategory.
Definition at line 101 of file SiteLibrary.php.
References $title, Scribunto_LuaLibraryBase\checkType(), Scribunto_LuaLibraryBase\checkTypeOptional(), Scribunto_LuaLibraryBase\incrementExpensiveFunctionCount(), Title\makeTitleSafe(), Category\newFromTitle(), and NS_CATEGORY.
Scribunto_LuaSiteLibrary::pagesInNamespace | ( | $ns = null | ) |
Handler for pagesInNamespace.
Definition at line 139 of file SiteLibrary.php.
References Scribunto_LuaLibraryBase\checkType(), and SiteStats\pagesInNs().
Scribunto_LuaSiteLibrary::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 11 of file SiteLibrary.php.
References $GLOBALS, $namespacesCache, $title, $wgContLang, $wgNamespaceAliases, SiteStats\activeUsers(), SiteStats\articles(), SiteStats\edits(), MWNamespace\getAssociated(), MWNamespace\getCanonicalName(), Scribunto_LuaLibraryBase\getEngine(), MWNamespace\getNamespaceContentModel(), Scribunto_LuaLibraryBase\getParser(), MWNamespace\getSubject(), MWNamespace\getTalk(), SpecialVersion\getVersion(), MWNamespace\hasGenderDistinction(), MWNamespace\hasSubpages(), SiteStats\images(), MWNamespace\isCapitalized(), MWNamespace\isContent(), MWNamespace\isMovable(), MWNamespace\isNonincludable(), MWNamespace\isSubject(), MWNamespace\isTalk(), NS_MAIN, SiteStats\numberingroup(), SiteStats\pages(), SiteStats\users(), and wfMessage().
Scribunto_LuaSiteLibrary::usersInGroup | ( | $group = null | ) |
Handler for usersInGroup.
Definition at line 150 of file SiteLibrary.php.
References Scribunto_LuaLibraryBase\checkType(), and SiteStats\numberingroup().
|
staticprivate |
Definition at line 8 of file SiteLibrary.php.
|
staticprivate |
Definition at line 7 of file SiteLibrary.php.
Referenced by register().
|
staticprivate |
Definition at line 6 of file SiteLibrary.php.
|
private |
Definition at line 9 of file SiteLibrary.php.