MediaWiki  REL1_31
NorthernSamiUppercaseCollation.php
Go to the documentation of this file.
1 <?php
35 
36  public function __construct() {
37  parent::__construct( [
38  'A',
39  'Á',
40  'B',
41  'C',
42  'Č',
43  'Ʒ', // Not part of modern alphabet, but part of ICU
44  'Ǯ', // Not part of modern alphabet, but part of ICU
45  'D',
46  'Đ',
47  'E',
48  'F',
49  'G',
50  'Ǧ', // Not part of modern alphabet, but part of ICU
51  'Ǥ', // Not part of modern alphabet, but part of ICU
52  'H',
53  'I',
54  'J',
55  'K',
56  'Ǩ', // Not part of modern alphabet, but part of ICU
57  'L',
58  'M',
59  'N',
60  'Ŋ',
61  'O',
62  'P',
63  'Q',
64  'R',
65  'S',
66  'Š',
67  'T',
68  'Ŧ',
69  'U',
70  'V',
71  'W',
72  'X',
73  'Y',
74  'Z',
75  'Ž',
76  'Ø', // Not part of native alphabet, but part of ICU
77  'Æ', // Not part of native alphabet, but part of ICU
78  'Å', // Not part of native alphabet, but part of ICU
79  'Ä', // Not part of native alphabet, but part of ICU
80  'Ö', // Not part of native alphabet, but part of ICU
81  ], Language::factory( 'se' ) );
82  }
83 }
CustomUppercaseCollation
Resort normal UTF-8 order by putting a bunch of stuff in PUA.
Definition: CustomUppercaseCollation.php:40
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:37
NorthernSamiUppercaseCollation
Temporary workaround for incorrect collation of Northern Sami language ('se') in Wikimedia servers (s...
Definition: NorthernSamiUppercaseCollation.php:34
NorthernSamiUppercaseCollation\__construct
__construct()
Definition: NorthernSamiUppercaseCollation.php:36
Language\factory
static factory( $code)
Get a cached or new language object for a given language code.
Definition: Language.php:183