Manual:CollationFactory.php
Appearance
MediaWiki file: CollationFactory.php | |
---|---|
Location: | includes/collation/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Collation\CollationFactory |
Factory/service for constructing collation classes.
Instantiation
[edit]Use MediaWikiServices::getInstance->getCollationFactory().
Public methods
[edit]- getCategoryCollation() - returns the collation (class) chosen with $wgCategoryCollation.
- getDefaultCollationName() - returns the name (string) of the collation chosen with $wgCategoryCollation.
- makeCollation() - dynamic method which accepts a collation name (string) and returns the appropriate collation (class).