Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 22... Línea 22...
22
 * @copyright 2009 Tim Hunt
22
 * @copyright 2009 Tim Hunt
23
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
24
 */
Línea 25... Línea 25...
25
 
25
 
26
/**
-
 
27
 * You need to call this function if you wish to use the set_user_preference method in javascript_static.php, to white-list the
-
 
28
 * preference you want to update from JavaScript, and to specify the type of cleaning you expect to be done on values.
-
 
29
 *
-
 
30
 * @package  core
-
 
31
 * @category preference
-
 
32
 * @param    string          $name      the name of the user_perference we should allow to be updated by remote calls.
-
 
33
 * @param    integer         $paramtype one of the PARAM_{TYPE} constants, user to clean submitted values before set_user_preference is called.
-
 
34
 * @return   null
-
 
35
 *
26
/**
36
 * @deprecated since Moodle 4.3
27
 * @deprecated since Moodle 4.3
37
 */
-
 
38
function user_preference_allow_ajax_update($name, $paramtype) {
-
 
39
    global $USER, $PAGE;
-
 
40
 
28
 */
41
    debugging(__FUNCTION__ . '() is deprecated. Please use the "core_user/repository" module instead.', DEBUG_DEVELOPER);
-
 
42
 
29
#[\core\attribute\deprecated('\'core_user/repository\' module', since: '4.3', mdl: 'MDL-76974', final: true)]
43
    // Record in the session that this user_preference is allowed to updated remotely.
30
function user_preference_allow_ajax_update() {
44
    $USER->ajax_updatable_user_prefs[$name] = $paramtype;
31
    \core\deprecation::emit_deprecation(__FUNCTION__);
Línea 45... Línea 32...
45
}
32
}
46
 
33
 
47
/**
34
/**