Wikibase
MediaWiki Wikibase extension
|
A type IDs acquirer and resolver that only encapsulates access to a static array of IDs. More...
Public Member Functions | |
__construct (array $types) | |
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 | |
$typeIdsByName | |
$typeNamesById | |
A type IDs acquirer and resolver that only encapsulates access to a static array of IDs.
Wikibase\Lib\Store\Sql\Terms\StaticTypeIdsStore::__construct | ( | array | $types | ) |
int[] | $types | Array from type name to type ID. |
Wikibase\Lib\Store\Sql\Terms\StaticTypeIdsStore::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\StaticTypeIdsStore::lookupTypeIds | ( | array | $types | ) |
Lookup type ids for given type names.
string[] | $types |
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsLookup.
Wikibase\Lib\Store\Sql\Terms\StaticTypeIdsStore::resolveTypeIds | ( | array | $typeIds | ) |
Resolves types for the given type IDs.
int[] | $typeIds |
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsResolver.
|
private |
|
private |