MediaWiki
REL1_22
|
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 26 of file SiteStats.php.
static SiteStats::activeUsers | ( | ) | [static] |
Definition at line 148 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofactiveusers().
static SiteStats::articles | ( | ) | [static] |
Definition at line 124 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofarticles().
static SiteStats::doLoad | ( | $ | db | ) | [static] |
$db | DatabaseBase |
Definition at line 92 of file SiteStats.php.
References array().
Referenced by load(), and loadAndLazyInit().
static SiteStats::edits | ( | ) | [static] |
Definition at line 116 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().
static SiteStats::images | ( | ) | [static] |
Definition at line 156 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), 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 228 of file SiteStats.php.
static SiteStats::jobs | ( | ) | [static] |
Definition at line 189 of file SiteStats.php.
References $dbr, $jobs, JobQueueGroup\singleton(), and wfGetDB().
Referenced by ApiQuerySiteinfo\appendStatistics().
static SiteStats::load | ( | $ | recache = false | ) | [static] |
$recache | bool |
Definition at line 39 of file SiteStats.php.
References doLoad(), loadAndLazyInit(), and wfGetDB().
Referenced by activeUsers(), articles(), edits(), images(), pages(), recache(), users(), and views().
static SiteStats::loadAndLazyInit | ( | ) | [static] |
Definition at line 60 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.
string | $group | name of group |
Definition at line 166 of file SiteStats.php.
References $dbr, $key, $wgMemc, array(), global, wfGetDB(), and wfMemcKey().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\getGroupStats(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().
static SiteStats::pages | ( | ) | [static] |
Definition at line 132 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().
static SiteStats::pagesInNs | ( | $ | ns | ) | [static] |
$ns | int |
Definition at line 206 of file SiteStats.php.
References $dbr, array(), wfGetDB(), wfProfileIn(), and wfProfileOut().
Referenced by CoreParserFunctions\pagesinnamespace().
static SiteStats::recache | ( | ) | [static] |
Definition at line 32 of file SiteStats.php.
References load().
static SiteStats::users | ( | ) | [static] |
Definition at line 140 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), CoreParserFunctions\numberofusers(), and wfQueriesMustScale().
static SiteStats::views | ( | ) | [static] |
Definition at line 108 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofviews().
SiteStats::$groupMemberCounts = array() [static] |
Definition at line 30 of file SiteStats.php.
SiteStats::$jobs [static] |
Definition at line 28 of file SiteStats.php.
Referenced by jobs().
SiteStats::$loaded = false [static] |
Definition at line 27 of file SiteStats.php.
SiteStats::$pageCount = array() [static] |
Definition at line 29 of file SiteStats.php.
SiteStats::$row [static] |
Definition at line 27 of file SiteStats.php.
Referenced by isSane(), and loadAndLazyInit().