Manual:CollationFactory.php
Appearance
| MediaWiki file: CollationFactory.php | |
|---|---|
| Location: | includes/collation/ (includes/Collation/ in 1.46 or later) |
| Source code: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| 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).