PHP Класс TranslateModule, gxc-cms

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

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

Свойство Тип Описание
$translateComponentId the name of the translate component change this in case you dont use the default name

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

Метод Описание
__callStatic ( $method, $args )
init ( ) TranslateModule::init()
missingTranslation ( $event )
t ( string $message, array $params = [] ) : string translate some message using the module configuration
translator ( ) : MPTranslate get the translate component

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

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

static public __callStatic ( $method, $args )

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

TranslateModule::init()
public init ( )

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

static public missingTranslation ( $event )

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

translate some message using the module configuration
static public t ( string $message, array $params = [] ) : string
$message string
$params array
Результат string translated message

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

get the translate component
static public translator ( ) : MPTranslate
Результат MPTranslate

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

$translateComponentId статическое публичное свойство

the name of the translate component change this in case you dont use the default name
static public $translateComponentId