Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Classes | |
class | admin_uploadpicture_form |
class | admin_uploaduser_form1 |
Upload a file CVS file with user information. More... | |
class | admin_uploaduser_form2 |
Specify user upload details. More... | |
class | tool_customlang_filter_form |
Form for filtering the strings to customize. More... | |
class | tool_customlang_menu |
Represents the action menu of the tool. More... | |
class | tool_customlang_translator |
Represents the translation tool. More... | |
class | tool_customlang_utils |
Provides various utilities to be used by the plugin. More... | |
class | uu_progress_tracker |
Tracking of processed users. More... | |
Functions | |
tool_langimport_preupgrade_update ($lang) | |
Called during upgrade, we need up-to-date lang pack because it may be used during upgrade... | |
uu_allowed_roles () | |
Returns list of roles that are assignable in courses. | |
uu_allowed_roles_cache (?int $categoryid=null, ?int $courseid=null) | |
Returns assignable roles for current user using short role name and role ID as index. | |
uu_allowed_sysroles_cache () | |
Returns mapping of all system roles using short role name as index. | |
uu_check_custom_profile_data (&$data, array &$profilefieldvalues=[]) | |
Checks if data provided for custom fields is correct Currently checking for custom profile field or type menu. | |
uu_increment_username ($username) | |
Increments username - increments trailing number or adds it if not present. | |
uu_pre_process_custom_profile_data ($data) | |
Pre process custom profile data, and update it with corrected value. | |
uu_process_template ($template, $user) | |
Check if default field contains templates and apply them. | |
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. | |
uu_validate_user_upload_columns (csv_import_reader $cir, $stdfields, $profilefields, moodle_url $returnurl) | |
Validation callback function - verified the column line of csv file. | |
xmldb_tool_customlang_install () | |
xmldb_tool_customlang_upgrade ($oldversion) | |
xmldb_tool_unsuproles_install () | |
tool_langimport_preupgrade_update | ( | $lang | ) |
Called during upgrade, we need up-to-date lang pack because it may be used during upgrade...
string | $lang |
void |
uu_allowed_roles | ( | ) |
Returns list of roles that are assignable in courses.
array |
uu_allowed_roles_cache | ( | ?int | $categoryid = null, |
?int | $courseid = null ) |
Returns assignable roles for current user using short role name and role ID as index.
This function is no longer called without parameters.
int | null | $categoryid | Id of the category to get roles for. |
int | null | $courseid | Id of the course to get roles for. |
array |
uu_allowed_sysroles_cache | ( | ) |
Returns mapping of all system roles using short role name as index.
array |
uu_check_custom_profile_data | ( | & | $data, |
array & | $profilefieldvalues = [] ) |
Checks if data provided for custom fields is correct Currently checking for custom profile field or type menu.
array | $data | user profile data |
array | $profilefieldvalues | Used to track previous profile field values to ensure uniqueness is observed |
bool | true if no error else false |
uu_increment_username | ( | $username | ) |
Increments username - increments trailing number or adds it if not present.
Varifies that the new username does not exist yet
string | $username |
incremented | username which does not exist yet |
uu_pre_process_custom_profile_data | ( | $data | ) |
Pre process custom profile data, and update it with corrected value.
stdClass | $data | user profile data |
stdClass | pre-processed custom profile data |
uu_process_template | ( | $template, | |
$user ) |
Check if default field contains templates and apply them.
string | template - potential tempalte string |
object | user object- we need username, firstname and lastname |
string | field value |
uu_supported_auths | ( | ) |
Returns list of auth plugins that are enabled and known to work.
If ppl want to use some other auth type they have to include it in the CSV file next on each line.
array | type=>name |
uu_validate_user_upload_columns | ( | csv_import_reader | $cir, |
$stdfields, | |||
$profilefields, | |||
moodle_url | $returnurl ) |
Validation callback function - verified the column line of csv file.
Converts standard column names to lowercase.
csv_import_reader | $cir | |
array | $stdfields | standard user fields |
array | $profilefields | custom profile fields |
moodle_url | $returnurl | return url in case of any error |
array | list of fields |