Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4151292
ParsingPlaceholderFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
ParsingPlaceholderFactory.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\Utilities
;
/**
* Create unique placeholders that can be used when parsing (wiki)text.
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @since 2020.07
*/
class
ParsingPlaceholderFactory
{
/** @var int */
private
$i
=
0
;
/** Return value is guaranteed to only contain [a-zA-Z0-9\x7f] */
public
function
make
():
string
{
return
"
\x
7fUNIQ"
.
dechex
(
mt_rand
(
0
,
0x7fffffff
)
)
.
dechex
(
mt_rand
(
0
,
0x7fffffff
)
)
.
'-'
.
$this
->
i
++;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:54 (7 w, 3 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c1/08/da4822f3e12af41fe30588d0a9b0
Default Alt Text
ParsingPlaceholderFactory.php (544 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment