Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\DataType Class Reference

Public Member Functions

 __construct ( $typeId, $dataValueType)
 
 getId ()
 Returns the identifier of this data type (also referred to as "property type").
 
 getDataValueType ()
 Returns the type of the DataValue used by this data type.
 
 getMessageKey ()
 
 toArray ()
 

Protected Attributes

 $typeId
 
 $dataValueType
 

Detailed Description

Since
0.1
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\DataType::__construct ( $typeId,
$dataValueType )
Since
0.5
Parameters
string$typeIdIdentifier of this data type (also referred to as "property type").
string$dataValueTypeIdentifier for the type of the DataValue.
Exceptions
InvalidArgumentException

Member Function Documentation

◆ getDataValueType()

Wikibase\Lib\DataType::getDataValueType ( )

Returns the type of the DataValue used by this data type.

Since
0.1
Returns
string

◆ getId()

Wikibase\Lib\DataType::getId ( )

Returns the identifier of this data type (also referred to as "property type").

Since
0.1
Returns
string

◆ getMessageKey()

Wikibase\Lib\DataType::getMessageKey ( )
Since
1.0
Returns
string

◆ toArray()

Wikibase\Lib\DataType::toArray ( )
Since
0.1
Returns
string[]

Member Data Documentation

◆ $dataValueType

Wikibase\Lib\DataType::$dataValueType
protected

◆ $typeId

Wikibase\Lib\DataType::$typeId
protected

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