class ChannelObserver (View source)

Methods

void
created(Channel $channel)

Handle the User "created" event.

void
updated(Channel $channel)

Handle the User "updated" event.

void
deleted(Channel $channel)

Handle the User "deleted" event.

void
forceDeleted(Channel $channel)

Handle the User "forceDeleted" event.

void
ensureOnlyOneDefault(Channel $savedChannel)

Ensures that only one default channel exists.

Details

void created(Channel $channel)

Handle the User "created" event.

Parameters

Channel $channel

Return Value

void

void updated(Channel $channel)

Handle the User "updated" event.

Parameters

Channel $channel

Return Value

void

void deleted(Channel $channel)

Handle the User "deleted" event.

Parameters

Channel $channel

Return Value

void

void forceDeleted(Channel $channel)

Handle the User "forceDeleted" event.

Parameters

Channel $channel

Return Value

void

protected void ensureOnlyOneDefault(Channel $savedChannel)

Ensures that only one default channel exists.

Parameters

Channel $savedChannel

The channel that was just saved.

Return Value

void