Wikibase
MediaWiki Wikibase extension
|
Generates a new unique numeric id for the provided type. More...
Public Member Functions | |
getNewId ( $type) | |
Generates a new unique numeric id for the provided type.
Ids are only unique per type.
Wikibase\Repo\Store\IdGenerator::getNewId | ( | $type | ) |
string | $type |
RuntimeException |
Implemented in Wikibase\Repo\Store\Sql\UpsertSqlIdGenerator, Wikibase\Repo\Store\Sql\SqlIdGenerator, and Wikibase\Repo\Store\RateLimitingIdGenerator.