Elgg
Version 1.9
|
Go to the source code of this file.
Namespaces | |
Singleton | |
object for holding the Elgg javascript library | |
Variables | |
var | elgg = elgg || {} |
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 | assertTypeOf |
Throw an exception of the type doesn't match. More... | |
elgg | require |
Throw an error if the required package isn't present. More... | |
elgg | provide |
elgg | inherit |
elgg | system_message |
Wrapper function for system_messages. More... | |
elgg | register_error |
Wrapper function for system_messages. More... | |
elgg | deprecated_notice |
Logs a notice about use of a deprecated function or capability. More... | |
elgg | forward |
Meant to mimic the php forward() function by simply redirecting the user to another page. More... | |
elgg | parse_url |
Parse a URL into its parts. More... | |
elgg | parse_str |
Returns an object with key/values of the parsed query string. More... | |
elgg | getSelectorFromUrlFragment |
Returns a jQuery selector from a URL's fragement. More... | |
elgg | push_to_object_array |
Adds child to object[parent] array. More... | |
elgg | is_in_object_array |
Tests if object[parent] contains child. More... | |
elgg abstractMethod |
Definition at line 35 of file elgglib.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 19 of file elgglib.js.
elgg assertTypeOf |
Throw an exception of the type doesn't match.
Definition at line 151 of file elgglib.js.
elgg deprecated_notice |
Logs a notice about use of a deprecated function or capability.
{String} | msg The deprecation message to display |
{Number} | dep_version The version the function was deprecated for |
Definition at line 393 of file elgglib.js.
var elgg = elgg || {} |
Definition at line 4 of file elgglib.js.
elgg extend = jQuery.extend |
Merges two or more objects together and returns the result.
Definition at line 42 of file elgglib.js.
elgg forward |
Meant to mimic the php forward() function by simply redirecting the user to another page.
{String} | url The url to forward to |
Definition at line 419 of file elgglib.js.
elgg getSelectorFromUrlFragment |
Returns a jQuery selector from a URL's fragement.
Defaults to expecting an ID.
Examples: http://elgg.org/download.php returns '' http://elgg.org/download.php#id returns #id http://elgg.org/download.php#.class-name return .class-name http://elgg.org/download.php#a.class-name return a.class-name
{String} | url The URL |
Definition at line 543 of file elgglib.js.
Pointer to the global context.
Definition at line 12 of file elgglib.js.
elgg inherit |
Definition at line 237 of file elgglib.js.
elgg is_in_object_array |
Tests if object[parent] contains child.
{Object} | object The object to add to |
{String} | parent The parent array to add to. |
{Mixed} | value The value |
Definition at line 589 of file elgglib.js.
elgg isArray = jQuery.isArray |
Check if the value is an array.
No sense in reinventing the wheel!
{*} | val |
Definition at line 53 of file elgglib.js.
elgg isFunction = jQuery.isFunction |
Check if the value is a function.
No sense in reinventing the wheel!
{*} | val |
Definition at line 64 of file elgglib.js.
elgg isNull |
Check if the value is null.
{*} | val |
Definition at line 131 of file elgglib.js.
elgg isNullOrUndefined |
Check if the value is either null or undefined.
{*} | val |
Definition at line 142 of file elgglib.js.
elgg isNumber |
Check if the value is a number.
{*} | val |
Definition at line 95 of file elgglib.js.
elgg isObject |
Check if the value is an object.
{*} | val |
Definition at line 109 of file elgglib.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 75 of file elgglib.js.
elgg isString |
Check if the value is a string.
{*} | val |
Definition at line 84 of file elgglib.js.
elgg isUndefined |
Check if the value is undefined.
{*} | val |
Definition at line 120 of file elgglib.js.
Convenience reference to an empty function.
Save memory by not generating multiple empty functions.
Definition at line 26 of file elgglib.js.
elgg parse_str |
Returns an object with key/values of the parsed query string.
{String} | string The string to parse |
Definition at line 505 of file elgglib.js.
elgg parse_url |
Parse a URL into its parts.
Mimicks http://php.net/parse_url
{String} | url The URL to parse |
{Int} | component A component to return |
{Bool} | expand Expand the query into an object? Else it's a string. |
Definition at line 432 of file elgglib.js.
elgg provide |
Definition at line 199 of file elgglib.js.
elgg push_to_object_array |
Adds child to object[parent] array.
{Object} | object The object to add to |
{String} | parent The parent array to add to. |
{Mixed} | value The value |
Definition at line 567 of file elgglib.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 383 of file elgglib.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 164 of file elgglib.js.
elgg system_message |
Wrapper function for system_messages.
Specifies "messages" as the type of message
{String} | msgs The message to display |
{Number} | delay How long to display the message (milliseconds) |
Definition at line 374 of file elgglib.js.