Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
locallib.php File Reference

Bulk user registration functions. More...

Classes

class  uu_progress_tracker
 Tracking of processed users. More...
 

Functions

 uu_allowed_roles ()
 Returns list of roles that are assignable in courses. More...
 
 uu_allowed_roles_cache ()
 Returns mapping of all roles using short role name as index. More...
 
 uu_allowed_sysroles_cache ()
 Returns mapping of all system roles using short role name as index. More...
 
 uu_check_custom_profile_data (&$data)
 Checks if data provided for custom fields is correct Currently checking for custom profile field or type menu. More...
 
 uu_increment_username ($username)
 Increments username - increments trailing number or adds it if not present. More...
 
 uu_pre_process_custom_profile_data ($data)
 Pre process custom profile data, and update it with corrected value. More...
 
 uu_process_template ($template, $user)
 Check if default field contains templates and apply them. More...
 
 uu_process_template_callback ($username, $firstname, $lastname, $block)
 Internal callback function.
 
 uu_supported_auths ()
 Returns list of auth plugins that are enabled and known to work. More...
 
 uu_validate_user_upload_columns (csv_import_reader $cir, $stdfields, $profilefields, moodle_url $returnurl)
 Validation callback function - verified the column line of csv file. More...
 

Variables

const UU_BULK_ALL 3
 
const UU_BULK_NEW 1
 
const UU_BULK_NONE 0
 
const UU_BULK_UPDATED 2
 
const UU_PWRESET_ALL 2
 
const UU_PWRESET_NONE 0
 
const UU_PWRESET_WEAK 1
 
const UU_UPDATE_ALLOVERRIDE 2
 
const UU_UPDATE_FILEOVERRIDE 1
 
const UU_UPDATE_MISSING 3
 
const UU_UPDATE_NOCHANGES 0
 
const UU_USER_ADD_UPDATE 2
 
const UU_USER_ADDINC 1
 
const UU_USER_ADDNEW 0
 
const UU_USER_UPDATE 3
 

Detailed Description

Bulk user registration functions.

@subpackage uploaduser

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later