PHP Класс TranslationsListener, Platform-Crud-Plugin
Handles all translations inside Crud and friends
Copyright 2010-2012, Nodes ApS. (http://www.nodesagency.com/)
Licensed under The MIT License
Redistributions of files must retain the above copyright notice.
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$_config |
array |
Configurations for TranslationsEvent |
|
$_crud |
CrudComponent |
Crud Component reference |
|
$_defaults |
array |
domain the translation domain to be used
name the name to use in flash messages - defaults to the model's name property
event-name the remaining array keys are event-name indexed arrays with the flash-message
settings for each event |
|
$_subject |
CrudSubject |
Crud Event subject |
|
Открытые методы
Описание методов
__construct()
публичный Метод
If $key is an array and $value is empty,
$key will be merged directly with $this->_config
If $key is a string it will be passed into Hash::insert
getDefaults()
публичный Метод
implementedEvents()
публичный Метод
You can override this function to add you own listener callbacks
setFlash()
публичный Метод
SetFlash Crud Event callback
Описание свойств
$_config защищенное свойство
Configurations for TranslationsEvent
protected array $_config |
Результат |
array |
|
$_crud защищенное свойство
protected CrudComponent $_crud |
Результат |
CrudComponent |
|
$_defaults защищенное свойство
domain the translation domain to be used
name the name to use in flash messages - defaults to the model's name property
event-name the remaining array keys are event-name indexed arrays with the flash-message
settings for each event
protected array $_defaults |
Результат |
array |
|
$_subject защищенное свойство
protected CrudSubject $_subject |
Результат |
CrudSubject |
|