Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4154020
DateFormatterFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
DateFormatterFactory.php
View Options
<?php
namespace
MediaWiki\Parser
;
use
MediaWiki\Language\Language
;
class
DateFormatterFactory
{
/** @var DateFormatter[] */
private
$instances
;
/**
* @param Language $lang
* @return DateFormatter
*/
public
function
get
(
Language
$lang
)
{
$code
=
$lang
->
getCode
();
if
(
!
isset
(
$this
->
instances
[
$code
]
)
)
{
$this
->
instances
[
$code
]
=
new
DateFormatter
(
$lang
);
}
return
$this
->
instances
[
$code
];
}
}
/** @deprecated class alias since 1.43 */
class_alias
(
DateFormatterFactory
::
class
,
'DateFormatterFactory'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 20:59 (7 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
86/bd/644bc46eb0c75fff03a6873ddefb
Default Alt Text
DateFormatterFactory.php (537 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment