FileAccess Orion

Intl
in package

Intl abstraction layer

Table of Contents

$collator  : int
Cache if collators are available
CollatorExists()  : bool
Check if collators available Test if the ICU collator functions ae available. This function is cached.
GetSortKey()  : Result
Calculate the sort key Using the ICU collator to create a sort key representation of the given string.

Properties

$collator

Cache if collators are available

private static int $collator = -1

Initial set to -1

Methods

CollatorExists()

Check if collators available Test if the ICU collator functions ae available. This function is cached.

public static CollatorExists() : bool
Return values
bool

True when collator is available

GetSortKey()

Calculate the sort key Using the ICU collator to create a sort key representation of the given string.

public static GetSortKey(string $text[, string $collation = FAA_LOCALE ][, bool $encode = false ]) : Result
Parameters
$text : string

The text to convert to sort key

$collation : string = FAA_LOCALE

The collation to use for convert e.g. en_US or, de

$encode : bool = false

When set to true, convert the sort key to urlencoded representation

Return values
Result

A default system result object

Search results