Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/ajax/ajaxlib.php File Reference

Go to the source code of this file.

Data Structures

class  jsportal

Namespaces

namespace  moodlecore

Functions

 user_preference_allow_ajax_update ($name, $paramtype)
 ajaxenabled (array $browsers=null)

Function Documentation

ajaxenabled ( array browsers = null)

Returns whether ajax is enabled/allowed or not.

Parameters:
array$browsersoptional list of alowed browsers, empty means use default list
Returns:
bool
See also:
http://en.wikipedia.org/wiki/User_agent

Definition at line 54 of file ajaxlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

user_preference_allow_ajax_update ( name,
paramtype 
)

You need to call this function if you wish to use the set_user_preference method in javascript_static.php, to white-list the preference you want to update from JavaScript, and to specify the type of cleaning you expect to be done on values.

Parameters:
string$namethe name of the user_perference we should allow to be updated by remote calls.
integer$paramtypeone of the PARAM_{TYPE} constants, user to clean submitted values before set_user_preference is called.
Returns:
void

Definition at line 39 of file ajaxlib.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations