Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Ednaru
+ Граф наследования:Ednaru:

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

 __construct ()
 
 isAvailable ()
 
 getId ()
 
 getName ()
 
 getShortName ()
 
 isRegistered ()
 
 register (array $fields)
 
 getOwnerInfo ()
 
 getExternalManageUrl ()
 
 getMessageStatus (array $messageFields)
 
 sendMessage (array $messageFields)
 
 testConnection ()
 
 getFromList ()
 
 refreshFromList ()
 
 getLineId ()
 
 getCallbackUrl ()
 
 isTemplatesBased ()
 
 isCorrectFrom ($from)
 
 getTemplatesList (array $context=null)
 
 prepareTemplate ($templateData)
 
 getMessageTemplates (string $subject='')
 
 getManageUrl ()
 
 getSentTemplateMessage (string $from, string $to)
 
 prepareMessageBodyForSave (string $text)
 
 setSocketTimeout (int $socketTimeout)
 
 setStreamTimeout (int $streamTimeout)
 
 addRefreshFromListAgent ()
 
- Открытые члены унаследованные от BaseConfigurable
 isConfigurable ()
 
 isDemo ()
 
 isConfirmed ()
 
 setDefaultFrom ($from)
 
 canUse ()
 
 confirmRegistration (array $fields)
 
 sendConfirmationCode ()
 
 enableDemo ()
 
 disableDemo ()
 
 sync ()
 
 clearOptions ()
 
 getConfigComponentTemplatePageName ()
 
- Открытые члены унаследованные от Base
 getType ()
 
 getExternalId ()
 
 getDefaultFrom ()
 
 getFirstFromList ()
 

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

static isSupported ()
 
static resolveStatus ($serviceStatus)
 
static refreshFromListAgent ()
 
- Открытые статические члены унаследованные от Base
static className ()
 

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

const ID = 'ednaru'
 
const DISABLE_INTERNATIONAL = 'disable_international'
 

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

Providers Edna EdnaRu $utils
 
WhatsApp EmojiConverter $emoji
 
- Защищенные данные унаследованные от BaseConfigurable
 $options
 
Providers DemoManager $demoManager
 
Providers Registrar $registrar
 
Providers OptionManager $optionManager
 
Providers TemplateManager $templateManager
 
- Защищенные данные унаследованные от Base
Providers Informant $informant
 
Providers Initiator $initiator
 
Providers Sender $sender
 
int $socketTimeout = 10
 
int $streamTimeout = 30
 

Дополнительные унаследованные члены

- Защищенные члены унаследованные от BaseConfigurable
 setOptions (array $options)
 
 getOptions ()
 
 setOption ($optionName, $optionValue)
 
 getOption ($optionName, $defaultValue=null)
 
- Защищенные члены унаследованные от Base
 prepareMessageBodyForSend (string $text)
 

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

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

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

◆ __construct()

__construct ( )

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

Методы

◆ addRefreshFromListAgent()

addRefreshFromListAgent ( )

Adds agent for execution.

Возвращает
void
См. также
refreshFromListAgent

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

◆ getCallbackUrl()

getCallbackUrl ( )

Переопределяет метод предка BaseConfigurable.

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

◆ getExternalManageUrl()

getExternalManageUrl ( )
Возвращает
string

Переопределяет метод предка BaseConfigurable.

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

◆ getFromList()

getFromList ( )
Возвращает
array<array{id: int, name: string, channelPhone: string}>

Переопределяет метод предка Base.

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

◆ getId()

getId ( )

Переопределяет метод предка Base.

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

◆ getLineId()

getLineId ( )

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

◆ getManageUrl()

getManageUrl ( )
Возвращает
string

Переопределяет метод предка BaseConfigurable.

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

◆ getMessageStatus()

getMessageStatus ( array $messageFields)
Аргументы
array$messageFields
Возвращает
MessageStatus Message status result.

Переопределяет метод предка BaseConfigurable.

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

◆ getMessageTemplates()

getMessageTemplates ( string $subject = '')

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

◆ getName()

getName ( )
Возвращает
string

Переопределяет метод предка Base.

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

◆ getOwnerInfo()

getOwnerInfo ( )
Возвращает
array

Переопределяет метод предка BaseConfigurable.

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

◆ getSentTemplateMessage()

getSentTemplateMessage ( string $from,
string $to )

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

◆ getShortName()

getShortName ( )
Возвращает
string

Переопределяет метод предка Base.

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

◆ getTemplatesList()

getTemplatesList ( array $context = null)

@inheritDoc

Переопределяет метод предка BaseConfigurable.

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

◆ isAvailable()

isAvailable ( )

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

◆ isCorrectFrom()

isCorrectFrom ( $from)
Аргументы
string$from
Возвращает
bool

Переопределяет метод предка Base.

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

◆ isRegistered()

isRegistered ( )

Check registration state.

Возвращает
bool

Переопределяет метод предка BaseConfigurable.

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

◆ isSupported()

static isSupported ( )
static
Возвращает
bool

Переопределяет метод предка Base.

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

◆ isTemplatesBased()

isTemplatesBased ( )

@inheritDoc

Переопределяет метод предка BaseConfigurable.

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

◆ prepareMessageBodyForSave()

prepareMessageBodyForSave ( string $text)

Prepares text for message body.

Переопределяет метод предка Base.

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

◆ prepareTemplate()

prepareTemplate ( $templateData)

@inheritDoc

Переопределяет метод предка BaseConfigurable.

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

◆ refreshFromList()

refreshFromList ( )

The agent's goal is regular refreshing FromList.

Возвращает
void

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

◆ refreshFromListAgent()

static refreshFromListAgent ( )
static

The agent's goal is regular refreshing FromList cache.

Возвращает
string

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

◆ register()

register ( array $fields)
Аргументы
array$fields
Возвращает
Result

Переопределяет метод предка BaseConfigurable.

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

◆ resolveStatus()

static resolveStatus ( $serviceStatus)
static

Converts service status to internal status

См. также
\Bitrix\MessageService\MessageStatus
Аргументы
mixed$serviceStatus
Возвращает
int

Переопределяет метод предка Base.

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

◆ sendMessage()

sendMessage ( array $messageFieldsFields)
Аргументы
array$messageFieldsFields
Возвращает
Result\SendMessage Send operation result.

Переопределяет метод предка Base.

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

◆ setSocketTimeout()

setSocketTimeout ( int $socketTimeout)
Аргументы
int$socketTimeout
Возвращает
Base

Переопределяет метод предка Base.

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

◆ setStreamTimeout()

setStreamTimeout ( int $streamTimeout)
Аргументы
int$streamTimeout
Возвращает
Base

Переопределяет метод предка Base.

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

◆ testConnection()

testConnection ( )

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

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

◆ $emoji

WhatsApp EmojiConverter $emoji
protected

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

◆ $utils

Providers Edna EdnaRu $utils
protected

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

◆ DISABLE_INTERNATIONAL

const DISABLE_INTERNATIONAL = 'disable_international'

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

◆ ID

const ID = 'ednaru'

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