Открытые члены | |
__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 () | |
Открытые статические члены | |
static | getInstance (?int $chatId) |
static | cleanCache (int $id) |
static | cleanAccessCache (int $chatId) |
static | fillRole (array $chats, ?int $userId=null) |
static | readAllChats (int $userId) |
static | getDataClass () |
static | find (array $params, ?Context $context=null) |
static | getSharedChatsWithUser (int $userId, int $limit=50, int $offset=0, ?int $currentUserId=null) |
static | getCanPostList () |
static | loadPhrases () |
static | getRestEntityName () |
Открытые атрибуты | |
const | IM_TYPE_PRIVATE = 'P' |
const | IM_TYPE_CHAT = 'C' |
const | IM_TYPE_COMMENT = 'T' |
const | IM_TYPE_OPEN_LINE = 'L' |
const | IM_TYPE_SYSTEM = 'S' |
const | IM_TYPE_CHANNEL = 'N' |
const | IM_TYPE_OPEN = 'O' |
const | IM_TYPE_COPILOT = 'A' |
const | IM_TYPES |
const | IM_TYPES_TRANSLATE |
const | ENTITY_TYPE_VIDEOCONF = 'VIDEOCONF' |
const | ENTITY_TYPE_GENERAL = 'GENERAL' |
const | ENTITY_TYPE_FAVORITE = 'FAVORITE' |
const | ENTITY_TYPE_LINE = 'LINES' |
const | ENTITY_TYPE_LIVECHAT = 'LIVECHAT' |
const | AVAILABLE_PARAMS |
const | MANAGE_RIGHTS_NONE = 'NONE' |
const | MANAGE_RIGHTS_MEMBER = 'MEMBER' |
const | MANAGE_RIGHTS_OWNER = 'OWNER' |
const | MANAGE_RIGHTS_MANAGERS = 'MANAGER' |
const | ROLE_OWNER = 'OWNER' |
const | ROLE_MANAGER = 'MANAGER' |
const | ROLE_MEMBER = 'MEMBER' |
const | ROLE_GUEST = 'GUEST' |
const | ROLE_NONE = 'NONE' |
Защищенные члены | |
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) | |
Защищенные статические члены | |
static | mirrorDataEntityFields () |
Защищенные данные | |
const | ENTITY_TYPES |
const | EXTRANET_CAN_SEE_HISTORY = false |
array | $accessCache = [] |
int | $chatId = null |
string | $dialogId = null |
string | $type = null |
int | $authorId = null |
string | $title = null |
string | $description = null |
string | $color = null |
int | $parentChatId = 0 |
int | $parentMessageId = 0 |
bool | $extranet = null |
int | $avatarId = null |
int | $pinMessageId = null |
int | $callType = null |
string | $callNumber = null |
string | $entityType = null |
string | $entityId = null |
string | $entityData1 = null |
string | $entityData2 = null |
string | $entityData3 = null |
int | $diskFolderId = null |
Folder | $diskFolder = null |
int | $messageCount = null |
int | $userCount = null |
int | $prevMessageId = null |
int | $lastMessageId = null |
int | $lastFileId = null |
DateTime | $dateMessage = null |
int | $markedId = null |
string | $role = null |
string | $aliasName = null |
string | $lastMessageStatus = null |
DateTime | $dateCreate = null |
string | $manageUsersAdd = null |
string | $manageUsersDelete = null |
string | $manageUI = null |
string | $manageSettings = null |
string | $canPost = null |
array | $usersIds = null |
int | $disappearingTime = null |
Registry | $messageRegistry |
array | $relations = null |
ReadService | $readService = null |
bool | $isFilledNonCachedData = false |
bool | $isDiskFolderFilled = false |
Статические защищенные данные | |
static array | $chatStaticCache = [] |
__construct | ( | $source = null | ) |
addUsers | ( | array | $userIds, |
array | $managerIds = [], | ||
?bool | $hideHistory = null, | ||
bool | $withMessage = true, | ||
bool | $skipRecent = false ) |
|
protected |
|
abstract |
Allows to send mention notification.
deleteMessage | ( | Message | $message | ) |
deleteUser | ( | int | $userId, |
bool | $withMessage = true, | ||
bool | $skipRecent = false, | ||
bool | $withNotification = true ) |
|
static |
|
static |
getAvatar | ( | int | $size = 200, |
bool | $addBlankPicture = false ) |
|
static |
|
abstractprotected |
getId | ( | ) |
|
static |
getMessage | ( | int | $messageId | ) |
getPrimaryId | ( | ) |
getRelations | ( | array | $options = [] | ) |
|
static |
Returns the name of the entity that will be used in the rest response
Замещает RestConvertible.
|
static |
|
protected |
hasAccess | ( | $user = null | ) |
incrementMessageCount | ( | int | $increment = 1 | ) |
|
static |
|
staticprotected |
read | ( | bool | $onlyRecent = false, |
bool | $byEvent = false ) |
readMessages | ( | ?MessageCollection | $messages, |
bool | $byEvent = false ) |
save | ( | ) |
|
protected |
|
abstract |
Provides message sending process.
Message | string | array | $message | |
SendingConfig | array | null | $sendingConfig |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
setCanPost | ( | string | $canPost | ) |
setDialogId | ( | string | $dialogId | ) |
setManageSettings | ( | string | $manageSettings | ) |
setManageUI | ( | string | $manageUI | ) |
setManageUsersAdd | ( | string | $manageUsersAdd | ) |
setManageUsersDelete | ( | string | $manageUsersDelete | ) |
setPrimaryId | ( | int | $primaryId | ) |
setRelations | ( | RelationCollection | $relations | ) |
setType | ( | string | $type | ) |
toRestFormat | ( | array | $option = [] | ) |
Returns an array in JSON like format to return the entity as a rest response.
array | $option |
Замещает RestConvertible.
updateAvatar | ( | string | $avatarBase64, |
bool | $withMessage = true, | ||
bool | $skipRecent = false ) |
updateAvatarId | ( | int | $avatarId, |
bool | $withMessage = true, | ||
bool | $skipRecent = false ) |
updateMessage | ( | Message | $message | ) |
updateParentMessageCount | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const AVAILABLE_PARAMS |
|
protected |
const IM_TYPES |
const IM_TYPES_TRANSLATE |