Manual:CollationFactory.php
MediaWiki file: CollationFactory.php | |
---|---|
Location: | includes/collation/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | MediaWiki\Collation\CollationFactory |
Factory/service for constructing collation classes.
Instantiation
editUse 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).