|
| countOnlineFriends ($user, $intervals=100) |
|
| getOnlineFriends ($user, $intervals=100) |
|
| getNewAll ($parm=array()) |
|
| getWith ($from, $to, $count=false) |
|
| __construct () |
|
| send ($from, $to, $message) |
|
| markViewed ($from, $to) |
|
| getNew ($from, $to, $viewed=0) |
|
| recentChat ($to, $count=false) |
|
| getWith ($from, $to, $count=false) |
|
| get ($from, $to) |
|
| recentSent ($from) |
|
| countUNREAD ($to) |
|
| getMessage ($id) |
|
| deleteUser ($guid) |
|
| searchMessages (array $params=array()) |
|
| save () |
|
| add () |
|
| get_entity () |
|
| save () |
|
| get_entities () |
|
| AddedEntityGuid () |
|
| updateEntity () |
|
| deleteByOwnerGuid ($guid, $type) |
|
| deleteEntity ($guid='') |
|
| searchEntities (array $params=array()) |
|
| canChange ($user='') |
|
| destruct () |
|
| __construct () |
|
| Connect () |
|
| insert ($params) |
|
| statement ($query) |
|
| execute ($values=array()) |
|
| update ($params=array()) |
|
| select ($params, $multi='') |
|
| fetch ($data=false) |
|
| delete ($params) |
|
| getLastEntry () |
|
| constructWheres (array $array, $operator="AND") |
|
| generateLimit ($data_limit=false, $page_limit=false, $offset=false) |
|
| clearVars () |
|
| __destruct () |
|
| getGUID () |
|
| getID () |
|
| getParam ($param) |
|
| isParam ($param) |
|
| __call ($method, $args) |
|
◆ AllNew()
Get all new friends json
- Returns
- json;
◆ countOnlineFriends()
countOnlineFriends |
( |
|
$user, |
|
|
|
$intervals = 100 |
|
) |
| |
Count online friends of user
- Parameters
-
int | $intervals | => seconds |
object | $user | User guid |
- Returns
- bool
◆ GetActiveSessions()
static GetActiveSessions |
( |
| ) |
|
|
static |
Get active sessions
- Returns
- array;
◆ getChatUserStatus()
static getChatUserStatus |
( |
|
$user, |
|
|
|
$intervals = 100 |
|
) |
| |
|
static |
Get user chat status
@params = $user User guid $intervals Time itervals
- Returns
- string;
◆ getNewAll()
getNewAll |
( |
|
$parm = array() | ) |
|
Get all new non-viewed messages
@params = $parm (ossn_messages)
- Returns
- object;
◆ getOnlineFriends()
getOnlineFriends |
( |
|
$user, |
|
|
|
$intervals = 100 |
|
) |
| |
Get online user friends
@params = $intervals => seconds $user User guid
- Returns
- object;
◆ getWith()
getWith |
( |
|
$from, |
|
|
|
$to, |
|
|
|
$count = false |
|
) |
| |
Get messages between two users
- Note
- this copied from OssnMessages and edited offest beacuse of #1832
- Parameters
-
int | $from | User 1 guid |
int | $to | User 2 guid |
- Returns
- object
Reimplemented from OssnMessages.
◆ messageTime()
static messageTime |
( |
|
$time | ) |
|
|
static |
Get user friendly time
@params = $time Timestamp
- Returns
- string;
◆ removeChatTab()
static removeChatTab |
( |
|
$tab | ) |
|
|
static |
Remove chat tab
@params = $tab Tab id
- Returns
- bool;
◆ setUserChatSession()
static setUserChatSession |
( |
|
$user | ) |
|
|
static |
Set uesr chat session
@params = $to Friend Guid
- Returns
- void;
The documentation for this class was generated from the following file:
- source/components/OssnChat/classes/OssnChat.php