Elgg
Version 4.3
|
Go to the source code of this file.
Functions | |
elgg | provide ('elgg.config') |
elgg | inherit (elgg.ElggUser, elgg.ElggEntity) |
if (elgg.session.user) | |
Variables | |
elgg | global = this |
Pointer to the global context. More... | |
elgg | ACCESS_PRIVATE = 0 |
Duplicate of the server side ACCESS_PRIVATE access level. More... | |
elgg | nullFunction = function() {} |
Convenience reference to an empty function. More... | |
elgg | abstractMethod |
elgg | extend = jQuery.extend |
Merges two or more objects together and returns the result. More... | |
elgg | isArray = jQuery.isArray |
Check if the value is an array. More... | |
elgg | isFunction = jQuery.isFunction |
Check if the value is a function. More... | |
elgg | isPlainObject = jQuery.isPlainObject |
Check if the value is a "plain" object (i.e., created by {} or new Object()) More... | |
elgg | isString |
Check if the value is a string. More... | |
elgg | isNumber |
Check if the value is a number. More... | |
elgg | isObject |
Check if the value is an object. More... | |
elgg | isUndefined |
Check if the value is undefined. More... | |
elgg | isNull |
Check if the value is null. More... | |
elgg | isNullOrUndefined |
Check if the value is either null or undefined. More... | |
elgg | require |
Throw an error if the required package isn't present. More... | |
elgg | provide |
elgg session | cookie |
Helper function for setting cookies. More... | |
elgg | clear_system_messages |
Helper function to remove all current system messages. More... | |
elgg | system_message |
Wrapper function for system_messages. More... | |
elgg | register_error |
Wrapper function for system_messages. More... | |
elgg security | addToken |
Add elgg action tokens to an object, URL, or query string (with a ?). More... | |
elgg | inherit |
elgg | ElggEntity |
elgg | ElggUser |
elgg ElggUser prototype | isAdmin |
Is this user an admin? More... | |
elgg | get_logged_in_user_entity |
Returns the object of the user logged in. More... | |
elgg | get_page_owner_guid |
elgg | add_translation |
Analagous to the php version. More... | |
elgg | get_language |
Get the current language. More... | |
elgg | echo |
Translates a string. More... | |
elgg ui | registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them. More... | |
if | ( | elgg.session. | user | ) |
Definition at line 474 of file deprecated.js.
elgg inherit | ( | elgg. | ElggUser, |
elgg. | ElggEntity | ||
) |
elgg provide | ( | 'elgg.config' | ) |
elgg abstractMethod |
Definition at line 38 of file deprecated.js.
elgg ACCESS_PRIVATE = 0 |
Duplicate of the server side ACCESS_PRIVATE access level.
This is a temporary hack to prevent having to mix up js and PHP in js views.
Definition at line 18 of file deprecated.js.
elgg add_translation |
Analagous to the php version.
Merges translations for a given language into the current translations map.
Definition at line 501 of file deprecated.js.
elgg security addToken |
Add elgg action tokens to an object, URL, or query string (with a ?).
{FormData|Object|string} | data |
Definition at line 389 of file deprecated.js.
elgg clear_system_messages |
Helper function to remove all current system messages.
Definition at line 352 of file deprecated.js.
read string $name Name of the cookie |
Helper function for setting cookies.
A simple object model for an HTTP cookie.
{string} | name |
{string} | value |
{Object} | options |
{number|Date} options[expires] {string} options[path] {string} options[domain] {boolean} options[secure]
Definition at line 270 of file deprecated.js.
elgg echo |
Translates a string.
{String} | key Message key |
{Array} | argv vsprintf() arguments |
{String} | language Requested language. Not recommended (see above). |
Definition at line 530 of file deprecated.js.
Definition at line 437 of file deprecated.js.
Definition at line 453 of file deprecated.js.
elgg extend = jQuery.extend |
Merges two or more objects together and returns the result.
Definition at line 47 of file deprecated.js.
elgg get_language |
Get the current language.
Definition at line 511 of file deprecated.js.
elgg get_logged_in_user_entity |
Returns the object of the user logged in.
Definition at line 484 of file deprecated.js.
elgg get_page_owner_guid |
Definition at line 492 of file deprecated.js.
Pointer to the global context.
Definition at line 9 of file deprecated.js.
elgg inherit |
Definition at line 418 of file deprecated.js.
Is this user an admin?
Definition at line 468 of file deprecated.js.
elgg isArray = jQuery.isArray |
Check if the value is an array.
No sense in reinventing the wheel!
{*} | val |
Definition at line 60 of file deprecated.js.
elgg isFunction = jQuery.isFunction |
Check if the value is a function.
No sense in reinventing the wheel!
{*} | val |
Definition at line 73 of file deprecated.js.
elgg isNull |
Check if the value is null.
{*} | val |
Definition at line 152 of file deprecated.js.
elgg isNullOrUndefined |
Check if the value is either null or undefined.
{*} | val |
Definition at line 165 of file deprecated.js.
elgg isNumber |
Check if the value is a number.
{*} | val |
Definition at line 110 of file deprecated.js.
elgg isObject |
Check if the value is an object.
{*} | val |
Definition at line 126 of file deprecated.js.
elgg isPlainObject = jQuery.isPlainObject |
Check if the value is a "plain" object (i.e., created by {} or new Object())
No sense in reinventing the wheel!
{*} | val |
Definition at line 86 of file deprecated.js.
elgg isString |
Check if the value is a string.
{*} | val |
Definition at line 97 of file deprecated.js.
elgg isUndefined |
Check if the value is undefined.
{*} | val |
Definition at line 139 of file deprecated.js.
elgg nullFunction = function() {} |
Convenience reference to an empty function.
Save memory by not generating multiple empty functions.
Definition at line 27 of file deprecated.js.
elgg provide |
Definition at line 226 of file deprecated.js.
elgg register_error |
Wrapper function for system_messages.
Specifies "errors" as the type of message
{String} | errors The error message to display |
{Number} | delay How long to dispaly the error message (milliseconds) |
Definition at line 376 of file deprecated.js.
elgg ui registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them.
E.g. like/unlike, friend/unfriend, ban/unban, etc.
You can also add the data parameter 'data-toggle' to menu items to have them automatically registered as toggleable without the need to call this function.
Definition at line 543 of file deprecated.js.
elgg require |
Throw an error if the required package isn't present.
{String} | pkg The required package (e.g., 'elgg.package') |
Definition at line 176 of file deprecated.js.
elgg system_message |
Wrapper function for system_messages.
Specifies "success" as the type of message
{String} | msgs The message to display |
{Number} | delay How long to display the message (milliseconds) |
Definition at line 364 of file deprecated.js.