MediaWiki REL1_39
|
Send information about this MediaWiki instance to mediawiki.org. More...
Public Member Functions | |
__construct (Config $config, ILoadBalancer $lb, BagOStuff $cache, HttpRequestFactory $http, LoggerInterface $logger) | |
run () | |
Maybe send a ping. | |
Static Public Member Functions | |
static | getSystemInfo (Config $config) |
Collect basic data about this MediaWiki installation and return it as an associative array conforming to the Pingback schema on Meta-Wiki (https://meta.wikimedia.org/wiki/Schema:MediaWikiPingback). | |
static | schedulePingback () |
Schedule a deferred callable that will check if a pingback should be sent and (if so) proceed to send it. | |
Protected Member Functions | |
getData () | |
Get the EventLogging packet to be sent to the server. | |
Protected Attributes | |
BagOStuff | $cache |
Config | $config |
HttpRequestFactory | $http |
string | $key |
updatelog key (also used as cache/db lock key) | |
ILoadBalancer | $lb |
LoggerInterface | $logger |
Send information about this MediaWiki instance to mediawiki.org.
This service uses two kinds of rows in the update_log
database table:
PingBack
, this holds a random identifier for this wiki, created only once, when the first ping after wiki creation is sent.Pingback-<MW_VERSION>
, this holds a timestamp and is created once after each MediaWiki upgrade, and then updated up to once a month.Definition at line 45 of file Pingback.php.
Pingback::__construct | ( | Config | $config, |
ILoadBalancer | $lb, | ||
BagOStuff | $cache, | ||
HttpRequestFactory | $http, | ||
LoggerInterface | $logger ) |
Config | $config | |
ILoadBalancer | $lb | |
BagOStuff | $cache | |
HttpRequestFactory | $http | |
LoggerInterface | $logger |
Definition at line 72 of file Pingback.php.
References $cache, $config, $http, $lb, $logger, and MW_VERSION.
|
protected |
Get the EventLogging packet to be sent to the server.
DBError | If identifier insert fails |
Definition at line 170 of file Pingback.php.
|
static |
Collect basic data about this MediaWiki installation and return it as an associative array conforming to the Pingback schema on Meta-Wiki (https://meta.wikimedia.org/wiki/Schema:MediaWikiPingback).
Developers: If you're adding a new piece of data to this, please document this data at https://www.mediawiki.org/wiki/Manual:$wgPingback.
Config | $config | With DBtype set. |
Definition at line 191 of file Pingback.php.
Referenced by WebInstallerName\execute().
Pingback::run | ( | ) |
Maybe send a ping.
DBError | If identifier insert fails |
DBError | If timestamp upsert fails |
Definition at line 93 of file Pingback.php.
|
static |
Schedule a deferred callable that will check if a pingback should be sent and (if so) proceed to send it.
Definition at line 291 of file Pingback.php.
|
protected |
Definition at line 59 of file Pingback.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file Pingback.php.
Referenced by __construct().
|
protected |
Definition at line 61 of file Pingback.php.
Referenced by __construct().
|
protected |
updatelog key (also used as cache/db lock key)
Definition at line 63 of file Pingback.php.
|
protected |
Definition at line 57 of file Pingback.php.
Referenced by __construct().
|
protected |
Definition at line 53 of file Pingback.php.
Referenced by __construct().