Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс Sender

Открытые члены

 __construct (Letter $letter)
 
 setLimit ($limit)
 
 setTimeout ($timeout)
 
 getResultCode ()
 
 send ()
 
 load ($postingId)
 
 startTime ()
 
 isTransportLimitsExceeded ()
 
 getExceededLimiter ()
 
 isTimeout ()
 
 isLimitExceeded ()
 
 getThreadStrategy ()
 
 setThreadStrategy (IThreadStrategy $threadStrategy)
 
 getMessage ()
 

Открытые статические члены

static updateActualStatus ($postingId, $isPrevented=false, $awaitThread=false)
 
static lock ($id, $threadId=0)
 
static applyRecipientToMessage (Adapter $message, array $recipient, $isTest=false)
 
static unlock ($id, $threadId=0)
 

Открытые атрибуты

const RESULT_NONE = 0
 
const RESULT_SENT = 1
 
const RESULT_CONTINUE = 2
 
const RESULT_ERROR = 3
 
const RESULT_WAIT = 4
 
const RESULT_WAITING_RECIPIENT = 5
 

Защищенные члены

 initRecipients ()
 
 changeStatusToPart ()
 
 prevent ()
 
 isPrevented ()
 
 isStoppedOnRun ()
 
 setPostingDateSend ()
 
 sendToRecipient ($recipient)
 
 canDenySendToRecipient ($recipient)
 
 canSendConsentToRecipient ($recipient)
 
 canSendMessageToRecipient ($recipient)
 
 executeConsentToRecipient ($recipient)
 
 executeEvent ($recipient, $success)
 
 needConsent ()
 
 updateRecipientStatus ($primary, $status)
 

Защищенные статические члены

static getLockUniqueSalt ($generate=true)
 
static prepareRecipientFields ($recipient)
 
static getRecipientsToSend (\Bitrix\Main\ORM\Query\Result $result)
 

Защищенные данные

 $isConsentSupport
 
 $letter
 
 $message
 
 $timeout
 
 $timeAtStart
 
 $limit
 
 $sentCount = 0
 
 $checkStatusStep = 25
 
 $checkStatusCounter = 0
 
 $isPrevented = false
 
 $isTrigger = false
 
 $isReiterate = false
 
 $mailingId
 
 $postingId
 
 $letterId
 
 $status
 
 $sendCount = 0
 
 $resultCode = self::RESULT_NONE
 
 $threadStrategy
 

Подробное описание

См. определение в файле sender.php строка 43

Конструктор(ы)

◆ __construct()

__construct ( Letter  $letter)

Sender constructor.

Аргументы
Letter$letterLetter.

См. определение в файле sender.php строка 107

Методы

◆ applyRecipientToMessage()

static applyRecipientToMessage ( Adapter  $message,
array  $recipient,
  $isTest = false 
)
static

Apply recipient data to message.

Аргументы
Adapter$messageMessage.
array$recipientRecipient.
bool$isTestIs test.
Возвращает
void

См. определение в файле sender.php строка 774

◆ canDenySendToRecipient()

canDenySendToRecipient (   $recipient)
protected

См. определение в файле sender.php строка 933

◆ canSendConsentToRecipient()

canSendConsentToRecipient (   $recipient)
protected

См. определение в файле sender.php строка 948

◆ canSendMessageToRecipient()

canSendMessageToRecipient (   $recipient)
protected

См. определение в файле sender.php строка 962

◆ changeStatusToPart()

changeStatusToPart ( )
protected

См. определение в файле sender.php строка 406

◆ executeConsentToRecipient()

executeConsentToRecipient (   $recipient)
protected

См. определение в файле sender.php строка 969

◆ executeEvent()

executeEvent (   $recipient,
  $success 
)
protected

См. определение в файле sender.php строка 991

◆ getExceededLimiter()

getExceededLimiter ( )

Get transport exceeded limiter.

Возвращает
iLimiter|null

См. определение в файле sender.php строка 577

◆ getLockUniqueSalt()

static getLockUniqueSalt (   $generate = true)
staticprotected

См. определение в файле sender.php строка 550

◆ getMessage()

getMessage ( )
Возвращает
Adapter

См. определение в файле sender.php строка 928

◆ getRecipientsToSend()

static getRecipientsToSend ( \Bitrix\Main\ORM\Query\Result  $result)
staticprotected

См. определение в файле sender.php строка 1028

◆ getResultCode()

getResultCode ( )

Get result code.

Возвращает
int

См. определение в файле sender.php строка 149

◆ getThreadStrategy()

getThreadStrategy ( )
Возвращает
IThreadStrategy

См. определение в файле sender.php строка 909

◆ initRecipients()

initRecipients ( )
protected

См. определение в файле sender.php строка 379

◆ isLimitExceeded()

isLimitExceeded ( )

Check limits.

Возвращает
bool

См. определение в файле sender.php строка 850

◆ isPrevented()

isPrevented ( )
protected

См. определение в файле sender.php строка 673

◆ isStoppedOnRun()

isStoppedOnRun ( )
protected

См. определение в файле sender.php строка 678

◆ isTimeout()

isTimeout ( )

Check timeout.

Возвращает
bool

См. определение в файле sender.php строка 835

