OPEN SOURCE SOCIAL NETWORK 6.6
Loading...
Searching...
No Matches
OssnChat Class Reference
Inheritance diagram for OssnChat:
OssnMessages OssnEntities OssnDatabase OssnBase OssnSession

Public Member Functions

 countOnlineFriends ($user, $intervals=100)
 
 getOnlineFriends ($user, $intervals=100)
 
 getNewAll ($parm=array())
 
 getWith ($from, $to, $count=false)
 
- Public Member Functions inherited from OssnMessages
 __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 ()
 
- Public Member Functions inherited from OssnEntities
 add ()
 
 get_entity ()
 
 save ()
 
 get_entities ()
 
 AddedEntityGuid ()
 
 updateEntity ()
 
 deleteByOwnerGuid ($guid, $type)
 
 deleteEntity ($guid='')
 
 searchEntities (array $params=array())
 
 canChange ($user='')
 
 destruct ()
 
- Public Member Functions inherited from OssnDatabase
 __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 ()
 
- Public Member Functions inherited from OssnBase
 getGUID ()
 
 getID ()
 
 getParam ($param)
 
 isParam ($param)
 
 __call ($method, $args)
 

Static Public Member Functions

static setUserChatSession ($user)
 
static GetActiveSessions ()
 
static getChatUserStatus ($user, $intervals=100)
 
static removeChatTab ($tab)
 
static messageTime ($time)
 
static AllNew ()
 
- Static Public Member Functions inherited from OssnSession
static start ()
 
static assign ($name='', $value='')
 
static unassign ($name='')
 
static isSession ($name='')
 
static getSession ($name='')
 

Member Function Documentation

◆ AllNew()

static AllNew ( )
static

Get all new friends json

Returns
json;

◆ countOnlineFriends()

countOnlineFriends (   $user,
  $intervals = 100 
)

Count online friends of user

Parameters
int$intervals=> seconds
object$userUser 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$fromUser 1 guid
int$toUser 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: