Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Functions | |
make_competence_scale () | |
Create another default scale. | |
object | make_default_scale () |
This function creates a default separated/connected scale so there's something in the database. | |
upgrade_add_item_to_usermenu (string $menuitem) | |
Add a new item at the end of the usermenu. | |
upgrade_block_set_defaultregion (string $blockname, string $pagename, string $pagetypepattern, string $newdefaultregion) | |
Update all instances of a block shown on a pagetype to a new default region, adding missing block instances where none is found. | |
upgrade_calculated_grade_items ($courseid=null) | |
Marks all courses that require calculated grade items be updated. | |
upgrade_calendar_action_events_fix (stdClass $info, bool $output=true, int $endtime=0) | |
Detects the calendar action events needing to be fixed. | |
upgrade_calendar_events_fix_remaining (array $info, bool $output=true, int $maxseconds=0) | |
Detects the calendar events needing to be fixed. | |
upgrade_calendar_events_get_teacherid (int $courseid) | |
Get a valid editing teacher for a given courseid. | |
upgrade_calendar_events_mtrace (string $string, bool $output) | |
Wrapper over mtrace() to allow a few more things to be specified. | |
upgrade_calendar_events_status (bool $output=true) | |
Detects the calendar events needing to be fixed. | |
upgrade_calendar_override_events_fix (stdClass $info, bool $output=true, int $endtime=0) | |
Detects the calendar override events needing to be fixed. | |
upgrade_calendar_site_status (bool $output=true) | |
Detects if the site may need to get the calendar events fixed or no. | |
upgrade_calendar_standard_events_fix (stdClass $info, bool $output=true, int $endtime=0) | |
Detects the calendar standard events needing to be fixed. | |
upgrade_calendar_subscription_events_fix (stdClass $info, bool $output=true, int $endtime=0) | |
Detects the calendar subscription events needing to be fixed. | |
upgrade_core_licenses () | |
Upgrade core licenses shipped with Moodle. | |
upgrade_course_letter_boundary ($courseid=null) | |
Marks all courses that require rounded grade items be updated. | |
upgrade_delete_orphaned_file_records () | |
Deletes file records which have their repository deleted. | |
upgrade_extra_credit_weightoverride ($onlycourseid=0) | |
Marks all courses with changes in extra credit weight calculation. | |
upgrade_fix_serialized_objects ($serializeddata) | |
Provides a way to check and update a serialized string that uses the deprecated object class. | |
upgrade_group_members_only ($groupingid, $availability) | |
Using data for a single course-module that has groupmembersonly enabled, returns the new availability value that incorporates the correct groupmembersonly option. | |
upgrade_letter_boundary_needs_freeze ($context) | |
Checks the letter boundary of the provided context to see if it needs freezing. | |
upgrade_mysql_get_supported_tables () | |
Returns all non-view and non-temp tables with sane names. | |
upgrade_standardise_score ($rawgrade, $sourcemin, $sourcemax, $targetmin, $targetmax) | |
Given a float value situated between a source minimum and a source maximum, converts it to the corresponding value situated between a target minimum and a target maximum. | |