MediaWiki  1.28.1
NumericUppercaseCollation Class Reference

Collation that orders text with numbers "naturally", so that 'Foo 1' < 'Foo 2' < 'Foo 12'. More...

Inheritance diagram for NumericUppercaseCollation:
Collaboration diagram for NumericUppercaseCollation:

Public Member Functions

 getFirstLetter ($string)
 
 getSortKey ($string)
 
- Public Member Functions inherited from UppercaseCollation
 __construct ()
 
 getFirstLetter ($string)
 
 getSortKey ($string)
 
- Public Member Functions inherited from Collation
 getFirstLetter ($string)
 Given a string, return the logical "first letter" to be used for grouping on category pages and so on. More...
 
 getSortKey ($string)
 Given a string, convert it to a (hopefully short) key that can be used for efficient sorting. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Collation
static factory ($collationName)
 
static singleton ()
 

Detailed Description

Collation that orders text with numbers "naturally", so that 'Foo 1' < 'Foo 2' < 'Foo 12'.

Note that this only works in terms of sequences of digits, and the behavior for decimal fractions or pretty-formatted numbers may be unexpected.

Since
1.28

Definition at line 29 of file NumericUppercaseCollation.php.

Member Function Documentation

NumericUppercaseCollation::getFirstLetter (   $string)

Definition at line 51 of file NumericUppercaseCollation.php.

References wfMessage().

NumericUppercaseCollation::getSortKey (   $string)

Definition at line 30 of file NumericUppercaseCollation.php.

References $matches.


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