Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\PropertyInfoBuilder Class Reference

Class to build the information about a property. More...

Public Member Functions

 __construct ( $propertyIdMap=[])
 
 buildPropertyInfo (Property $property)
 
 getPropertyIdMap ()
 

Private Member Functions

 getStringFromStatements ( $propertyInfoKey, StatementList $statements)
 

Private Attributes

 $propertyIdMap
 

Detailed Description

Class to build the information about a property.

Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\PropertyInfoBuilder::__construct (   $propertyIdMap = [])
Parameters
NumericPropertyId[]$propertyIdMapMaps PropertyInfoStore keys to PropertyIds

Member Function Documentation

◆ buildPropertyInfo()

Wikibase\Repo\PropertyInfoBuilder::buildPropertyInfo ( Property  $property)
See also
PropertyInfoTable::setPropertyInfo
Parameters
Property$property
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 ( )
Returns
NumericPropertyId[]

◆ getStringFromStatements()

Wikibase\Repo\PropertyInfoBuilder::getStringFromStatements (   $propertyInfoKey,
StatementList  $statements 
)
private
Parameters
string$propertyInfoKey
StatementList$statements
Returns
string|null The string value of the property associated with the given $propertyInfoKey via the array provided to the constructor.

Member Data Documentation

◆ $propertyIdMap

Wikibase\Repo\PropertyInfoBuilder::$propertyIdMap
private

The documentation for this class was generated from the following file: