Elgg
Version 2.3
|
Go to the source code of this file.
Functions | |
elgg | provide ('elgg.session') |
Provides session methods. More... | |
if (elgg.session.user) | |
Variables | |
elgg session | cookie |
Helper function for setting cookies. More... | |
elgg | get_logged_in_user_entity |
Returns the object of the user logged in. More... | |
elgg | get_logged_in_user_guid |
Returns the GUID of the logged in user or 0. More... | |
elgg | is_logged_in |
Returns if a user is logged in. More... | |
elgg | is_admin_logged_in |
Returns if the currently logged in user is an admin. More... | |
if | ( | elgg.session. | user | ) |
Definition at line 127 of file session.js.
elgg provide | ( | 'elgg.session' | ) |
Provides session methods.
jQuery cookie |
Helper function for setting cookies.
{string} | name |
{string} | value |
{Object} | options |
{number|Date} options[expires] {string} options[path] {string} options[domain] {boolean} options[secure]
Definition at line 19 of file session.js.
elgg get_logged_in_user_entity |
Returns the object of the user logged in.
Definition at line 87 of file session.js.
elgg get_logged_in_user_guid |
Returns the GUID of the logged in user or 0.
Definition at line 96 of file session.js.
elgg is_admin_logged_in |
Returns if the currently logged in user is an admin.
Definition at line 115 of file session.js.
elgg is_logged_in |
Returns if a user is logged in.
Definition at line 106 of file session.js.