PHP Class 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.
Show file
Open project: nodesagency/Platform-Crud-Plugin
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$_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 |
|
Public Methods
Method Details
__construct()
public method
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()
public method
implementedEvents()
public method
You can override this function to add you own listener callbacks
SetFlash Crud Event callback
Property Details
$_config protected property
Configurations for TranslationsEvent
protected array $_config |
return |
array |
|
$_crud protected property
protected CrudComponent $_crud |
return |
CrudComponent |
|
$_defaults protected property
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 |
return |
array |
|
$_subject protected property
protected CrudSubject $_subject |
return |
CrudSubject |
|