Adapter implements iBase
Class Adapter
Table of Contents
Interfaces
- iBase
- Interface iMessage
Constants
- PATTERN_STATUS_ITEM = 'ENTITY_ID_'
Methods
- __construct() : mixed
- Message constructor.
- copyConfiguration() : Result|null
- Copy configuration.
- create() : static
- Create instance.
- getAudioValue() : bool|string
- Check value of audio field and prepare it for DB
- getCharset() : string
- Get charset.
- getClickTracker() : Tracker
- Get click tracker.
- getCode() : string
- Get code.
- getConfiguration() : Configuration
- Get configuration.
- getEntityCode() : mixed
- getField() : mixed|string|null
- Get field.
- getFields() : array<string|int, mixed>
- Get fields.
- getId() : string
- Get ID.
- getInstance() : static
- Get instance.
- getName() : string
- Get name.
- getReadTracker() : Tracker
- Get read tracker.
- getRecipientCode() : string
- Get recipient code.
- getRecipientData() : array<string|int, mixed>
- Get recipient data.
- getRecipientId() : string
- Get recipient ID.
- getRecipientType() : string
- Get recipient type.
- getSendDuration() : int
- Get send duration.
- getSiteId() : string
- Get site ID.
- getSiteName() : string
- Get site ID.
- getSiteServerName() : string
- Get site server name.
- getSupportedRecipientTypes() : array<string|int, int>
- Get supported recipient types.
- getSupportedTransports() : array<string|int, mixed>
- Get supported transports.
- getTester() : Tester
- Is support testing.
- getTo() : string
- Get to.
- getTransport() : Adapter
- Get transport.
- getUnsubTracker() : Tracker
- Get unsub tracker.
- hasStatistics() : bool
- Return true if it has statistics.
- isAds() : bool
- Is ads.
- isAvailable() : bool
- Is available.
- isHidden() : bool
- Return true if is hidden.
- isMailing() : bool
- Is mailing.
- isMarketing() : bool
- Is ads.
- isMasterYandex() : bool
- Is master yandex.
- isReturnCustomer() : bool
- Is return customer.
- loadConfiguration() : Configuration
- Load configuration.
- onAfterEnd() : mixed
- onBeforeStart() : mixed
- preHandleReaplaceValue() : mixed
- preHandleReplaceCode() : mixed
- replaceFields() : string
- Replace fields in content.
- saveConfiguration() : Result
- Save configuration.
- send() : bool
- Send.
- setConfigurationData() : void
- Set configuration data.
- setFields() : void
- Set fields.
- setRecipientCode() : void
- Set recipient code.
- setRecipientData() : void
- Set recipient data.
- setRecipientId() : void
- Set recipient ID.
- setRecipientType() : void
- Set recipient type.
- setSiteId() : void
- Set site ID.
- setTransport() : void
- Set transport.
Constants
PATTERN_STATUS_ITEM
public
mixed
PATTERN_STATUS_ITEM
= 'ENTITY_ID_'
Methods
__construct()
Message constructor.
public
__construct(iBase $message) : mixed
Parameters
- $message : iBase
-
Message.
copyConfiguration()
Copy configuration.
public
copyConfiguration(int|string|null $id) : Result|null
Parameters
- $id : int|string|null
-
ID.
Return values
Result|nullcreate()
Create instance.
public
static create(string $code) : static
Parameters
- $code : string
-
Code.
Tags
Return values
staticgetAudioValue()
Check value of audio field and prepare it for DB
public
getAudioValue(string $optionCode, string $newValue) : bool|string
Parameters
- $optionCode : string
-
Field code.
- $newValue : string
-
New field value.
Return values
bool|stringgetCharset()
Get charset.
public
getCharset() : string
Return values
stringgetClickTracker()
Get click tracker.
public
getClickTracker() : Tracker
Return values
TrackergetCode()
Get code.
public
getCode() : string
Return values
stringgetConfiguration()
Get configuration.
public
getConfiguration() : Configuration
Return values
ConfigurationgetEntityCode()
public
getEntityCode() : mixed
Tags
getField()
Get field.
public
getField(string $key) : mixed|string|null
Parameters
- $key : string
-
Key.
Return values
mixed|string|nullgetFields()
Get fields.
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Get ID.
public
getId() : string
Return values
stringgetInstance()
Get instance.
public
static getInstance(string $code) : static
Parameters
- $code : string
-
Message code.
Tags
Return values
staticgetName()
Get name.
public
getName() : string
Return values
stringgetReadTracker()
Get read tracker.
public
getReadTracker() : Tracker
Return values
TrackergetRecipientCode()
Get recipient code.
public
getRecipientCode() : string
Return values
stringgetRecipientData()
Get recipient data.
public
getRecipientData() : array<string|int, mixed>
Return values
array<string|int, mixed>getRecipientId()
Get recipient ID.
public
getRecipientId() : string
Return values
stringgetRecipientType()
Get recipient type.
public
getRecipientType() : string
Return values
stringgetSendDuration()
Get send duration.
public
getSendDuration() : int
Return values
intgetSiteId()
Get site ID.
public
getSiteId() : string
Return values
stringgetSiteName()
Get site ID.
public
getSiteName() : string
Return values
stringgetSiteServerName()
Get site server name.
public
getSiteServerName() : string
Return values
stringgetSupportedRecipientTypes()
Get supported recipient types.
public
getSupportedRecipientTypes() : array<string|int, int>
Return values
array<string|int, int>getSupportedTransports()
Get supported transports.
public
getSupportedTransports() : array<string|int, mixed>
Return values
array<string|int, mixed>getTester()
Is support testing.
public
getTester() : Tester
Return values
TestergetTo()
Get to.
public
getTo() : string
Return values
stringgetTransport()
Get transport.
public
getTransport() : Adapter
Return values
AdaptergetUnsubTracker()
Get unsub tracker.
public
getUnsubTracker() : Tracker
Return values
TrackerhasStatistics()
Return true if it has statistics.
public
hasStatistics() : bool
Return values
boolisAds()
Is ads.
public
isAds() : bool
Return values
boolisAvailable()
Is available.
public
isAvailable() : bool
Return values
boolisHidden()
Return true if is hidden.
public
isHidden() : bool
Return values
boolisMailing()
Is mailing.
public
isMailing() : bool
Return values
boolisMarketing()
Is ads.
public
isMarketing() : bool
Return values
boolisMasterYandex()
Is master yandex.
public
isMasterYandex() : bool
Return values
boolisReturnCustomer()
Is return customer.
public
isReturnCustomer() : bool
Return values
boolloadConfiguration()
Load configuration.
public
loadConfiguration([string|null $id = null ]) : Configuration
Parameters
- $id : string|null = null
-
ID.
Return values
ConfigurationonAfterEnd()
public
onAfterEnd() : mixed
onBeforeStart()
public
onBeforeStart() : mixed
preHandleReaplaceValue()
public
preHandleReaplaceValue(mixed $code, mixed $value) : mixed
Parameters
- $code : mixed
- $value : mixed
preHandleReplaceCode()
public
preHandleReplaceCode(mixed $code, mixed $crmEntityTypeId) : mixed
Parameters
- $code : mixed
- $crmEntityTypeId : mixed
replaceFields()
Replace fields in content.
public
replaceFields([string $content = "" ][, string $replaceChar = '#' ][, mixed $crmEntityTypeId = null ]) : string
Parameters
- $content : string = ""
-
Content.
- $replaceChar : string = '#'
-
Replace char.
- $crmEntityTypeId : mixed = null
Return values
stringsaveConfiguration()
Save configuration.
public
saveConfiguration(Configuration $configuration) : Result
Parameters
- $configuration : Configuration
-
Configuration.
Return values
Resultsend()
Send.
public
send() : bool
Return values
boolsetConfigurationData()
Set configuration data.
public
setConfigurationData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
Data.
setFields()
Set fields.
public
setFields(array<string|int, mixed> $fields) : void
Parameters
- $fields : array<string|int, mixed>
-
Fields.
setRecipientCode()
Set recipient code.
public
setRecipientCode(string $code) : void
Parameters
- $code : string
-
Code.
setRecipientData()
Set recipient data.
public
setRecipientData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
Data.
setRecipientId()
Set recipient ID.
public
setRecipientId(string $id) : void
Parameters
- $id : string
-
Recipient ID.
setRecipientType()
Set recipient type.
public
setRecipientType(string $type) : void
Parameters
- $type : string
-
Type.
setSiteId()
Set site ID.
public
setSiteId([string $id = null ]) : void
Parameters
- $id : string = null
-
ID.
setTransport()
Set transport.
public
setTransport(Adapter $transport) : void
Parameters
- $transport : Adapter
-
Transport.