Wikibase
MediaWiki Wikibase extension
|
Acquires and resolves unique and constant ids of types, stored in memory. More...
Public Member Functions | |
acquireTypeIds (array $types) | |
Acquires ids of stored types, persisting the ones that do not exist yet. | |
resolveTypeIds (array $typeIds) | |
Resolves types for the given type IDs. | |
lookupTypeIds (array $types) | |
Lookup type ids for given type names. | |
Private Attributes | |
$types = [] | |
$lastId = 0 | |
Acquires and resolves unique and constant ids of types, stored in memory.
Wikibase\Lib\Store\Sql\Terms\InMemoryTypeIdsStore::acquireTypeIds | ( | array | $types | ) |
Acquires ids of stored types, persisting the ones that do not exist yet.
array | $types | list of types to acquire ids for |
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsAcquirer.
Wikibase\Lib\Store\Sql\Terms\InMemoryTypeIdsStore::lookupTypeIds | ( | array | $types | ) |
Lookup type ids for given type names.
string[] | $types |
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsLookup.
Wikibase\Lib\Store\Sql\Terms\InMemoryTypeIdsStore::resolveTypeIds | ( | array | $typeIds | ) |
Resolves types for the given type IDs.
int[] | $typeIds |
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsResolver.
|
private |
|
private |