MetaFox

ChannelManager extends ChannelManager
in package
implements ChannelManagerInterface

Class ChannelManager.

Tags
SuppressWarnings

(PHPMD.LongVariable)

Table of Contents

Interfaces

ChannelManagerInterface

Properties

$notifiableChannelCacheKey  : string
$notificationChannelCacheKey  : string

Methods

forgetChannelCacheForNotifiable()  : bool
getChannelsForAllTypes()  : array<string|int, mixed>
get available channels for all notification types which are currently preferred by site configurations.
getChannelsForNotifiable()  : array<string|int, mixed>
get available channels for all notification types which are currently preferred by $notifiable.
getChannelsForNotifiableByType()  : array<string|int, mixed>
get available channels for notification $type which are currently preferred by $notifiable.
createMobilepushDriver()  : mixed
Create an instance of the mobilepush driver.
createSmsDriver()  : mixed
Create an instance of the SMS driver.
createWebpushDriver()  : mixed
Create an instance of the mobilepush driver.

Properties

$notifiableChannelCacheKey

private string $notifiableChannelCacheKey = 'notification.notifiable.channels.%s_%s'

$notificationChannelCacheKey

private string $notificationChannelCacheKey = 'notification.notification_type.channels'

Methods

getChannelsForAllTypes()

get available channels for all notification types which are currently preferred by site configurations.

public getChannelsForAllTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getChannelsForNotifiable()

get available channels for all notification types which are currently preferred by $notifiable.

public getChannelsForNotifiable(IsNotifiable $notifiable) : array<string|int, mixed>
Parameters
$notifiable : IsNotifiable
Return values
array<string|int, mixed>

getChannelsForNotifiableByType()

get available channels for notification $type which are currently preferred by $notifiable.

public getChannelsForNotifiableByType(IsNotifiable $notifiable, string $type) : array<string|int, mixed>
Parameters
$notifiable : IsNotifiable
$type : string
Return values
array<string|int, mixed>

createMobilepushDriver()

Create an instance of the mobilepush driver.

protected createMobilepushDriver() : mixed
Tags
throws
BindingResolutionException

createSmsDriver()

Create an instance of the SMS driver.

protected createSmsDriver() : mixed
Tags
throws
BindingResolutionException

createWebpushDriver()

Create an instance of the mobilepush driver.

protected createWebpushDriver() : mixed
Tags
throws
BindingResolutionException

        
On this page

Search results