Manual:CollationFactory.php

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).

See also

edit