Ad extends Letter
Class Base
Table of Contents
Constants
- SEARCH_FIELD_NAME = 'SEARCH_CONTENT'
Methods
- __construct() : mixed
- Base constructor.
- addError() : mixed
- Add error.
- canChangeSegments() : bool
- Return true if can change segments.
- canChangeTemplate() : bool
- Return true if can change template.
- clearErrors() : mixed
- Clear errors.
- copy() : int|null
- Copy.
- create() : static
- Create instance.
- createInstanceByArray() : static|Letter|Ad|Rc|null
- Create instance by array data.
- createInstanceByContactId() : static|Ad|null
- Create instance by contact ID.
- createInstanceById() : static|Letter|Ad|Rc|null
- Create instance by ID.
- createInstanceByPostingId() : static|Ad|null
- Create instance by posting ID.
- get() : mixed
- Get data value by key.
- getCampaignId() : mixed
- Get campaign ID.
- getCounter() : Counter
- Get counter instance.
- getData() : mixed
- Get data.
- getDataClass() : DataManager
- Get data manager.
- getDefaultSelectFields() : mixed
- getDuration() : Duration
- Get duration instance.
- getErrorCollection() : ErrorCollection
- Get error collection.
- getErrorMessages() : array<string|int, mixed>
- Get error messages.
- getErrors() : array<string|int, mixed>
- Get errors.
- getId() : int
- Get ID.
- getLastPostingData() : array<string|int, mixed>
- Get last posting data.
- getList() : Result
- Get list.
- getListWithMessageFields() : ArrayResult
- Get list with message fields
- getMessage() : Adapter
- Get Message instance.
- getMethod() : Method
- Get method instance.
- getSearchBuilder() : null|Builder
- Get data class.
- getState() : State
- Get state instance.
- getUser() : mixed
- Get user.
- halt() : bool
- Halt.
- hasErrors() : bool
- Return true if it have errors.
- hasStatistics() : bool
- Return true if it have statistics.
- isReiterate() : bool
- Is reiterate letter.
- isSupportHeatMap() : bool
- Is support heat map.
- isSupportReiterate() : bool
- Is support reiterate run.
- isSupportTesting() : bool
- Is support testing.
- isTrigger() : bool
- Is trigger letter.
- load() : bool
- Load.
- loadByArray() : bool
- Load by array.
- loadData() : array<string|int, mixed>|null
- Load data.
- loadDataSegments() : array<string|int, mixed>
- Load segments data.
- mergeData() : $this
- Merge data.
- pause() : bool
- Pause.
- plan() : bool
- Plan sending.
- remove() : bool
- Remove.
- removeById() : bool
- Remove by letter ID.
- resume() : bool
- Resume.
- save() : mixed
- Save.
- saveSearchIndex() : bool
- Save search index.
- send() : bool
- Send.
- sendErrors() : bool
- Send errors.
- set() : $this
- Set data value by key.
- setData() : $this
- Set data.
- setId() : $this
- Set ID.
- setUser() : mixed
- Set user.
- stop() : bool
- Stop.
- test() : Result
- Send test message to recipient.
- unsetByKey() : $this
- Unset data value by key.
- wait() : bool
- Wait sending.
Constants
SEARCH_FIELD_NAME
public
mixed
SEARCH_FIELD_NAME
= 'SEARCH_CONTENT'
Methods
__construct()
Base constructor.
public
__construct([int|null $id = null ]) : mixed
Parameters
- $id : int|null = null
-
ID.
addError()
Add error.
public
addError(string $message[, string|null $code = null ]) : mixed
Parameters
- $message : string
-
Message text.
- $code : string|null = null
-
Code.
canChangeSegments()
Return true if can change segments.
public
canChangeSegments() : bool
Return values
boolcanChangeTemplate()
Return true if can change template.
public
canChangeTemplate() : bool
Return values
boolclearErrors()
Clear errors.
public
clearErrors() : mixed
copy()
Copy.
public
copy() : int|null
Return values
int|nullcreate()
Create instance.
public
static create([int|null $id = null ]) : static
Parameters
- $id : int|null = null
-
ID.
Return values
staticcreateInstanceByArray()
Create instance by array data.
public
static createInstanceByArray(array<string|int, mixed> $data[, array<string|int, mixed> $messageCodes = [] ]) : static|Letter|Ad|Rc|null
Parameters
- $data : array<string|int, mixed>
-
Data.
- $messageCodes : array<string|int, mixed> = []
-
Message codes.
Return values
static|Letter|Ad|Rc|nullcreateInstanceByContactId()
Create instance by contact ID.
public
static createInstanceByContactId(int $contactId[, array<string|int, mixed> $messageCodes = [] ]) : static|Ad|null
Parameters
- $contactId : int
-
Contact ID.
- $messageCodes : array<string|int, mixed> = []
-
Message codes.
Return values
static|Ad|nullcreateInstanceById()
Create instance by ID.
public
static createInstanceById([int|null $id = null ][, array<string|int, mixed> $messageCodes = [] ]) : static|Letter|Ad|Rc|null
Parameters
- $id : int|null = null
-
ID.
- $messageCodes : array<string|int, mixed> = []
-
Message codes.
Return values
static|Letter|Ad|Rc|nullcreateInstanceByPostingId()
Create instance by posting ID.
public
static createInstanceByPostingId(int $postingId) : static|Ad|null
Parameters
- $postingId : int
-
Posting ID.
Return values
static|Ad|nullget()
Get data value by key.
public
get(string $key[, mixed|null $defaultValue = null ]) : mixed
Parameters
- $key : string
-
Key.
- $defaultValue : mixed|null = null
-
Default value.
getCampaignId()
Get campaign ID.
public
getCampaignId() : mixed
getCounter()
Get counter instance.
public
getCounter() : Counter
Return values
CountergetData()
Get data.
public
getData() : mixed
getDataClass()
Get data manager.
public
static getDataClass() : DataManager
Return values
DataManagergetDefaultSelectFields()
public
static getDefaultSelectFields() : mixed
getDuration()
Get duration instance.
public
getDuration() : Duration
Return values
DurationgetErrorCollection()
Get error collection.
public
getErrorCollection() : ErrorCollection
Return values
ErrorCollectiongetErrorMessages()
Get error messages.
public
getErrorMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrors()
Get errors.
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Get ID.
public
getId() : int
Return values
intgetLastPostingData()
Get last posting data.
public
getLastPostingData() : array<string|int, mixed>
Return values
array<string|int, mixed>getList()
Get list.
public
static getList([array<string|int, mixed> $parameters = array() ]) : Result
Parameters
- $parameters : array<string|int, mixed> = array()
-
Parameters.
Return values
ResultgetListWithMessageFields()
Get list with message fields
public
static getListWithMessageFields([array<string|int, mixed> $parameters = array() ]) : ArrayResult
Parameters
- $parameters : array<string|int, mixed> = array()
-
Getlist params.
Tags
Return values
ArrayResultgetMessage()
Get Message instance.
public
getMessage() : Adapter
Tags
Return values
AdaptergetMethod()
Get method instance.
public
getMethod() : Method
Return values
MethodgetSearchBuilder()
Get data class.
public
static getSearchBuilder() : null|Builder
Return values
null|BuildergetState()
Get state instance.
public
getState() : State
Return values
StategetUser()
Get user.
public
getUser() : mixed
Tags
halt()
Halt.
public
halt() : bool
Return values
boolhasErrors()
Return true if it have errors.
public
hasErrors() : bool
Return values
boolhasStatistics()
Return true if it have statistics.
public
hasStatistics() : bool
Return values
boolisReiterate()
Is reiterate letter.
public
isReiterate() : bool
Return values
boolisSupportHeatMap()
Is support heat map.
public
isSupportHeatMap() : bool
Return values
boolisSupportReiterate()
Is support reiterate run.
public
isSupportReiterate() : bool
Return values
boolisSupportTesting()
Is support testing.
public
isSupportTesting() : bool
Return values
boolisTrigger()
Is trigger letter.
public
isTrigger() : bool
Return values
boolload()
Load.
public
load(int $id) : bool
Parameters
- $id : int
-
ID.
Return values
boolloadByArray()
Load by array.
public
loadByArray(array<string|int, mixed> $data) : bool
Parameters
- $data : array<string|int, mixed>
-
Data.
Return values
boolloadData()
Load data.
public
loadData(int $id) : array<string|int, mixed>|null
Parameters
- $id : int
-
ID.
Return values
array<string|int, mixed>|nullloadDataSegments()
Load segments data.
public
loadDataSegments(int $id) : array<string|int, mixed>
Parameters
- $id : int
-
ID.
Return values
array<string|int, mixed>mergeData()
Merge data.
public
mergeData(array<string|int, mixed> $data) : $this
Parameters
- $data : array<string|int, mixed>
-
Data.
Return values
$thispause()
Pause.
public
pause() : bool
Return values
boolplan()
Plan sending.
public
plan(Date $date) : bool
Parameters
- $date : Date
-
Date.
Return values
boolremove()
Remove.
public
remove() : bool
Return values
boolremoveById()
Remove by letter ID.
public
static removeById(int $id) : bool
Parameters
- $id : int
-
Letter ID.
Return values
boolresume()
Resume.
public
resume() : bool
Return values
boolsave()
Save.
public
save() : mixed
saveSearchIndex()
Save search index.
public
saveSearchIndex() : bool
Return values
boolsend()
Send.
public
send() : bool
Return values
boolsendErrors()
Send errors.
public
sendErrors() : bool
Return values
boolset()
Set data value by key.
public
set(string $key, mixed $value) : $this
Parameters
- $key : string
-
Key.
- $value : mixed
-
Value.
Return values
$thissetData()
Set data.
public
setData(array<string|int, mixed> $data) : $this
Parameters
- $data : array<string|int, mixed>
-
Data.
Return values
$thissetId()
Set ID.
public
setId(int $id) : $this
Parameters
- $id : int
-
ID.
Return values
$thissetUser()
Set user.
public
setUser([User|null $user = null ]) : mixed
Parameters
- $user : User|null = null
-
User.
Tags
stop()
Stop.
public
stop() : bool
Return values
booltest()
Send test message to recipient.
public
test(array<string|int, mixed> $codes[, array<string|int, mixed> $parameters = array() ]) : Result
Parameters
- $codes : array<string|int, mixed>
-
Recipient codes.
- $parameters : array<string|int, mixed> = array()
-
Parameters.
Return values
ResultunsetByKey()
Unset data value by key.
public
unsetByKey(string $key) : $this
Parameters
- $key : string
-
Key.
Return values
$thiswait()
Wait sending.
public
wait() : bool