Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Files | |
file | filter_form.php |
@subpackage customlang | |
file | install.php |
Post installation and migration code. | |
file | install.php |
Post installation and migration code. | |
file | lib.php |
@subpackage customlang | |
file | lib.php |
Utility lang import functions. | |
file | locallib.php |
Definition of classes used by language customization admin tool. | |
file | locallib.php |
Bulk user registration functions. | |
file | picture_form.php |
Bulk user picture upload form. | |
file | settings.php |
@subpackage customlang | |
file | settings.php |
Capability overview settings. | |
file | settings.php |
Link to InnoDB conversion tool. | |
file | settings.php |
Lang import. | |
file | settings.php |
Link to multilang upgrade script. | |
file | settings.php |
Profiling tool settings. | |
file | settings.php |
Link to unsupported db replace script. | |
file | settings.php |
Link to spamcleaner. | |
file | settings.php |
Link to unsupported roles tool. | |
file | settings.php |
Link to CSV user upload. | |
file | upgrade.php |
Language customization report upgrades. | |
file | user_form.php |
Bulk user upload forms. | |
file | version.php |
Version information. | |
file | version.php |
Version details. | |
file | version.php |
Version details. | |
file | version.php |
Version details. | |
file | version.php |
Plugin version info. | |
file | version.php |
Version details. | |
file | version.php |
Plugin version info. | |
file | version.php |
Plugin version info. | |
file | version.php |
Plugin version info. | |
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... More... | |
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... | |
xmldb_tool_customlang_install () | |
xmldb_tool_customlang_upgrade ($oldversion) | |
xmldb_tool_unsuproles_install () | |
Variables | |
$hasextension = extension_loaded('tideways_xhprof') | |
$isenabled = !empty($CFG->profilingenabled) || !empty($CFG->earlyprofilingenabled) | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin = 2020060900 | |
$plugin | component = 'tool_customlang' |
$plugin | component = 'tool_health' |
$plugin | component = 'tool_innodb' |
$plugin | component = 'tool_langimport' |
$plugin | component = 'tool_multilangupgrade' |
$plugin | component = 'tool_replace' |
$plugin | component = 'tool_spamcleaner' |
$plugin | component = 'tool_unsuproles' |
$plugin | component = 'tool_uploaduser' |
$plugin | maturity = MATURITY_ALPHA |
$plugin | maturity = MATURITY_ALPHA |
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 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
$plugin | version = 2020061500 |
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 | ( | ) |
Returns mapping of all roles using short role name as index.
array |
uu_allowed_sysroles_cache | ( | ) |
Returns mapping of all system roles using short role name as index.
array |
uu_check_custom_profile_data | ( | & | $data | ) |
Checks if data provided for custom fields is correct Currently checking for custom profile field or type menu.
array | $data | user profile data |
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 |