Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4153574
LocalizedNumericSerialMapping.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
700 B
Referenced Files
None
Subscribers
None
LocalizedNumericSerialMapping.php
View Options
<?php
namespace
MediaWiki\User\TempUser
;
use
MediaWiki\Language\Language
;
use
MediaWiki\Languages\LanguageFactory
;
/**
* Serial mapping which uses a Language object to format serial numbers.
*
* @since 1.39
*/
class
LocalizedNumericSerialMapping
implements
SerialMapping
{
private
Language
$language
;
/**
* @param array $config
* - language: The language code
* @param LanguageFactory $languageFactory
*/
public
function
__construct
(
$config
,
LanguageFactory
$languageFactory
)
{
$this
->
language
=
$languageFactory
->
getLanguage
(
$config
[
'language'
]
??
'en'
);
}
public
function
getSerialIdForIndex
(
int
$index
):
string
{
return
$this
->
language
->
formatNum
(
$index
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 20:47 (7 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0c/79/49376463bcad51f177f6a98dbfc7
Default Alt Text
LocalizedNumericSerialMapping.php (700 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment