class CurrencyObserver (View source)

Methods

void
created(Currency $currency)

Handle the Currency "created" event.

void
updated(Currency $currency)

Handle the Currency "updated" event.

void
deleted(Currency $currency)

Handle the Currency "deleted" event.

void
forceDeleted(Currency $currency)

Handle the Currency "forceDeleted" event.

void
ensureOnlyOneDefault(Currency $savedCurrency)

Ensures that only one default currency exists.

Details

void created(Currency $currency)

Handle the Currency "created" event.

Parameters

Currency $currency

Return Value

void

void updated(Currency $currency)

Handle the Currency "updated" event.

Parameters

Currency $currency

Return Value

void

void deleted(Currency $currency)

Handle the Currency "deleted" event.

Parameters

Currency $currency

Return Value

void

void forceDeleted(Currency $currency)

Handle the Currency "forceDeleted" event.

Parameters

Currency $currency

Return Value

void

protected void ensureOnlyOneDefault(Currency $savedCurrency)

Ensures that only one default currency exists.

Parameters

Currency $savedCurrency

The currency that was just saved.

Return Value

void