[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
File Size: | 254 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
SiteStatsUpdate:: (11 methods):
__construct()
factory()
doUpdate()
tryDBUpdateInternal()
cacheUpdate()
doUpdatePendingDeltas()
appendUpdate()
getTypeCacheKey()
adjustPending()
getPendingDeltas()
removePendingDeltas()
Class: SiteStatsUpdate - X-Ref
Class for handling updates to the site_stats table__construct( $views, $edits, $good, $pages = 0, $users = 0 ) X-Ref |
No description |
factory( array $deltas ) X-Ref |
param: array $deltas return: SiteStatsUpdate |
doUpdate() X-Ref |
No description |
tryDBUpdateInternal() X-Ref |
Do not call this outside of SiteStatsUpdate |
cacheUpdate( $dbw ) X-Ref |
param: DatabaseBase $dbw return: bool|mixed |
doUpdatePendingDeltas() X-Ref |
No description |
appendUpdate( &$sql, $field, $delta ) X-Ref |
param: string $sql param: string $field param: int $delta |
getTypeCacheKey( $type, $sign ) X-Ref |
param: string $type param: string $sign ('+' or '-') return: string |
adjustPending( $type, $delta ) X-Ref |
Adjust the pending deltas for a stat type. Each stat type has two pending counters, one for increments and decrements param: string $type param: int $delta Delta (positive or negative) |
getPendingDeltas() X-Ref |
Get pending delta counters for each stat type return: array Positive and negative deltas for each type |
removePendingDeltas( array $pd ) X-Ref |
Reduce pending delta counters after updates have been applied param: array $pd Result of getPendingDeltas(), used for DB update |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |