Method |
Description |
|
checkUserExists ( $uid ) |
|
|
generateUid ( $uid = null ) |
|
|
getDir ( ) |
|
|
getUserChannels ( $uid, $injson = false ) |
|
|
getUserData ( $uid, $field = null, $injson = false ) |
Get user's data
Can be called to read only one field
If $injson is true, data are returned json encoded
getUserData('xxxx', 'email');
getUserData('xxxx', null, true); |
|
getUserMsgs ( $uid, $injson = false ) |
|
|
getUsers ( ) |
|
|
joinChannel ( $uid, $cid ) |
|
|
leaveChannel ( $uid, $cid ) |
|
|
rmUser ( $uid ) |
Remove user's data |
|
runGC ( ) |
Run the garbage collector (disconnect timeouted users)
Has to be called by each users when they check pending messages |
|
setCloseFlag ( $uid ) |
Update the close flag of a user
Called when the user close his window or reload his window |
|
setIsAlive ( $uid ) |
Update the last activity of a user
Has to be called each time the user check his messages |
|
setUserData ( $uid, $userdata ) |
Set user's data
Can be called to update only one field
setUserData('xxxx', array('email', '[email protected]')); |
|