См. определение в файле call.php строка 20
◆ __construct()
Use one of the named constructors
См. определение в файле call.php строка 62
◆ addUser()
Adds new user to the call.
- Аргументы
-
- Возвращает
- CallUser|false
См. определение в файле call.php строка 128
◆ checkAccess()
Returns true if specified user has access to the call.
- Аргументы
-
int | $userId | Id of the user. |
- Возвращает
- bool
См. определение в файле call.php строка 234
◆ createWithArray()
static createWithArray |
( |
array |
$fields | ) |
|
|
static |
Creates new instance of the Call with values from the database.
- Аргументы
-
- Возвращает
- Call
См. определение в файле call.php строка 718
◆ createWithEntity()
static createWithEntity |
( |
|
$type, |
|
|
|
$provider, |
|
|
|
$entityType, |
|
|
|
$entityId, |
|
|
|
$initiatorId |
|
) |
| |
|
static |
Use this constructor only for creating new calls
См. определение в файле call.php строка 611
◆ createWithPublicId()
static createWithPublicId |
( |
|
$publicId | ) |
|
|
static |
Loads instance of the Call from the database using call's public id.
- Аргументы
-
- Возвращает
- Call|false
- Исключения
-
Bitrix\Main\ArgumentException
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле call.php строка 754
◆ finish()
◆ getAssociatedEntity()
- Возвращает
- Integration\AbstractEntity|null
См. определение в файле call.php строка 206
◆ getChatId()
Returns id of the chat, associated with the call.
- Возвращает
- int
См. определение в файле call.php строка 260
◆ getCurrentUserId()
◆ getEndDate()
Returns date of the call end (if there is one).
- Возвращает
- DateTime|null
См. определение в файле call.php строка 280
◆ getId()
- Возвращает
- int
См. определение в файле call.php строка 69
◆ getInitiatorId()
- Возвращает
- int
См. определение в файле call.php строка 85
◆ getLogService()
◆ getLogToken()
getLogToken |
( |
int |
$userId = 0 , |
|
|
int |
$ttl = 3600 |
|
) |
| |
◆ getMaxCallServerParticipants()
static getMaxCallServerParticipants |
( |
| ) |
|
|
static |
◆ getMaxParticipants()
static getMaxParticipants |
( |
| ) |
|
|
static |
◆ getMaxUsers()
◆ getParentId()
- Возвращает
- int|false
См. определение в файле call.php строка 250
◆ getProvider()
- Возвращает
- string
См. определение в файле call.php строка 77
◆ getSignaling()
◆ getStartDate()
Returns date of the call start.
- Возвращает
- DateTime
См. определение в файле call.php строка 270
◆ getState()
- Возвращает
- string
См. определение в файле call.php строка 242
◆ getUser()
- Аргументы
-
- Возвращает
- CallUser|null
См. определение в файле call.php строка 94
◆ getUsers()
Returns arrays of ids of the users, currently participating in the call.
- Возвращает
- int[]
См. определение в файле call.php строка 104
◆ hasActiveUsers()
hasActiveUsers |
( |
bool |
$strict = true | ) |
|
Call is considered active if it has at least:
- one user in ready state
- another user in ready or calling state
- Возвращает
- bool
См. определение в файле call.php строка 173
◆ hasUser()
Return true if a user is the part of the call.
- Аргументы
-
int | $userId | Id of the user. |
- Возвращает
- bool
См. определение в файле call.php строка 116
◆ isCallServerEnabled()
static isCallServerEnabled |
( |
| ) |
|
|
static |
◆ isFeedbackAllowed()
static isFeedbackAllowed |
( |
| ) |
|
|
static |
◆ loadUsers()
◆ loadWithId()
◆ makeClone()
makeClone |
( |
|
$newProvider = null | ) |
|
◆ onVoximplantConferenceFinished()
static onVoximplantConferenceFinished |
( |
Event |
$event | ) |
|
|
static |
◆ removeUser()
◆ save()
◆ saveStat()
◆ searchActive()
static searchActive |
( |
|
$type, |
|
|
|
$provider, |
|
|
|
$entityType, |
|
|
|
$entityId, |
|
|
|
$currentUserId = 0 |
|
) |
| |
|
static |
- Аргументы
-
string | $type | |
string | $provider | |
string | $entityType | |
string | $entityId | |
int | $currentUserId | |
- Возвращает
- Call|null
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле call.php строка 672
◆ setAssociatedEntity()
setAssociatedEntity |
( |
|
$entityType, |
|
|
|
$entityId |
|
) |
| |
◆ setLogUrl()
setLogUrl |
( |
string |
$logUrl | ) |
|
◆ toArray()
toArray |
( |
|
$currentUserId = 0 | ) |
|
◆ updateState()
◆ $associatedEntity
◆ $chatId
◆ $endDate
◆ $entityId
◆ $entityType
◆ $id
◆ $initiatorId
◆ $isPublic
◆ $logUrl
◆ $parentId
◆ $provider
◆ $publicId
◆ $signaling
◆ $startDate
◆ $state
◆ $type
◆ $users
◆ PROVIDER_PLAIN
const PROVIDER_PLAIN = 'Plain' |
◆ PROVIDER_VOXIMPLANT
const PROVIDER_VOXIMPLANT = 'Voximplant' |
◆ RECORD_TYPE_AUDIO
const RECORD_TYPE_AUDIO = 'audio' |
◆ RECORD_TYPE_VIDEO
const RECORD_TYPE_VIDEO = 'video' |
◆ STATE_ANSWERED
const STATE_ANSWERED = 'answered' |
◆ STATE_FINISHED
const STATE_FINISHED = 'finished' |
◆ STATE_INVITING
const STATE_INVITING = 'inviting' |
◆ STATE_NEW
◆ TYPE_INSTANT
◆ TYPE_PERMANENT