- Copyright
- GPL-2.0-or-later
◆ getAllPropertyInfo()
Wikibase\Lib\Store\PropertyInfoLookup::getAllPropertyInfo |
( |
| ) |
|
Returns the property info for all properties.
The caller is responsible for avoiding calling this if there are too many properties.
- Note
- There is no guarantee that an info array is returned for all existing properties. Also, it is not guaranteed that the info arrays will contain all well known fields.
- Returns
- array[] An associative array mapping property IDs to info arrays.
- Exceptions
-
Implemented in Wikibase\Lib\Store\Sql\PropertyInfoTable, and Wikibase\Lib\Store\CachingPropertyInfoLookup.
◆ getPropertyInfo()
Wikibase\Lib\Store\PropertyInfoLookup::getPropertyInfo |
( |
PropertyId |
$propertyId | ) |
|
◆ getPropertyInfoForDataType()
Wikibase\Lib\Store\PropertyInfoLookup::getPropertyInfoForDataType |
( |
|
$dataType | ) |
|
Returns the property info for all properties with the given data type.
- Note
- There is no guarantee that an info array is returned for all existing properties. Also, it is not guaranteed that the info arrays will contain all well known fields.
- Parameters
-
- Returns
- array[] An associative array mapping property IDs to info arrays.
- Exceptions
-
Implemented in Wikibase\Lib\Store\Sql\PropertyInfoTable, and Wikibase\Lib\Store\CachingPropertyInfoLookup.
◆ KEY_DATA_TYPE
const Wikibase\Lib\Store\PropertyInfoLookup::KEY_DATA_TYPE = 'type' |
Key to use in the info array for the property's data type ID.
◆ KEY_FORMATTER_URL
const Wikibase\Lib\Store\PropertyInfoLookup::KEY_FORMATTER_URL = 'formatterURL' |
Key to use in the info array for the property's formatter URL.
The documentation for this interface was generated from the following file: