MediaWiki REL1_39
DateFormatterFactory.php
Go to the documentation of this file.
1<?php
2
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}
Date formatter.
Base class for language-specific code.
Definition Language.php:53
if(!isset( $args[0])) $lang