PHP Класс JpnForPhp\Transliterator\TransliterationSystem

Автор: Matthieu Bilbille (@mbibille)
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$configuration Load transliteration system configuration.

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

Метод Описание
__construct ( $file ) Transliteration system's constructor
__toString ( ) Implement magic method __toString().
transliterate ( string $str ) : string Transliterate a string from an alphabet into another alphabet as per the workflow specified in the configuration file.

Защищенные методы

Метод Описание
postTransliterate ( string $str ) : string To be executed after the transliteration workflow.
preTransliterate ( string $str ) : string To be executed before the transliteration workflow.

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

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

Transliteration system's constructor
public __construct ( $file )

__toString() абстрактный публичный Метод

Implement magic method __toString().
abstract public __toString ( )

postTransliterate() защищенный Метод

To be executed after the transliteration workflow.
protected postTransliterate ( string $str ) : string
$str string The transliterated string.
Результат string The transliterated string.

preTransliterate() защищенный Метод

To be executed before the transliteration workflow.
protected preTransliterate ( string $str ) : string
$str string The input string.
Результат string The string ready for transliteration.

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

Transliterate a string from an alphabet into another alphabet as per the workflow specified in the configuration file.
public transliterate ( string $str ) : string
$str string The string to be converted.
Результат string Converted string.

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

$configuration публичное свойство

Load transliteration system configuration.
public $configuration