|
| __construct (array $valueTypes) |
|
| registerDataType (DataType $dataType) |
|
| getTypeIds () |
| Returns the list of registered data type identifiers (also referred to as "property types").
|
|
| getType ( $typeId) |
| Returns the data type that has the specified type identifier.
|
|
| getTypes () |
| Returns all data types in an associative array with the keys being data type identifiers (also referred to as "property types") pointing to their corresponding data type.
|
|
- Since
- 0.1
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\DataTypeFactory::__construct |
( |
array | $valueTypes | ) |
|
- Since
- 0.5
- Parameters
-
string[] | $valueTypes | Associative array mapping data type identifiers (also referred to as "property types") to data value type identifiers. |
- Exceptions
-
◆ getType()
Wikibase\Lib\DataTypeFactory::getType |
( |
| $typeId | ) |
|
Returns the data type that has the specified type identifier.
Types may be instantiated on the fly using a type builder spec.
- Since
- 0.1
- Parameters
-
string | $typeId | Data type identifier (also referred to as "property type"). |
- Exceptions
-
OutOfBoundsException | if the requested type is not known. |
- Returns
- DataType
◆ getTypeIds()
Wikibase\Lib\DataTypeFactory::getTypeIds |
( |
| ) |
|
Returns the list of registered data type identifiers (also referred to as "property types").
- Since
- 0.1
- Returns
- string[]
◆ getTypes()
Wikibase\Lib\DataTypeFactory::getTypes |
( |
| ) |
|
Returns all data types in an associative array with the keys being data type identifiers (also referred to as "property types") pointing to their corresponding data type.
- Since
- 0.1
- Returns
- DataType[]
◆ newFromTypes()
static Wikibase\Lib\DataTypeFactory::newFromTypes |
( |
array | $dataTypes | ) |
|
|
static |
- Since
- 0.1
- Parameters
-
- Returns
- self
◆ registerDataType()
Wikibase\Lib\DataTypeFactory::registerDataType |
( |
DataType | $dataType | ) |
|
◆ $types
Wikibase\Lib\DataTypeFactory::$types = [] |
|
private |
◆ $valueTypes
Wikibase\Lib\DataTypeFactory::$valueTypes = [] |
|
private |
The documentation for this class was generated from the following file: