|
MediaWiki
REL1_24
|
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 Private Member Functions | |
| static | isSane ($row) |
| Is the provided row of site stats sane, or should it be regenerated? | |
Static Private Attributes | |
| static | $groupMemberCounts = array() |
| static | $jobs |
| static | $loaded = false |
| static | $pageCount = array() |
| static | $row |
Static accessor class for site_stats and related things.
Definition at line 26 of file SiteStats.php.
| static SiteStats::activeUsers | ( | ) | [static] |
Definition at line 158 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofactiveusers().
| static SiteStats::articles | ( | ) | [static] |
Definition at line 134 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofarticles().
| static SiteStats::doLoad | ( | $ | db | ) | [static] |
| DatabaseBase | $db |
Definition at line 102 of file SiteStats.php.
References array().
Referenced by load(), and loadAndLazyInit().
| static SiteStats::edits | ( | ) | [static] |
Definition at line 126 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().
| static SiteStats::images | ( | ) | [static] |
Definition at line 166 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?
Checks only fields which are filled by SiteStatsInit::refresh.
| bool | object | $row |
Definition at line 243 of file SiteStats.php.
| static SiteStats::jobs | ( | ) | [static] |
Definition at line 199 of file SiteStats.php.
References $dbr, $jobs, JobQueueGroup\singleton(), and wfGetDB().
Referenced by ApiQuerySiteinfo\appendStatistics().
| static SiteStats::load | ( | $ | recache = false | ) | [static] |
| bool | $recache |
Definition at line 49 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 70 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 176 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 142 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().
| static SiteStats::pagesInNs | ( | $ | ns | ) | [static] |
| int | $ns |
Definition at line 219 of file SiteStats.php.
References $dbr, array(), wfGetDB(), wfProfileIn(), and wfProfileOut().
Referenced by CoreParserFunctions\pagesinnamespace().
| static SiteStats::recache | ( | ) | [static] |
Definition at line 42 of file SiteStats.php.
References load().
| static SiteStats::users | ( | ) | [static] |
Definition at line 150 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 118 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofviews().
SiteStats::$groupMemberCounts = array() [static, private] |
Definition at line 40 of file SiteStats.php.
SiteStats::$jobs [static, private] |
Definition at line 34 of file SiteStats.php.
Referenced by jobs().
SiteStats::$loaded = false [static, private] |
Definition at line 31 of file SiteStats.php.
SiteStats::$pageCount = array() [static, private] |
Definition at line 37 of file SiteStats.php.
SiteStats::$row [static, private] |
Definition at line 28 of file SiteStats.php.
Referenced by isSane(), and loadAndLazyInit().