Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Store\RateLimitingIdGenerator Class Reference
+ Inheritance diagram for Wikibase\Repo\Store\RateLimitingIdGenerator:
+ Collaboration diagram for Wikibase\Repo\Store\RateLimitingIdGenerator:

Public Member Functions

 __construct (IdGenerator $idGenerator, IContextSource $contextSource)
 
 getNewId ( $type)
 

Public Attributes

const RATELIMIT_NAME = 'wikibase-idgenerator'
 

Private Attributes

 $idGenerator
 
 $contextSource
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\RateLimitingIdGenerator::__construct ( IdGenerator  $idGenerator,
IContextSource  $contextSource 
)

Member Function Documentation

◆ getNewId()

Wikibase\Repo\Store\RateLimitingIdGenerator::getNewId (   $type)
Parameters
string$type
Returns
int
Exceptions
RuntimeException

Implements Wikibase\Repo\Store\IdGenerator.

Member Data Documentation

◆ $contextSource

Wikibase\Repo\Store\RateLimitingIdGenerator::$contextSource
private

◆ $idGenerator

Wikibase\Repo\Store\RateLimitingIdGenerator::$idGenerator
private

◆ RATELIMIT_NAME

const Wikibase\Repo\Store\RateLimitingIdGenerator::RATELIMIT_NAME = 'wikibase-idgenerator'

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