MediaWiki REL1_31
IdentityCollation.php
Go to the documentation of this file.
1<?php
30
31 public function getSortKey( $string ) {
32 return $string;
33 }
34
35 public function getFirstLetter( $string ) {
36 global $wgContLang;
37 // Copied from UppercaseCollation.
38 // I'm kind of unclear on when this could happen...
39 if ( $string[0] == "\0" ) {
40 $string = substr( $string, 1 );
41 }
42 return $wgContLang->firstChar( $string );
43 }
44}
Collation class that's essentially a no-op.
getFirstLetter( $string)
Given a string, return the logical "first letter" to be used for grouping on category pages and so on...
getSortKey( $string)
Given a string, convert it to a (hopefully short) key that can be used for efficient sorting.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the local content language as $wgContLang
Definition design.txt:57