Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\PropertyInfoStore Interface Reference
+ Inheritance diagram for Wikibase\Lib\Store\PropertyInfoStore:

Public Member Functions

 setPropertyInfo (PropertyId $propertyId, array $info)
 Update the info for the given property. More...
 
 removePropertyInfo (PropertyId $propertyId)
 Remove the info entry for the given property. More...
 

Public Attributes

const KEY_CANONICAL_URI = 'canonicalURI'
 Key to use in the info array for the property's canonical URI pattern. More...
 

Detailed Description

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

Member Function Documentation

◆ removePropertyInfo()

Wikibase\Lib\Store\PropertyInfoStore::removePropertyInfo ( PropertyId  $propertyId)

Remove the info entry for the given property.

Parameters
PropertyId$propertyId
Returns
bool true iff something was deleted
Exceptions
StorageException
DBError

Implemented in Wikibase\Lib\Store\Sql\PropertyInfoTable, and Wikibase\Lib\Store\CacheAwarePropertyInfoStore.

◆ setPropertyInfo()

Wikibase\Lib\Store\PropertyInfoStore::setPropertyInfo ( PropertyId  $propertyId,
array  $info 
)

Update the info for the given property.

Note
All well known fields MUST be set in $info.
Parameters
PropertyId$propertyId
array$info
Exceptions
StorageException
DBError

Implemented in Wikibase\Lib\Store\Sql\PropertyInfoTable, and Wikibase\Lib\Store\CacheAwarePropertyInfoStore.

Member Data Documentation

◆ KEY_CANONICAL_URI

const Wikibase\Lib\Store\PropertyInfoStore::KEY_CANONICAL_URI = 'canonicalURI'

Key to use in the info array for the property's canonical URI pattern.


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