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.
파일 보기
프로젝트 열기: nodesagency/Platform-Crud-Plugin
1 사용 예제들
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$_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 |
|
공개 메소드들
메소드 상세
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
implementedEvents()
공개 메소드
You can override this function to add you own listener callbacks
SetFlash Crud Event callback
프로퍼티 상세
Configurations for TranslationsEvent
protected array $_config |
리턴 |
array |
|
protected CrudComponent $_crud |
리턴 |
CrudComponent |
|
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 |
|
protected CrudSubject $_subject |
리턴 |
CrudSubject |
|