MediaWiki master
MediaWiki\User\TempUser\FilteredRadixSerialMapping Class Reference

Since "base" is an overused term in class names and mostly means something else, we will call the base of a numeric representation a radix. More...

Inherits MediaWiki\User\TempUser\SerialMapping.

Collaboration diagram for MediaWiki\User\TempUser\FilteredRadixSerialMapping:

Public Member Functions

 __construct ( $config)
 
 getSerialIdForIndex (int $index)
 

Detailed Description

Since "base" is an overused term in class names and mostly means something else, we will call the base of a numeric representation a radix.

This class converts integer serial numbers to strings using an arbitrary base between 2 and 36. It can skip certain IDs deemed to be "bad", e.g. because they spell offensive words.

Since
1.39

Definition at line 17 of file FilteredRadixSerialMapping.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\TempUser\FilteredRadixSerialMapping::__construct ( $config)
Parameters
array$configSee MainConfigSchema::AutoCreateTempUser

Definition at line 30 of file FilteredRadixSerialMapping.php.

Member Function Documentation

◆ getSerialIdForIndex()

MediaWiki\User\TempUser\FilteredRadixSerialMapping::getSerialIdForIndex ( int $index)
Parameters
int$index
Returns
string The serial ID. This should consist of title characters but should not be a single asterisk.

Implements MediaWiki\User\TempUser\SerialMapping.

Definition at line 36 of file FilteredRadixSerialMapping.php.


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