1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Chat
Граф наследования:Chat:
BaseController

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

 configureActions ()
 getPrimaryAutoWiredParameter ()
 shallowLoadAction (\Bitrix\Im\V2\Chat $chat)
 loadAction (\Bitrix\Im\V2\Chat $chat, int $messageLimit=Chat\Message::DEFAULT_LIMIT, int $pinLimit=Pin::DEFAULT_LIMIT, string $ignoreMark='N')
 loadInContextAction (Message $message, int $messageLimit=Chat\Message::DEFAULT_LIMIT, int $pinLimit=Pin::DEFAULT_LIMIT)
 getAction (\Bitrix\Im\V2\Chat $chat)
 listSharedAction (array $filter, int $limit=self::DEFAULT_LIMIT, int $offset=0)
 getDialogIdAction (string $externalId)
 readAction (\Bitrix\Im\V2\Chat $chat, string $onlyRecent='N')
 readAllAction (CurrentUser $user)
 unreadAction (\Bitrix\Im\V2\Chat $chat)
 startRecordVoiceAction (\Bitrix\Im\V2\Chat $chat)
 addAction (array $fields)
 updateAction (GroupChat $chat, array $fields)
 deleteAction (\Bitrix\Im\V2\Chat $chat)
 addUsersAction (\Bitrix\Im\V2\Chat $chat, array $userIds, ?string $hideHistory=null)
 joinAction (\Bitrix\Im\V2\Chat $chat)
 extendPullWatchAction (\Bitrix\Im\V2\Chat $chat)
 deleteUserAction (\Bitrix\Im\V2\Chat $chat, int $userId)
 setTitleAction (\Bitrix\Im\V2\Chat $chat, string $title)
 setDescriptionAction (\Bitrix\Im\V2\Chat $chat, string $description)
 setColorAction (\Bitrix\Im\V2\Chat $chat, string $color)
 updateAvatarAction (\Bitrix\Im\V2\Chat $chat, string $avatar)
 setAvatarIdAction (\Bitrix\Im\V2\Chat $chat, int $avatarId)
 setAvatarAction (\Bitrix\Im\V2\Chat $chat, string $avatarBase64)
 setOwnerAction (\Bitrix\Im\V2\Chat $chat, int $ownerId)
 setManagersAction (\Bitrix\Im\V2\Chat $chat, array $userIds)
 addManagersAction (GroupChat $chat, array $userIds)
 deleteManagersAction (GroupChat $chat, array $userIds)
 setManageUsersAddAction (\Bitrix\Im\V2\Chat $chat, string $rightsLevel)
 setManageUsersDeleteAction (\Bitrix\Im\V2\Chat $chat, string $rightsLevel)
 setManageUIAction (\Bitrix\Im\V2\Chat $chat, string $rightsLevel)
 setManageSettingsAction (\Bitrix\Im\V2\Chat $chat, string $rightsLevel)
 setManageMessagesAction (\Bitrix\Im\V2\Chat $chat, string $rightsLevel)
 pinAction (\Bitrix\Im\V2\Chat $chat, CurrentUser $user)
 unpinAction (\Bitrix\Im\V2\Chat $chat, CurrentUser $user)
 sortPinAction (\Bitrix\Im\V2\Chat $chat, int $newPosition, CurrentUser $user)
Открытые члены унаследованные от BaseController
 getAutoWiredParameters ()

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

Открытые статические члены унаследованные от BaseController
static recursiveWhiteList ($fields, $whiteList, bool $sanitizeOnly=false)
Защищенные члены унаследованные от BaseController
 getDefaultPreFilters ()
 getLimit (int $limit)
 toRestFormat (RestConvertible ... $entities)
 load (\Bitrix\Im\V2\Chat $chat, int $messageLimit, int $pinLimit, bool $ignoreMark=false, ?Message $targetMessage=null)
 toRestFormatWithPaginationData (array $entities, int $needCount, int $realCount)
 checkWhiteList (array $fields, array $whiteList)
 getChatByPostId (int $postId, bool $createIfNotExists)
 getMessagesByIds (array $ids)
 convertCharToBool (string $char, bool $default=false)
 getRawValue (string $key)
 prepareFields (array $fields, array $whiteList)
Защищенные данные унаследованные от BaseController
const MAX_LIMIT = 200
const DEFAULT_LIMIT = 50
const MAX_MESSAGES_COUNT = 100

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

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

Методы

◆ addAction()

addAction ( array $fields)

@restMethod im.v2.Chat.add

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

◆ addManagersAction()

addManagersAction ( GroupChat $chat,
array $userIds )

@restMethod im.v2.Chat.addManagers

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

◆ addUsersAction()

addUsersAction ( \Bitrix\Im\V2\Chat $chat,
array $userIds,
?string $hideHistory = null )

@restMethod im.v2.Chat.addUsers

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

◆ configureActions()

configureActions ( )

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

◆ deleteAction()

deleteAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.delete

Исключения

Exception

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

◆ deleteManagersAction()

deleteManagersAction ( GroupChat $chat,
array $userIds )

@restMethod im.v2.Chat.deleteManagers

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

