LocaleLocaleEventListener
extends DefaultEventListener
in package
LocaleLocaleEventListener
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getComponent() : SystemComponentController
- Get a component controller object
- onEvent() : mixed
- postPersist() : mixed
- * Fills the new news locales (news, categories, types and settings) with the default locale's values when adding a new Cx\Core\Locale\Model\Entity\Locale
- preRemove() : mixed
- Deletes the news locales (news, categories, types settings) when deleting a Cx\Core\Locale\Model\Entity\Locale
Properties
$cx
protected
Cx
$cx
Methods
__construct()
public
__construct(Cx $cx) : mixed
Parameters
- $cx : Cx
getComponent()
Get a component controller object
public
getComponent(string $name) : SystemComponentController
Parameters
- $name : string
-
component name
Return values
SystemComponentController —The requested component controller or null if no such component exists
onEvent()
public
onEvent(mixed $eventName, array<string|int, mixed> $eventArgs) : mixed
Parameters
- $eventName : mixed
- $eventArgs : array<string|int, mixed>
postPersist()
* Fills the new news locales (news, categories, types and settings) with the default locale's values when adding a new Cx\Core\Locale\Model\Entity\Locale
public
postPersist( $eventArgs) : mixed
Parameters
preRemove()
Deletes the news locales (news, categories, types settings) when deleting a Cx\Core\Locale\Model\Entity\Locale
public
preRemove( $eventArgs) : mixed