MediaWiki
REL1_19
|
Static accessor class for site_stats and related things. More...
Static Public Member Functions | |
static | activeUsers () |
static | articles () |
static | doLoad ($db) |
static | edits () |
static | images () |
static | jobs () |
static | load ($recache=false) |
static | loadAndLazyInit () |
static | numberingroup ($group) |
Find the number of users in a given user group. | |
static | pages () |
static | pagesInNs ($ns) |
static | recache () |
static | users () |
static | views () |
Static Public Attributes | |
static | $groupMemberCounts = array() |
static | $jobs |
static | $loaded = false |
static | $pageCount = array() |
static | $row |
Static Private Member Functions | |
static | isSane ($row) |
Is the provided row of site stats sane, or should it be regenerated? |
Static accessor class for site_stats and related things.
Definition at line 6 of file SiteStats.php.
static SiteStats::activeUsers | ( | ) | [static] |
Definition at line 120 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofactiveusers().
static SiteStats::articles | ( | ) | [static] |
Definition at line 96 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofarticles().
static SiteStats::doLoad | ( | $ | db | ) | [static] |
$db | DatabaseBase |
Definition at line 73 of file SiteStats.php.
Referenced by loadAndLazyInit().
static SiteStats::edits | ( | ) | [static] |
Definition at line 88 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().
static SiteStats::images | ( | ) | [static] |
Definition at line 128 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberoffiles().
static SiteStats::isSane | ( | $ | row | ) | [static, private] |
Is the provided row of site stats sane, or should it be regenerated?
$row |
Definition at line 200 of file SiteStats.php.
References $row.
static SiteStats::jobs | ( | ) | [static] |
Definition at line 161 of file SiteStats.php.
References $dbr, $jobs, and wfGetDB().
Referenced by ApiQuerySiteinfo\appendStatistics().
static SiteStats::load | ( | $ | recache = false | ) | [static] |
$recache | bool |
Definition at line 19 of file SiteStats.php.
References $dbr, loadAndLazyInit(), and wfGetDB().
Referenced by activeUsers(), articles(), edits(), images(), pages(), recache(), users(), and views().
static SiteStats::loadAndLazyInit | ( | ) | [static] |
Definition at line 41 of file SiteStats.php.
References $row, SiteStatsInit\doAllAndCommit(), doLoad(), wfDebug(), and wfGetDB().
Referenced by load().
static SiteStats::numberingroup | ( | $ | group | ) | [static] |
Find the number of users in a given user group.
$group | String: name of group |
Definition at line 138 of file SiteStats.php.
References $dbr, $wgMemc, wfGetDB(), and wfMemcKey().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\getGroupStats(), Parser\getVariableValue(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().
static SiteStats::pages | ( | ) | [static] |
Definition at line 104 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().
static SiteStats::pagesInNs | ( | $ | ns | ) | [static] |
$ns | int |
Definition at line 178 of file SiteStats.php.
References $dbr, wfGetDB(), wfProfileIn(), and wfProfileOut().
Referenced by CoreParserFunctions\pagesinnamespace().
static SiteStats::recache | ( | ) | [static] |
Definition at line 12 of file SiteStats.php.
References load().
static SiteStats::users | ( | ) | [static] |
Definition at line 112 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofusers(), and wfQueriesMustScale().
static SiteStats::views | ( | ) | [static] |
Definition at line 80 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofviews().
SiteStats::$groupMemberCounts = array() [static] |
Definition at line 10 of file SiteStats.php.
SiteStats::$jobs [static] |
Definition at line 8 of file SiteStats.php.
Referenced by jobs().
SiteStats::$loaded = false [static] |
Definition at line 7 of file SiteStats.php.
SiteStats::$pageCount = array() [static] |
Definition at line 9 of file SiteStats.php.
SiteStats::$row [static] |
Definition at line 7 of file SiteStats.php.
Referenced by isSane(), and loadAndLazyInit().