- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/call/call.php
- Класс: BitrixImCallCall
- Вызов: Call::toArray
public function toArray($currentUserId = 0, $withSecrets = false)
{
$result = [
'ID' => $this->id,
'TYPE' => $this->type,
'INITIATOR_ID' => $this->initiatorId,
'IS_PUBLIC' => $this->isPublic ? 'Y' : 'N',
'PUBLIC_ID' => $this->publicId,
'PROVIDER' => $this->provider,
'ENTITY_TYPE' => $this->entityType,
'ENTITY_ID' => $this->entityId,
'PARENT_ID' => $this->parentId,
'STATE' => $this->state,
'START_DATE' => $this->startDate,
'END_DATE' => $this->endDate,
'LOG_URL' => $this->logUrl,
'CHAT_ID' => $this->chatId,
'ASSOCIATED_ENTITY' => ($this->associatedEntity) ? $this->associatedEntity->toArray($currentUserId) : [],
'UUID' => $this->uuid,
'ENDPOINT' => $this->endpoint,
];
if ($withSecrets)
{
$result['SECRET_KEY'] = $this->secretKey;
}
return $result;
}