|
Moodle
2.2.1
http://www.collinsharper.com
|
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) | |
| ajaxenabled | ( | array $ | browsers = null | ) |
Returns whether ajax is enabled/allowed or not.
| array | $browsers | optional list of alowed browsers, empty means use default list |
Definition at line 54 of file ajaxlib.php.


| 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.
| string | $name | the name of the user_perference we should allow to be updated by remote calls. |
| integer | $paramtype | one of the PARAM_{TYPE} constants, user to clean submitted values before set_user_preference is called. |
Definition at line 39 of file ajaxlib.php.
