|
const | KEY_DATA_TYPE = 'type' |
| Key to use in the info array for the property's data type ID.
|
|
const | KEY_FORMATTER_URL = 'formatterURL' |
| Key to use in the info array for the property's formatter URL.
|
|
- 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\CachingPropertyInfoLookup, and Wikibase\Lib\Store\Sql\PropertyInfoTable.
◆ getPropertyInfo()
Wikibase\Lib\Store\PropertyInfoLookup::getPropertyInfo |
( |
PropertyId | $propertyId | ) |
|
Returns the property info for the given property ID.
- Note
- Even if the property is known to exist, this method may not return an info array, or the info array may not contain all well known fields.
- Parameters
-
- Returns
- array|null
- Exceptions
-
Implemented in Wikibase\Lib\Store\CachingPropertyInfoLookup.
◆ 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\CachingPropertyInfoLookup, and Wikibase\Lib\Store\Sql\PropertyInfoTable.
◆ 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: