[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Accessors and mutators for the site-wide statistics. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 424 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
SiteStats:: (15 methods):
recache()
load()
loadAndLazyInit()
doLoad()
views()
edits()
articles()
pages()
users()
activeUsers()
images()
numberingroup()
jobs()
pagesInNs()
isSane()
SiteStatsInit:: (9 methods):
__construct()
edits()
articles()
pages()
users()
views()
files()
doAllAndCommit()
refresh()
recache() X-Ref |
No description |
load( $recache = false ) X-Ref |
param: bool $recache |
loadAndLazyInit() X-Ref |
return: bool|ResultWrapper |
doLoad( $db ) X-Ref |
param: DatabaseBase $db return: bool|ResultWrapper |
views() X-Ref |
return: int |
edits() X-Ref |
return: int |
articles() X-Ref |
return: int |
pages() X-Ref |
return: int |
users() X-Ref |
return: int |
activeUsers() X-Ref |
return: int |
images() X-Ref |
return: int |
numberingroup( $group ) X-Ref |
Find the number of users in a given user group. param: string $group Name of group return: int |
jobs() X-Ref |
return: int |
pagesInNs( $ns ) X-Ref |
param: int $ns return: int |
isSane( $row ) X-Ref |
Is the provided row of site stats sane, or should it be regenerated? Checks only fields which are filled by SiteStatsInit::refresh. param: bool|object $row return: bool |
Class: SiteStatsInit - X-Ref
Class designed for counting of stats.__construct( $database = false ) X-Ref |
Constructor param: bool|DatabaseBase $database |
edits() X-Ref |
Count the total number of edits return: int |
articles() X-Ref |
Count pages in article space(s) return: int |
pages() X-Ref |
Count total pages return: int |
users() X-Ref |
Count total users return: int |
views() X-Ref |
Count views return: int |
files() X-Ref |
Count total files return: int |
doAllAndCommit( $database, array $options = array() X-Ref |
Do all updates and commit them. More or less a replacement for the original initStats, but without output. param: DatabaseBase|bool $database param: array $options Array of options, may contain the following values |
refresh() X-Ref |
Refresh site_stats. If you want ss_total_views to be updated, be sure to call views() first. |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |