Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\IdGenerator Interface Reference

Generates a new unique numeric id for the provided type. More...

+ Inheritance diagram for Wikibase\Repo\Store\IdGenerator:

Public Member Functions

 getNewId ( $type)
 

Detailed Description

Generates a new unique numeric id for the provided type.

Ids are only unique per type.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Member Function Documentation

◆ getNewId()

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

Implemented in Wikibase\Repo\Store\Sql\UpsertSqlIdGenerator, Wikibase\Repo\Store\Sql\SqlIdGenerator, and Wikibase\Repo\Store\RateLimitingIdGenerator.


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