MediaWiki REL1_39
MediaWiki\Collation\CollationFactory Class Reference

Common factory to construct collation classes. More...

Public Member Functions

 __construct (ServiceOptions $options, ObjectFactory $objectFactory, HookContainer $hookContainer)
 
 getCategoryCollation ()
 
 getDefaultCollationName ()
 
 makeCollation (string $collationName)
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Common factory to construct collation classes.

Since
1.37

Definition at line 37 of file CollationFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Collation\CollationFactory::__construct ( ServiceOptions  $options,
ObjectFactory  $objectFactory,
HookContainer  $hookContainer 
)
Parameters
ServiceOptions$options
ObjectFactory$objectFactory
HookContainer$hookContainer

Definition at line 117 of file CollationFactory.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ getCategoryCollation()

MediaWiki\Collation\CollationFactory::getCategoryCollation ( )
Returns
Collation

Definition at line 131 of file CollationFactory.php.

Referenced by ApiQueryCategoryMembers\__construct().

◆ getDefaultCollationName()

MediaWiki\Collation\CollationFactory::getDefaultCollationName ( )

Definition at line 135 of file CollationFactory.php.

◆ makeCollation()

MediaWiki\Collation\CollationFactory::makeCollation ( string  $collationName)
Exceptions
MWException
Parameters
string$collationName
Returns
Collation

Definition at line 144 of file CollationFactory.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Collation\CollationFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const CategoryCollation
Name constant for the CategoryCollation setting, for use with Config::get()
Access: internal
For use by ServiceWiring

Definition at line 41 of file CollationFactory.php.


The documentation for this class was generated from the following file: