Свойство | Тип | Описание | |
---|---|---|---|
$encoding | string | variable holds the current encoding | |
$locale | string | variable holds the current locale |
Метод | Описание | |
---|---|---|
__construct ( ) | constructor method accepts an optional $locale, otherwise the default will be used | |
__toString ( ) : string | method to dump the current locale/encoding settings to string | |
createFolder ( string $path ) : |
method which auto creates the LC_MESSAGES folder for each set locale, if they do not exist yet | |
getEncoding ( ) : string | method to fetch the set encoding | |
getLocale ( ) : string | method to fetch the set locale | |
getLocaleAndEncoding ( ) : string | method to merge the locale and encoding into a single string | |
hasEncoding ( ) : boolean | method to check if an encoding has been set | |
hasLocale ( ) : boolean | method to check if a locale has been set | |
setEncoding ( string $encoding ) : |
method to set the encoding | |
setLocale ( string $locale ) : |
method to set the locale | |
setTextDomain ( string $textdomain, string $path ) : |
method to set the text domain |
public __construct ( ) |
public __toString ( ) : string | ||
Результат | string |
public createFolder ( string $path ) : |
||
$path | string | |
Результат |
public getEncoding ( ) : string | ||
Результат | string |
public getLocaleAndEncoding ( ) : string | ||
Результат | string |
public hasEncoding ( ) : boolean | ||
Результат | boolean |
public setEncoding ( string $encoding ) : |
||
$encoding | string | |
Результат |
public setTextDomain ( string $textdomain, string $path ) : |
||
$textdomain | string | |
$path | string | |
Результат |
protected string $encoding | ||
Результат | string |
protected string $locale | ||
Результат | string |