Elgg  Version 2.3
Static Public Member Functions | List of all members
Elgg\Translit Class Reference

Static Public Member Functions

static urlize ($string, $separator= '-')
 Create a version of a string for embedding in a URL. More...
 
static transliterateAscii ($utf8)
 Transliterate Western multibyte chars to ASCII. More...
 
static getAsciiTranslitMap ()
 Get array of UTF-8 (NFC) character replacements. More...
 
static hasNormalizerSupport ()
 Tests that "normalizer_normalize" exists and works. More...
 

Detailed Description

Definition at line 31 of file Translit.php.

Member Function Documentation

static Elgg\Translit::getAsciiTranslitMap ( )
static

Get array of UTF-8 (NFC) character replacements.

Returns
array

Definition at line 125 of file Translit.php.

static Elgg\Translit::hasNormalizerSupport ( )
static

Tests that "normalizer_normalize" exists and works.

Returns
bool

Definition at line 258 of file Translit.php.

static Elgg\Translit::transliterateAscii (   $utf8)
static

Transliterate Western multibyte chars to ASCII.

Parameters
string$utf8a UTF-8 string
Returns
string

Definition at line 109 of file Translit.php.

static Elgg\Translit::urlize (   $string,
  $separator = '-' 
)
static

Create a version of a string for embedding in a URL.

Parameters
string$stringA UTF-8 string
string$separatorThe character to separate words with
Returns
string
Examples:
/root/Elgg/engine/lib/output.php.

Definition at line 40 of file Translit.php.


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