◆ deleteUserAction()

deleteUserAction ( \Bitrix\Im\V2\Chat $chat,
int $userId )

@restMethod im.v2.Chat.deleteUser

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

◆ extendPullWatchAction()

extendPullWatchAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.extendPullWatch

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

◆ getAction()

getAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.get

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

◆ getDialogIdAction()

getDialogIdAction ( string $externalId)

@restMethod im.v2.Chat.getDialogId

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

◆ getPrimaryAutoWiredParameter()

getPrimaryAutoWiredParameter ( )

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

◆ joinAction()

joinAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.join

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

◆ listSharedAction()

listSharedAction ( array $filter,
int $limit = self::DEFAULT_LIMIT,
int $offset = 0 )

@restMethod im.v2.Chat.listShared

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

◆ loadAction()

loadAction ( \Bitrix\Im\V2\Chat $chat,
int $messageLimit = Chat\Message::DEFAULT_LIMIT,
int $pinLimit = Pin::DEFAULT_LIMIT,
string $ignoreMark = 'N' )

@restMethod im.v2.Chat.load

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

◆ loadInContextAction()

loadInContextAction ( Message $message,
int $messageLimit = Chat\Message::DEFAULT_LIMIT,
int $pinLimit = Pin::DEFAULT_LIMIT )

@restMethod im.v2.Chat.loadInContext

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

◆ pinAction()

pinAction ( \Bitrix\Im\V2\Chat $chat,
CurrentUser $user )

@restMethod im.v2.Chat.pin

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

◆ readAction()

readAction ( \Bitrix\Im\V2\Chat $chat,
string $onlyRecent = 'N' )

@restMethod im.v2.Chat.read

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

◆ readAllAction()

readAllAction ( CurrentUser $user)

@restMethod im.v2.Chat.readAll

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

◆ setAvatarAction()

setAvatarAction ( \Bitrix\Im\V2\Chat $chat,
string $avatarBase64 )

@restMethod im.v2.Chat.setAvatar

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

◆ setAvatarIdAction()

setAvatarIdAction ( \Bitrix\Im\V2\Chat $chat,
int $avatarId )

@restMethod im.v2.Chat.setAvatarId

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

◆ setColorAction()

setColorAction ( \Bitrix\Im\V2\Chat $chat,
string $color )

@restMethod im.v2.Chat.setColor

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

◆ setDescriptionAction()

setDescriptionAction ( \Bitrix\Im\V2\Chat $chat,
string $description )

@restMethod im.v2.Chat.setDescription

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

◆ setManageMessagesAction()

setManageMessagesAction ( \Bitrix\Im\V2\Chat $chat,
string $rightsLevel )

@restMethod im.v2.Chat.setManageMessages

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

◆ setManagersAction()

setManagersAction ( \Bitrix\Im\V2\Chat $chat,
array $userIds )

@restMethod im.v2.Chat.setManagers

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

◆ setManageSettingsAction()

setManageSettingsAction ( \Bitrix\Im\V2\Chat $chat,
string $rightsLevel )

@restMethod im.v2.Chat.setManageSettings

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

◆ setManageUIAction()

setManageUIAction ( \Bitrix\Im\V2\Chat $chat,
string $rightsLevel )

@restMethod im.v2.Chat.setManageUI

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

◆ setManageUsersAddAction()

setManageUsersAddAction ( \Bitrix\Im\V2\Chat $chat,
string $rightsLevel )

@restMethod im.v2.Chat.setManageUsersAdd

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

◆ setManageUsersDeleteAction()

setManageUsersDeleteAction ( \Bitrix\Im\V2\Chat $chat,
string $rightsLevel )

@restMethod im.v2.Chat.setManageUsersDelete

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

◆ setOwnerAction()

setOwnerAction ( \Bitrix\Im\V2\Chat $chat,
int $ownerId )

@restMethod im.v2.Chat.setOwner

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

◆ setTitleAction()

setTitleAction ( \Bitrix\Im\V2\Chat $chat,
string $title )

@restMethod im.v2.Chat.setTitle

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

◆ shallowLoadAction()

shallowLoadAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.shallowLoad

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

◆ sortPinAction()

sortPinAction ( \Bitrix\Im\V2\Chat $chat,
int $newPosition,
CurrentUser $user )

@restMethod im.v2.Chat.sortPin

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

◆ startRecordVoiceAction()

startRecordVoiceAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.startRecordVoice

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

◆ unpinAction()

unpinAction ( \Bitrix\Im\V2\Chat $chat,
CurrentUser $user )

@restMethod im.v2.Chat.unpin

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

◆ unreadAction()

unreadAction ( \Bitrix\Im\V2\Chat $chat)

@restMethod im.v2.Chat.unread

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

◆ updateAction()

updateAction ( GroupChat $chat,
array $fields )

@restMethod im.v2.Chat.update

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

◆ updateAvatarAction()

updateAvatarAction ( \Bitrix\Im\V2\Chat $chat,
string $avatar )

@restMethod im.v2.Chat.updateAvatar

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/im/lib/V2/Controller/Chat.php