Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4100011
DummyPropertyDataTypeLookup.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
DummyPropertyDataTypeLookup.php
View Options
<?php
use
Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup
;
class
DummyPropertyDataTypeLookup
implements
PropertyDataTypeLookup
{
/**
* @var int
*/
public
static
$mathId
=
1
;
/**
* Returns the data type for the Property of which the id is given.
*
* @since 2.0
*
* @param \Wikibase\DataModel\Entity\PropertyId $propertyId
*
* @return string
* @throws \Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookupException
*/
public
function
getDataTypeIdForProperty
(
\Wikibase\DataModel\Entity\PropertyId
$propertyId
)
{
return
$propertyId
->
getNumericId
()
==
self
::
$mathId
?
'math'
:
'not-math'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 16:11 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
40/fa/948f26c91a39abd9471ea03dc9b9
Default Alt Text
DummyPropertyDataTypeLookup.php (638 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment