MediaWiki REL1_39
MediaWiki\User\TempUser\DBSerialProvider Class Reference

Base class for serial acquisition code shared between core and CentralAuth. More...

Inheritance diagram for MediaWiki\User\TempUser\DBSerialProvider:
Collaboration diagram for MediaWiki\User\TempUser\DBSerialProvider:

Public Member Functions

 __construct ( $config)
 
 acquireIndex ()
 Acquire an integer such that it is unlikely to be used again, and return it.
 

Protected Member Functions

 getDB ()
 
 getTableName ()
 

Detailed Description

Base class for serial acquisition code shared between core and CentralAuth.

Since
1.39

Definition at line 12 of file DBSerialProvider.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\TempUser\DBSerialProvider::__construct ( $config)
Parameters
array$config
  • numShards (int, default 1): A small integer. This can be set to a value greater than 1 to avoid acquiring a global lock when allocating IDs, at the expense of making the IDs be non-monotonic.

Definition at line 22 of file DBSerialProvider.php.

Member Function Documentation

◆ acquireIndex()

MediaWiki\User\TempUser\DBSerialProvider::acquireIndex ( )

Acquire an integer such that it is unlikely to be used again, and return it.

Returns
int

Implements MediaWiki\User\TempUser\SerialProvider.

Definition at line 26 of file DBSerialProvider.php.

◆ getDB()

MediaWiki\User\TempUser\DBSerialProvider::getDB ( )
abstractprotected
Returns
IDatabase

Reimplemented in MediaWiki\User\TempUser\LocalSerialProvider.

◆ getTableName()

MediaWiki\User\TempUser\DBSerialProvider::getTableName ( )
abstractprotected
Returns
string

Reimplemented in MediaWiki\User\TempUser\LocalSerialProvider.


The documentation for this class was generated from the following file: