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

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

 toRestFormat (array $option=[])
 
 toArray (array $options=[])
 

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

static getInstance (Chat $chat)
 
static cleanCache (int $chatId)
 
static getRestEntityName ()
 

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

const TYPE_TASKS = 'TASKS'
 
const TYPE_SONET = 'SONET_GROUP'
 
const TYPE_CRM = 'CRM'
 
const TYPE_MAIL = 'MAIL'
 
const TYPE_CALL = 'CALL'
 

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

 __construct ()
 
 getUrl ()
 
 getRestType ()
 

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

const HAS_URL = false
 
int $chatId
 
string $entityId = ''
 
string $type = ''
 
string $url = ''
 

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

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

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

◆ __construct()

__construct ( )
protected

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

Методы

◆ cleanCache()

static cleanCache ( int $chatId)
static

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

◆ getInstance()

static getInstance ( Chat $chat)
static

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

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

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

◆ getRestType()

getRestType ( )
protected

Переопределяется в CrmType.

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

◆ getUrl()

getUrl ( )
protected

Переопределяется в CalendarType, CrmType, MailType, SonetType и TasksType.

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

◆ toArray()

toArray ( array $options = [])
См. также
\Bitrix\Im\V2\Chat\EntityLink::toRestFormat

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

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

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

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

◆ $chatId

int $chatId
protected

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

◆ $entityId

string $entityId = ''
protected

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

◆ $type

string $type = ''
protected

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

◆ $url

string $url = ''
protected

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

◆ HAS_URL

const HAS_URL = false
protected

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

◆ TYPE_CALL

const TYPE_CALL = 'CALL'

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

◆ TYPE_CRM

const TYPE_CRM = 'CRM'

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

◆ TYPE_MAIL

const TYPE_MAIL = 'MAIL'

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

◆ TYPE_SONET

const TYPE_SONET = 'SONET_GROUP'

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

◆ TYPE_TASKS

const TYPE_TASKS = 'TASKS'

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