controllers / clientstorage.php
ClientStorage
Controller
Allow clients (like the main Javascript/web client, or a third party client) to store data associated with a user. DEPRECATED.
public
get
(
)
public
get
(
)
Retrieve client information. Requires authentication if retrieving non-global authentication.
Parameters
client_name |
The name of the client requesting to retrieve data. |
global |
A boolean set to TRUE if trying to retrieve global data. Does NOT require authentication in this case. |
Returns
storage_data_array
public
store
(
)
public
store
(
)
Store client information. Takes the name of the client and some data, then stores that in the database. Requires the user to be authenticated, as well as a specific permission if global data is being stored.
Parameters
client_name |
The name of the client requesting to store data. |
data |
The data being stored. |
global |
A boolean set to TRUE if trying to store global data. Requires the manage_global_client_storage permission. |