|
| __construct ($source=null) |
|
| save () |
|
| getStartId (?int $userId=null) |
|
| isExist () |
|
| add (array $params) |
|
| getUserIds () |
|
| getAliasName () |
|
| setAliasName (string $aliasName) |
|
| prepareAliasToLoad ($alias) |
|
| getMarkedId () |
|
| getRole () |
|
| checkColor () |
|
| hasAccess ($user=null) |
|
| getMessageRegistry () |
|
| getMessage (int $messageId) |
|
| sendMessage ($message, $sendingConfig=null) |
|
| updateMessage (Message $message) |
|
| deleteMessage (Message $message) |
|
| read (bool $onlyRecent=false, bool $byEvent=false) |
|
| readAllMessages (bool $byEvent=false) |
|
| readMessages (?MessageCollection $messages, bool $byEvent=false) |
|
| readTo (Message $message, bool $byEvent=false) |
|
| unreadToMessage (Message $message) |
|
| sendPushUpdateMessage (Message $message) |
|
| startRecordVoice () |
|
| getLastMessages (int $upperBound, int $lowerBound) |
|
| getLastMessageViews () |
|
| getLastMessageViewsByGroups () |
|
| getPrimaryId () |
|
| setPrimaryId (int $primaryId) |
|
| getChatId () |
|
| getId () |
|
| setDialogId (string $dialogId) |
|
| allowMention () |
|
| getDialogId () |
|
| getDialogContextId () |
|
| setType (string $type) |
|
| getType () |
|
| setAuthorId (int $authorId) |
|
| getAuthorId () |
|
| getAuthor () |
|
| setTitle (?string $title) |
|
| getTitle () |
|
| getDisplayedTitle () |
|
| setDescription (?string $description) |
|
| getDescription () |
|
| setColor (?string $color) |
|
| getColor () |
|
| validateColor () |
|
| getDefaultColor () |
|
| setParentChatId (int $parentChatId) |
|
| getParentChatId () |
|
| setParentMessageId (int $messageId) |
|
| getParentMessageId () |
|
| setExtranet (?bool $extranet) |
|
| getExtranet () |
|
| getDefaultExtranet () |
|
| setAvatarId (?int $avatarId) |
|
| getAvatarId () |
|
| getAvatar (int $size=200, bool $addBlankPicture=false) |
|
| setPinMessageId (?int $pinMessageId) |
|
| getPinMessageId () |
|
| setCallType (?int $callType) |
|
| getCallType () |
|
| setCallNumber (?string $callNumber) |
|
| getCallNumber () |
|
| setEntityType (?string $entityType) |
|
| getEntityType () |
|
| setEntityId (?string $entityId) |
|
| getEntityId () |
|
| setEntityData1 (?string $entityData1) |
|
| getEntityData1 () |
|
| setEntityData2 (?string $entityData2) |
|
| getEntityData2 () |
|
| setEntityData3 (?string $entityData3) |
|
| getEntityData3 () |
|
| setDiskFolderId (?int $diskFolderId) |
|
| getDiskFolderId () |
|
| getOrCreateDiskFolder () |
|
| getDiskFolder () |
|
| setMessageCount (int $messageCount) |
|
| getMessageCount () |
|
| incrementMessageCount (int $increment=1) |
|
| updateParentMessageCount () |
|
| setUserCount (int $userCount) |
|
| getUserCount () |
|
| setPrevMessageId (int $prevMessageId) |
|
| getPrevMessageId () |
|
| setLastMessageId (int $lastMessageId) |
|
| getLastMessageId () |
|
| getLastFileId () |
|
| setLastMessageStatus (?string $lastMessageStatus) |
|
| getLastMessageStatus () |
|
| getDefaultLastMessageStatus () |
|
| setDateCreate (?DateTime $dateCreate) |
|
| getDateCreate () |
|
| getDefaultDateCreate () |
|
| getRelations (array $options=[]) |
|
| setRelations (RelationCollection $relations) |
|
| getSelfRelation (array $options=[]) |
|
| getBotInChat () |
|
| checkTitle () |
|
| setManageUsersAdd (string $manageUsersAdd) |
|
| getManageUsersAdd () |
|
| getDefaultManageUsersAdd () |
|
| setManageUsersDelete (string $manageUsersDelete) |
|
| getManageUsersDelete () |
|
| getDefaultManageUsersDelete () |
|
| setManageUI (string $manageUI) |
|
| getManageUI () |
|
| getDefaultManageUI () |
|
| setManageSettings (string $manageSettings) |
|
| getManageSettings () |
|
| getDefaultManageSettings () |
|
| setDisappearingTime (int $disappearingTime) |
|
| getDisappearingTime () |
|
| setCanPost (string $canPost) |
|
| getCanPost () |
|
| getDefaultCanPost () |
|
| hasPostAccess (?int $userId=null) |
|
| createChatIfNotExists (array $params) |
|
| join () |
|
| addUsers (array $userIds, array $managerIds=[], ?bool $hideHistory=null, bool $withMessage=true, bool $skipRecent=false) |
|
| deleteUser (int $userId, bool $withMessage=true, bool $skipRecent=false, bool $withNotification=true) |
|
| changeAuthor () |
|
| removeUsers (array $userIds) |
|
| setContext (?Context $context) |
|
| getLoadContextMessage () |
|
| fillNonCachedData () |
|
| getEntityLink () |
|
| toRestFormat (array $option=[]) |
|
| getTypeForRest () |
|
| deleteChat () |
|
| updateAvatarId (int $avatarId, bool $withMessage=true, bool $skipRecent=false) |
|
| updateAvatar (string $avatarBase64, bool $withMessage=true, bool $skipRecent=false) |
|
| checkAllowedAction (string $action) |
|
| canDo (string $action) |
|
| setRegistry (Registry $registry) |
|
| getRegistry () |
|
| load ($source) |
|
| prepareFields () |
|
| getDataEntity () |
|
| delete () |
|
| markChanged () |
|
| isChanged () |
|
| markDrop () |
|
| isDeleted () |
|
| fill (array $source) |
|
| toArray () |
|
|
| checkIsExtranet () |
|
| setUserIds (?array $userIds) |
|
| checkAccessWithoutCaching (int $userId) |
|
| getUserId ($user) |
|
| sendPushRead (MessageCollection $messages, int $lastId, int $counter) |
|
| sendPushReadSelf (MessageCollection $messages, int $lastId, int $counter) |
|
| sendPushReadOpponent (MessageCollection $messages, int $lastId) |
|
| sendEventRead (int $startId, int $endId, int $counter, bool $byEvent) |
|
| sendPushUnreadSelf (int $unreadToId, int $lastId, int $counter, ?array $lastMessageStatuses) |
|
| getUsersForPush (bool $skipBot=false, bool $skipSelf=true) |
|
| setChatId (int $chatId) |
|
| getDefaultType () |
|
| beforeSaveType () |
|
| getDefaultEntityType () |
|
| setDiskFolder (?Folder $folder) |
|
| createDiskFolder () |
|
| getAccessCodesForDiskFolder () |
|
| getStorageId () |
|
| getReadService () |
|
| sendMessageUsersAdd (array $usersToAdd, bool $skipRecent=false) |
|
| sendPushUsersAdd (array $usersToAdd, RelationCollection $oldRelations) |
|
| updateStateAfterUsersAdd (array $usersToAdd) |
|
| addUsersToRelation (array $usersToAdd, array $managerIds=[], ?bool $hideHistory=null) |
|
| filterUsersToAdd (array $userIds) |
|
| sendEventUsersAdd (array $usersToAdd) |
|
| sendMessageUserDelete (int $userId, bool $skipRecent=false) |
|
| sendNotificationUserDelete (int $userId) |
|
| getMessageUserDeleteText (int $userId) |
|
| updateStateAfterUserDelete (int $deletedUserId) |
|
| sendEventUserDelete (int $userId) |
|
| sendPushUserDelete (int $userId, RelationCollection $oldRelations) |
|
| getManagerList () |
|
| getMuteList () |
|
| getPublicOption () |
|
| getRestrictions () |
|
| getUnreadId () |
|
| getLastId () |
|
| addIndex () |
|
| updateIndex () |
|
| sendMessageUpdateAvatar (bool $skipRecent=false) |
|
Chat version #2
См. определение в файле Chat.php строка 42