Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\LegacyIdInterpreter Class Reference

Turns legacy entity id serializations consisting of entity type + numeric id into present day EntityId implementations. More...

Static Public Member Functions

static newIdFromTypeAndNumber ( $entityType, $numericId)
 

Detailed Description

Turns legacy entity id serializations consisting of entity type + numeric id into present day EntityId implementations.

New usages of this class should be very carefully considered. This class is internal to DataModel and should not be used by other components.

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

Member Function Documentation

◆ newIdFromTypeAndNumber()

static Wikibase\DataModel\LegacyIdInterpreter::newIdFromTypeAndNumber ( $entityType,
$numericId )
static
Parameters
string$entityType
int | float | string$numericId
Returns
EntityId
Exceptions
InvalidArgumentException

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