EmailSourceService
extends Component
in package
Table of Contents
- EVENT_REGISTER = 'event_register'
- $_sources : array<string|int, EmailSourceInterface>
- getAll() : array<string|int, mixed>
- Get all emails
- getByHandle() : EmailSourceInterface
- Get an email source by handle
- has() : bool
- Does a handle exists
- register() : mixed
- Register email sources
- triggerEvent() : mixed
- Trigger an event
Constants
EVENT_REGISTER
public
mixed
EVENT_REGISTER
= 'event_register'
Properties
$_sources
protected
array<string|int, EmailSourceInterface>
$_sources
Methods
getAll()
Get all emails
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getByHandle()
Get an email source by handle
public
getByHandle(string $handle) : EmailSourceInterface
Parameters
- $handle : string
Return values
EmailSourceInterface —has()
Does a handle exists
public
has(string $handle) : bool
Parameters
- $handle : string
Return values
bool —register()
Register email sources
protected
register() : mixed
Return values
mixed —triggerEvent()
Trigger an event
protected
triggerEvent(string $type, Event $event) : mixed
Parameters
- $type : string
- $event : Event