MediaWiki
REL1_37
DateFormatterFactory.php
Go to the documentation of this file.
1
<?php
2
3
class
DateFormatterFactory
{
5
private
$instances
;
6
11
public
function
get
(
Language
$lang
) {
12
$code =
$lang
->getCode();
13
if
( !isset( $this->instances[$code] ) ) {
14
$this->instances[$code] =
new
DateFormatter
(
$lang
);
15
}
16
return
$this->instances[$code];
17
}
18
}
DateFormatterFactory
Definition
DateFormatterFactory.php:3
DateFormatterFactory\$instances
DateFormatter[] $instances
Definition
DateFormatterFactory.php:5
DateFormatter
Date formatter.
Definition
DateFormatter.php:37
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition
Language.php:42
$lang
if(!isset( $args[0])) $lang
Definition
testCompression.php:37
includes
parser
DateFormatterFactory.php
Generated on Fri Apr 5 2024 23:40:40 for MediaWiki by
1.9.8