Users.Session Class
Class representing 'Session' rows in the 'Users' database
This table is used to replicate PHP sessions information for
Constructor
Users.Session
(
-
fields
Parameters:
-
fields
ObjectThe fields values to initialize table row as an associative array of
{column: value}
pairs
Item Index
Methods
- pushNotifications static
- setUp
Methods
pushNotifications
(
static
-
userIds
-
sessionIds
-
notifications
-
[callback]
Pushes notifications to the device corresponding the session ids.
Parameters:
-
userIds
String | ArrayA user id, or an array of them, in which case sessionIds would be an object of { userId: sessionId } in which case notifications would be an object of { userId: notification }
-
sessionIds
String | ObjectA session id, or an object of them
-
notifications
ObjectPlease see Users.Device.pushNotification for the spec
-
[callback]
Function optionalA function to call after the push has been completed
setUp
()
The setUp() method is called the first time an object of this class is constructed.