[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/ -> Collation.php (summary)

Database row sorting. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 645 lines (21 kb)
Included or required:0 times
Referenced: 6 times
Includes or requires: 0 files

Defines 5 classes

UppercaseCollation:: (3 methods):
  __construct()
  getSortKey()
  getFirstLetter()

IdentityCollation:: (2 methods):
  getSortKey()
  getFirstLetter()

IcuCollation:: (11 methods):
  __construct()
  getSortKey()
  getPrimarySortKey()
  getFirstLetter()
  getFirstLetterData()
  getLetterByIndex()
  getSortKeyByLetterIndex()
  getFirstLetterCount()
  isCjk()
  getICUVersion()
  getUnicodeVersionForICU()

CollationCkb:: (1 method):
  __construct()

CollationEt:: (5 methods):
  __construct()
  mangle()
  unmangle()
  getSortKey()
  getFirstLetter()

Defines 5 functions

  singleton()
  factory()

Class: UppercaseCollation  - X-Ref

__construct()   X-Ref
No description

getSortKey( $string )   X-Ref
No description

getFirstLetter( $string )   X-Ref
No description

Class: IdentityCollation  - X-Ref

Collation class that's essentially a no-op.

Does sorting based on binary value of the string.
Like how things were pre 1.17.
getSortKey( $string )   X-Ref
No description

getFirstLetter( $string )   X-Ref
No description

Class: IcuCollation  - X-Ref

__construct( $locale )   X-Ref
No description

getSortKey( $string )   X-Ref
No description

getPrimarySortKey( $string )   X-Ref
No description

getFirstLetter( $string )   X-Ref
No description

getFirstLetterData()   X-Ref
No description

getLetterByIndex( $index )   X-Ref
No description

getSortKeyByLetterIndex( $index )   X-Ref
No description

getFirstLetterCount()   X-Ref
No description

isCjk( $codepoint )   X-Ref
No description

getICUVersion()   X-Ref
Return the version of ICU library used by PHP's intl extension,
or false when the extension is not installed of the version
can't be determined.

The constant INTL_ICU_VERSION this function refers to isn't really
documented. It is available since PHP 5.3.7 (see PHP bug 54561).
This function will return false on older PHPs.

return: string|bool

getUnicodeVersionForICU()   X-Ref
Return the version of Unicode appropriate for the version of ICU library
currently in use, or false when it can't be determined.

return: string|bool

Class: CollationCkb  - X-Ref

Workaround for the lack of support of Sorani Kurdish / Central Kurdish language ('ckb') in ICU.

Uses the same collation rules as Persian / Farsi ('fa'), but different characters for digits.
__construct()   X-Ref
No description

Class: CollationEt  - X-Ref

Workaround for incorrect collation of Estonian language ('et') in ICU (bug 54168).

'W' and 'V' should not be considered the same letter for the purposes of collation in modern
Estonian. We work around this by replacing 'W' and 'w' with 'ᴡ' U+1D21 'LATIN LETTER SMALL
CAPITAL W' for sortkey generation, which is collated like 'W' and is not tailored to have the
same primary weight as 'V' in Estonian.
__construct()   X-Ref
No description

mangle( $string )   X-Ref
No description

unmangle( $string )   X-Ref
No description

getSortKey( $string )   X-Ref
No description

getFirstLetter( $string )   X-Ref
No description

Functions
Functions that are not part of a class:

singleton()   X-Ref

return: Collation

factory( $collationName )   X-Ref

param: string $collationName
return: Collation



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1