Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Entity\ItemIdParser Class Reference

A trivial EntityIdParser that only parses the serializations of ItemIds. More...

+ Inheritance diagram for Wikibase\DataModel\Entity\ItemIdParser:
+ Collaboration diagram for Wikibase\DataModel\Entity\ItemIdParser:

Public Member Functions

 parse ( $idSerialization)
 

Detailed Description

A trivial EntityIdParser that only parses the serializations of ItemIds.

This is particularly useful in cases where URIs are used to refer to concepts in an external Wikibase repository, e.g. when referencing globes in coordinate values, or units in quantity values.

Since
4.4
Author
Thiemo Kreuz

Member Function Documentation

◆ parse()

Wikibase\DataModel\Entity\ItemIdParser::parse (   $idSerialization)
Parameters
string$idSerialization
Exceptions
EntityIdParsingException
Returns
ItemId

Implements Wikibase\DataModel\Entity\EntityIdParser.


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