Свойство | Тип | Описание | |
---|---|---|---|
$member | |||
$models | |||
$room | |||
$userId |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
addGroupMember ( $roomId, $memberUids ) : boolean | 添加群成员 | |
appendRoomListMember ( array $data ) : array | mixed | ||
checkGroupPermissions ( integer $roomId, boolean $checkMaster = false, integer $type = 2 ) : boolean | 检查群组权限 | |
clearMessage ( $roomId, $type = 'unread' ) | ||
content ( ) : Model | ||
createGroupRoom ( $uids, null $title = null ) : array | boolean | ||
getClientByUser ( string | array $uids, boolean $removeCurrentUser = true ) : array | 根据用户Id,获取全部客户端连接ID | |
getMessageList ( $roomId, $messageId = null, $direction = 'lt', $limit = null ) | ||
getMessageRoom ( $toUid ) : array | boolean | ||
getRoomList ( $limit = null, $page = true, $appendMember = false ) | ||
getRoomMember ( $roomId ) | ||
getUserId ( ) | ||
hasRoom ( $roomId ) | ||
member ( ) : Model | ||
model ( $name, null $propName = null ) : Model | ||
parseMessage ( array $list ) : array | 将消息列表整理为标准的返回格式 | |
push ( ) | ||
pushMessage ( $toUids, $data ) | TODO JPush Code | |
quitGroupRoom ( integer $roomId ) : boolean | 主动退出群房间 | |
refreshRoomMember ( integer $roomId, boolean $changeMaster = false ) : integer | 刷新房间成员信息 | |
removeGroupMember ( $roomId, $memberUids ) : boolean | 删除群成员 | |
room ( ) : Model | ||
roomHasUser ( $roomId, $uid, $checkRoom = false ) | ||
sendMessage ( array $message, $isNotify = false, $isPush = true ) | ||
setRoom ( $roomId, $data ) : boolean | 设置房间信息 | |
setUserId ( $userId ) | ||
table ( $table ) | ||
ucmap ( ) |
Метод | Описание | |
---|---|---|
formatInList ( array | string $ints, string $default = '', boolean $unique = true ) : string | 将一个包含id列表的数组或字符串格式化为标准的逗号分隔值 | |
getUserList ( $uids ) | ||
htmlDecode ( string $string, integer $flags = ENT_QUOTES ) : string | html编码,默认包括单引号 | |
htmlEncode ( string $string, integer $flags = ENT_QUOTES, $charset = 'UTF-8' ) : string | html编码,默认包括单引号 |
public addGroupMember ( $roomId, $memberUids ) : boolean | ||
$memberUids | ||
Результат | boolean |
public getMessageList ( $roomId, $messageId = null, $direction = 'lt', $limit = null ) |
public getMessageRoom ( $toUid ) : array | boolean | ||
$toUid | ||
Результат | array | boolean |
public getRoomList ( $limit = null, $page = true, $appendMember = false ) |
public parseMessage ( array $list ) : array | ||
$list | array | 需要整理的消息列表 |
Результат | array | 返回整理好的消息列表 |
public quitGroupRoom ( integer $roomId ) : boolean | ||
$roomId | integer | 房间ID |
Результат | boolean |
public removeGroupMember ( $roomId, $memberUids ) : boolean | ||
$roomId | ||
$memberUids | ||
Результат | boolean |
public sendMessage ( array $message, $isNotify = false, $isPush = true ) | ||
$message | array |