Class to build the information about a property.
More...
Class to build the information about a property.
- Copyright
- GPL-2.0-or-later
- Author
- Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Daniel Kinzler
◆ __construct()
Wikibase\Repo\PropertyInfoBuilder::__construct |
( |
|
$propertyIdMap = [] | ) |
|
- Parameters
-
PropertyId[] | $propertyIdMap | Maps PropertyInfoStore keys to PropertyIds |
◆ buildPropertyInfo()
Wikibase\Repo\PropertyInfoBuilder::buildPropertyInfo |
( |
Property |
$property | ) |
|
- See also
- PropertyInfoTable::setPropertyInfo
- Parameters
-
- Returns
- array Information to be stored in the "pi_info" column of the "wb_property_info" table. Must be an array and can contain anything that can be encoded by json_encode.
◆ getPropertyIdMap()
Wikibase\Repo\PropertyInfoBuilder::getPropertyIdMap |
( |
| ) |
|
◆ getStringFromStatements()
Wikibase\Repo\PropertyInfoBuilder::getStringFromStatements |
( |
|
$propertyInfoKey, |
|
|
StatementList |
$statements |
|
) |
| |
|
private |
- Parameters
-
string | $propertyInfoKey | |
StatementList | $statements | |
- Returns
- string The string value of the property associated with the given $propertyInfoKey via the array provided to the constructor.
◆ $propertyIdMap
Wikibase\Repo\PropertyInfoBuilder::$propertyIdMap |
|
private |
The documentation for this class was generated from the following file: