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

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

 __construct (Call $call, $entityId)
 
 getEntityType ()
 
 getEntityId ($currentUserId=0)
 
 getChatId ()
 
 getUsers ()
 
 checkAccess (int $userId)
 
 canStartCall (int $userId)
 
 getName ($currentUserId)
 
 getAvatar ($currentUserId)
 
 getAvatarColor ($currentUserId)
 
 isPrivateChat ()
 
 onUserAdd ($userId)
 
 onStateChange ($state, $prevState)
 
 sendMessageDeferred ($message, $muted=false)
 
 isBroadcast ()
 
 sendMessage ($message, $muted=false)
 
 toArray ($currentUserId=0)
 
 canExtendChat ()
 
- Открытые члены унаследованные от AbstractEntity
 __construct (Call $call, $entityId)
 
 getEntityId ($currentUserId=0)
 
 getCall ()
 
 setCall (Call $call)
 
 getEntityType ()
 
 canStartCall (int $userId)
 
 checkAccess (int $userId)
 
 getChatId ()
 
 getUsers ()
 
 getName ($currentUserId)
 
 onUserAdd ($userId)
 
 onStateChange ($state, $prevState)
 
 toArray ($currentUserId=0)
 

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

 $chatFields
 
const MUTE_MESSAGE = true
 

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

 $chatId
 
 $chatUsers = []
 
- Защищенные данные унаследованные от AbstractEntity
 $entityId
 
 $initiatorId
 
 $call
 

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

- Защищенные члены унаследованные от AbstractEntity
 getCurrentUserId ()
 

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

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

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

◆ __construct()

__construct ( Call  $call,
  $entityId 
)

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

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

Методы

◆ canExtendChat()

canExtendChat ( )

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

◆ canStartCall()

canStartCall ( int  $userId)

Returns true is user can call users in the associated chat and false otherwise.

Аргументы
int$userId
Возвращает
bool

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

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

◆ checkAccess()

checkAccess ( int  $userId)

Returns true is user has access to the associated chat and false otherwise.

Аргументы
int$userId
Возвращает
bool

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

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

◆ getAvatar()

getAvatar (   $currentUserId)

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

◆ getAvatarColor()

getAvatarColor (   $currentUserId)

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

◆ getChatId()

getChatId ( )

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

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

◆ getEntityId()

getEntityId (   $currentUserId = 0)

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

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

◆ getEntityType()

getEntityType ( )

Returns associated entity type.

Возвращает
string

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

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

◆ getName()

getName (   $currentUserId)

Returns associated entity name.

Аргументы
int$currentUserIdId of the user.
Возвращает
string|false

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

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

◆ getUsers()

getUsers ( )

Returns list of users in the chat

Возвращает
array

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

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

◆ isBroadcast()

isBroadcast ( )

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

◆ isPrivateChat()

isPrivateChat ( )

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

◆ onStateChange()

onStateChange (   $state,
  $prevState 
)

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

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

◆ onUserAdd()

onUserAdd (   $userId)

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

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

◆ sendMessage()

sendMessage (   $message,
  $muted = false 
)

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

◆ sendMessageDeferred()

sendMessageDeferred (   $message,
  $muted = false 
)

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

◆ toArray()

toArray (   $currentUserId = 0)

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

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

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

◆ $chatFields

$chatFields

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

◆ $chatId

$chatId
protected

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

◆ $chatUsers

$chatUsers = []
protected

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

◆ MUTE_MESSAGE

const MUTE_MESSAGE = true

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