An acquirer and resolver for term type IDs implemented using a NameTableStore for wbt_type.
More...
|
| __construct (TermsDomainDb $termsDb, WANObjectCache $cache, ?LoggerInterface $logger=null) |
|
| 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.- Parameters
-
- Returns
- int[] array type names to type ids
} Unknown types will be associated with null in the value
|
|
An acquirer and resolver for term type IDs implemented using a NameTableStore for wbt_type.
- See also
- Item & Property Terms
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\Store\Sql\Terms\DatabaseTypeIdsStore::__construct |
( |
TermsDomainDb | $termsDb, |
|
|
WANObjectCache | $cache, |
|
|
?LoggerInterface | $logger = null ) |
◆ acquireTypeIds()
Wikibase\Lib\Store\Sql\Terms\DatabaseTypeIdsStore::acquireTypeIds |
( |
array | $types | ) |
|
Acquires ids of stored types, persisting the ones that do not exist yet.
- Parameters
-
array | $types | list of types to acquire ids for |
- Returns
- array keys in returned array are the types passed in $types associated with their acquired ids. Example: $typeIdsAcquirer->acquireTypeIds ( [ 'label', 'description' ] ) would return: [ 'label' => 100, 'description' => 121 ]
Implements Wikibase\Lib\Store\Sql\Terms\TypeIdsAcquirer.
◆ lookupTypeIds()
Wikibase\Lib\Store\Sql\Terms\DatabaseTypeIdsStore::lookupTypeIds |
( |
array | $types | ) |
|
◆ resolveTypeIds()
Wikibase\Lib\Store\Sql\Terms\DatabaseTypeIdsStore::resolveTypeIds |
( |
array | $typeIds | ) |
|
◆ $nameTableStore
Wikibase\Lib\Store\Sql\Terms\DatabaseTypeIdsStore::$nameTableStore |
|
private |
The documentation for this class was generated from the following file: