Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
WikibaseLib.datatypes.php File Reference

Variables

 return [ 'PT:commonsMedia'=>[ 'value-type'=> 'string'], 'PT:geo-shape'=>[ 'value-type'=> 'string'], 'PT:globe-coordinate'=>[ 'value-type'=> 'globecoordinate'], 'PT:monolingualtext'=>[ 'value-type'=> 'monolingualtext'], 'PT:quantity'=>[ 'value-type'=> 'quantity'], 'PT:string'=>[ 'value-type'=> 'string'], 'PT:tabular-data'=>[ 'value-type'=> 'string'], 'PT:time'=>[ 'value-type'=> 'time'], 'PT:url'=>[ 'value-type'=> 'string'], 'PT:external-id'=>[ 'value-type'=> 'string'], 'PT:wikibase-item'=>[ 'value-type'=> 'wikibase-entityid'], 'PT:wikibase-property'=>[ 'value-type'=> 'wikibase-entityid'],]
 Definition of data types for use with Wikibase.
 

Variable Documentation

◆ return

return['PT:commonsMedia'=>['value-type'=> 'string'], 'PT:geo-shape'=>['value-type'=> 'string'], 'PT:globe-coordinate'=>['value-type'=> 'globecoordinate'], 'PT:monolingualtext'=>['value-type'=> 'monolingualtext'], 'PT:quantity'=>['value-type'=> 'quantity'], 'PT:string'=>['value-type'=> 'string'], 'PT:tabular-data'=>['value-type'=> 'string'], 'PT:time'=>['value-type'=> 'time'], 'PT:url'=>['value-type'=> 'string'], 'PT:external-id'=>['value-type'=> 'string'], 'PT:wikibase-item'=>['value-type'=> 'wikibase-entityid'], 'PT:wikibase-property'=>['value-type'=> 'wikibase-entityid'],]

Definition of data types for use with Wikibase.

The array returned by the code below is supposed to be merged into the Repo resp. Client data types. The basic definition contains only the 'value-type' field.

Note
: When adding data types here, also add the corresponding information to repo/WikibaseRepo.datatypes.php and client/WikibaseClient.datatypes.php
This is bootstrap code, it is executed for EVERY request. Avoid instantiating objects here!
Author
Daniel Kinzler