◆ isTransportLimitsExceeded()

isTransportLimitsExceeded ( )

Check transport limits.

Возвращает
bool

См. определение в файле sender.php строка 567

◆ load()

load (   $postingId)

Load posting.

Аргументы
integer$postingIdPosting ID.
Возвращает
void

См. определение в файле sender.php строка 326

◆ lock()

static lock (   $id,
  $threadId = 0 
)
static

Lock posting for preventing double sending

Аргументы
integer$idID.
$threadIddefault 0
Возвращает
bool
Исключения
Main

Db\SqlQueryException

Исключения
Main

SystemException

См. определение в файле sender.php строка 517

◆ needConsent()

needConsent ( )
protected

См. определение в файле sender.php строка 1007

◆ prepareRecipientFields()

static prepareRecipientFields (   $recipient)
staticprotected

См. определение в файле sender.php строка 802

◆ prevent()

prevent ( )
protected

См. определение в файле sender.php строка 582

◆ send()

integer $sendCount Count of send ( )

Send.

Возвращает
void
Исключения
DB

Exception

См. определение в файле sender.php строка 160

◆ sendToRecipient()

sendToRecipient (   $recipient)
protected

См. определение в файле sender.php строка 715

◆ setLimit()

setLimit (   $limit)

Set limit.

Аргументы
integer$limitLimit.
Возвращает
$this

См. определение в файле sender.php строка 123

◆ setPostingDateSend()

setPostingDateSend ( )
protected

См. определение в файле sender.php строка 705

◆ setThreadStrategy()

setThreadStrategy ( IThreadStrategy  $threadStrategy)
Аргументы
IThreadStrategy$threadStrategy
Возвращает
Sender

См. определение в файле sender.php строка 919

◆ setTimeout()

setTimeout (   $timeout)

Set timeout.

Аргументы
integer$timeoutTimeout.
Возвращает
$this

См. определение в файле sender.php строка 137

◆ startTime()

startTime ( )

Start time watch.

Возвращает
void

См. определение в файле sender.php строка 368

◆ unlock()

static unlock (   $id,
  $threadId = 0 
)
static

UnLock posting that was locking for preventing double sending

Аргументы
integer$idID.
int$threadId
Возвращает
bool
Исключения
Main

Db\SqlQueryException

Исключения
Main

SystemException

См. определение в файле sender.php строка 870

◆ updateActualStatus()

static updateActualStatus (   $postingId,
  $isPrevented = false,
  $awaitThread = false 
)
static

Update actual status.

Аргументы
int$postingIdPosting ID.
bool$isPreventedIs sending prevented.
Возвращает
string

См. определение в файле sender.php строка 452

◆ updateRecipientStatus()

updateRecipientStatus (   $primary,
  $status 
)
protected

См. определение в файле sender.php строка 1017

Данные класса

◆ $checkStatusCounter

$checkStatusCounter = 0
protected

См. определение в файле sender.php строка 73

◆ $checkStatusStep

$checkStatusStep = 25
protected

См. определение в файле sender.php строка 71

◆ $isConsentSupport

$isConsentSupport
protected

См. определение в файле sender.php строка 53

◆ $isPrevented

$isPrevented = false
protected

См. определение в файле sender.php строка 76

◆ $isReiterate

$isReiterate = false
protected

См. определение в файле sender.php строка 82

◆ $isTrigger

$isTrigger = false
protected

См. определение в файле sender.php строка 79

◆ $letter

$letter
protected

См. определение в файле sender.php строка 56

◆ $letterId

$letterId
protected

См. определение в файле sender.php строка 89

◆ $limit

$limit
protected

См. определение в файле sender.php строка 66

◆ $mailingId

$mailingId
protected

См. определение в файле sender.php строка 85

◆ $message

$message
protected

См. определение в файле sender.php строка 58

◆ $postingId

$postingId
protected

См. определение в файле sender.php строка 87

◆ $resultCode

$resultCode = self::RESULT_NONE
protected

См. определение в файле sender.php строка 95

◆ $sendCount

$sendCount = 0
protected

См. определение в файле sender.php строка 93

◆ $sentCount

$sentCount = 0
protected

См. определение в файле sender.php строка 68

◆ $status

$status
protected

См. определение в файле sender.php строка 91

◆ $threadStrategy

$threadStrategy
protected

См. определение в файле sender.php строка 100

◆ $timeAtStart

$timeAtStart
protected

См. определение в файле sender.php строка 63

◆ $timeout

$timeout
protected

См. определение в файле sender.php строка 61

◆ RESULT_CONTINUE

const RESULT_CONTINUE = 2

См. определение в файле sender.php строка 47

◆ RESULT_ERROR

const RESULT_ERROR = 3

См. определение в файле sender.php строка 48

◆ RESULT_NONE

const RESULT_NONE = 0

См. определение в файле sender.php строка 45

◆ RESULT_SENT

const RESULT_SENT = 1

См. определение в файле sender.php строка 46

◆ RESULT_WAIT

const RESULT_WAIT = 4

См. определение в файле sender.php строка 49

◆ RESULT_WAITING_RECIPIENT

const RESULT_WAITING_RECIPIENT = 5

См. определение в файле sender.php строка 50