MediaWiki
1.34.4
|
Class for handling updates to the site_stats table. More...
Public Member Functions | |
__construct ( $views, $edits, $good, $pages=0, $users=0) | |
doUpdate () | |
Perform the actual work. More... | |
merge (MergeableUpdate $update) | |
Merge this update with $update. More... | |
Static Public Member Functions | |
static | cacheUpdate (IDatabase $dbw) |
static | factory (array $deltas) |
Protected Attributes | |
int | $articles = 0 |
int | $edits = 0 |
int | $images = 0 |
int | $pages = 0 |
int | $users = 0 |
Static Private Attributes | |
static string[] | $counters |
Map of (table column => counter type) More... | |
Class for handling updates to the site_stats table.
Definition at line 27 of file SiteStatsUpdate.php.
SiteStatsUpdate::__construct | ( | $views, | |
$edits, | |||
$good, | |||
$pages = 0 , |
|||
$users = 0 |
|||
) |
Definition at line 49 of file SiteStatsUpdate.php.
|
static |
IDatabase | $dbw |
Definition at line 128 of file SiteStatsUpdate.php.
References $dbr, DB_REPLICA, RecentChange\getQueryInfo(), ActorMigration\newMigration(), RC_EXTERNAL, SiteStats\unload(), and Wikimedia\Rdbms\IDatabase\update().
Referenced by SiteStatsInit\doAllAndCommit(), and InitSiteStats\execute().
SiteStatsUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 87 of file SiteStatsUpdate.php.
References $type, DB_MASTER, SiteStats\unload(), and Wikimedia\Rdbms\IDatabase\update().
|
static |
int[] | $deltas | Map of (counter type => integer delta) |
UnexpectedValueException |
Definition at line 71 of file SiteStatsUpdate.php.
Referenced by MediaWiki\Auth\AuthManager\autoCreateUser(), MediaWiki\Auth\AuthManager\continueAccountCreation(), Installer\createSysop(), LocalFile\delete(), WikiPage\doDeleteUpdates(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), NukePage\execute(), CreateAndPromote\execute(), LocalFileRestoreBatch\execute(), WikiImporter\finishImportPage(), and LocalFile\recordUpload2().
SiteStatsUpdate::merge | ( | MergeableUpdate | $update | ) |
Merge this update with $update.
MergeableUpdate | $update | Update of the same class type |
Implements MergeableUpdate.
Definition at line 56 of file SiteStatsUpdate.php.
|
protected |
Definition at line 33 of file SiteStatsUpdate.php.
|
staticprivate |
Map of (table column => counter type)
Definition at line 40 of file SiteStatsUpdate.php.
|
protected |
Definition at line 29 of file SiteStatsUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file SiteStatsUpdate.php.
|
protected |
Definition at line 31 of file SiteStatsUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file SiteStatsUpdate.php.
Referenced by __construct().