Craft Emails (1.x)

EmailShot extends Model
in package

Table of Contents

$dateCreated  : DateTime
$dateUpdated  : DateTime
$email_id  : int
$handle  : string
$id  : int
$name  : string
$saveLogs  : bool
$sent  : int
$uid  : string
$useQueue  : bool
$variables  : array<string|int, mixed>
$_emails  : array<string|int, mixed>
$_sources  : array<string|int, mixed>
$_users  : array<string|int, mixed>
__serialize()  : array<string|int, mixed>
defineRules()  : array<string|int, mixed>
getAllEmails()  : array<string|int, mixed>
Get all emails this shot will be sent to
getDescription()  : string
Get email shot description
getEmail()  : Email
get email object
getEmailCount()  : int
Get the amount of emails this shot will be sent to
getEmails()  : array<string|int, mixed>
Emails getter
getSourceObjects()  : array<string|int, EmailSourceInterface>
Get source objects
getSources()  : array<string|int, mixed>
Sources getter
getUserElements()  : array<string|int, mixed>
Get user elements from their ids
getUsers()  : array<string|int, mixed>
Users getter
setEmails()  : mixed
Emails setter
setSources()  : mixed
Sources setter
setUsers()  : mixed
Users setter

Properties

$variables

public array<string|int, mixed> $variables = []

$_emails

protected array<string|int, mixed> $_emails = []

$_sources

protected array<string|int, mixed> $_sources = []

$_users

protected array<string|int, mixed> $_users = []

Methods

__serialize()

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

defineRules()

public defineRules() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

getAllEmails()

Get all emails this shot will be sent to

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

getDescription()

Get email shot description

public getDescription() : string
Return values
string

getEmailCount()

Get the amount of emails this shot will be sent to

public getEmailCount() : int
Return values
int

getEmails()

Emails getter

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

getSources()

Sources getter

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

getUserElements()

Get user elements from their ids

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

getUsers()

Users getter

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

setEmails()

Emails setter

public setEmails(string|array<string|int, mixed> $emails) : mixed
Parameters
$emails : string|array<string|int, mixed>
Return values
mixed

setSources()

Sources setter

public setSources(string|array<string|int, mixed> $sources) : mixed
Parameters
$sources : string|array<string|int, mixed>
Return values
mixed

setUsers()

Users setter

public setUsers(string|array<string|int, mixed> $users) : mixed
Parameters
$users : string|array<string|int, mixed>
Return values
mixed

Search results