PHP Класс Neos\Neos\Service\TransliterationService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$localizationService Neos\Flow\I18n\Service
$transliterationRules boolean

Открытые методы

Метод Описание
transliterate ( string $text, string $language = null ) : string Translaterates UTF-8 string to ASCII. (北京 to 'Bei Jing')

Описание методов

transliterate() публичный Метод

Accepts language parameter that maps to a configurable array of special transliteration rules if present.
public transliterate ( string $text, string $language = null ) : string
$text string Text to transliterate
$language string Optional language for specific rules (falls back to current locale if not provided)
Результат string

Описание свойств

$localizationService защищенное свойство

protected Service,Neos\Flow\I18n $localizationService
Результат Neos\Flow\I18n\Service

$transliterationRules защищенное свойство

protected bool $transliterationRules
Результат boolean