Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Todo List
Member _fix_course_cats ($children, &$sortorder, $parent, $depth, $path, &$fixcontexts)
Document the arguments of this function better
Member admin_setting_configmulticheckbox::output_html ($data, $query='')
Add vartype handling to ensure $data is an array
Member admin_setting_configmultiselect::output_html ($data, $query='')
Add vartype handling to ensure $data is an array
Member admin_setting_courselist_frontpage::output_html ($data, $query='')
Add vartype handling to make sure $data is an array
Class admin_setting_devicedetectregex
Final deprecation on Moodle 4.7 MDL-79052
Member admin_setting_devicedetectregex::__construct ($name, $visiblename, $description, $defaultsetting='')
Final deprecation on Moodle 4.7 MDL-79052
Member admin_setting_devicedetectregex::get_setting ()
Final deprecation on Moodle 4.7 MDL-79052
Member admin_setting_devicedetectregex::output_html ($data, $query='')
Final deprecation on Moodle 4.7 MDL-79052
Member admin_setting_devicedetectregex::write_setting ($data)
Final deprecation on Moodle 4.7 MDL-79052
Member admin_setting_gradecat_combo::output_html ($data, $query='')
Add vartype handling to ensure $data is array
Member admin_setting_gradecat_combo::write_setting ($data)
Add vartype handling to ensure $data is array
Member admin_setting_ldap_rolemapping::output_html ($data, $query='')
Add vartype handling to ensure $data is an array
Member ADODB_mssql_n::_appendN ($inboundData)
This function should raise an ADOdb error if one of the transformations fail
Member ASSIGN_ATTEMPT_REOPEN_METHOD_NONE
MDL-81977 This will be deleted in Moodle 4.8.
Member auth_plugin_base::get_title ()
Document this function
Member base_controller::get_copy ()
MDL-75026 This method will be deleted in Moodle 4.5
Member base_controller::set_copy (\stdClass $data)
MDL-75025 This method will be deleted in Moodle 4.5
Class base_setting_ui

extend as required for restore

Member behat_grade_deprecated::i_give_the_feedback ($feedback, $userfullname, $itemname)
MDL-77107 This will be deleted in Moodle 4.6. @Given /^I give the feedback "(?P<grade_number>(?:[^"]|::")*)" to the user "(?P<username_string>(?:[^"]|")*)" for the grade item "(?P<grade_activity_string>(?:[^"]|::")*)"$/ </dd> <dt> \_setscope behat_gradereport_grader Member \_internalref df/dc1/classbehat__gradereport__grader#a2d43bb48802ac2a6a9fbb13503d8bd4f "behat_gradereport_grader::get_grade_item_id" ($itemname)</dt><dd> \anchor _todo000065 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a097248e4f32407338d8ab1234cdb86a0 "behat_gradereport_grader_deprecated::get_student_and_grade_cell_selector" ($student, $itemname)</dt><dd> \anchor _todo000075 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a5f39a30a7c41509e552cd19c6455b55e "behat_gradereport_grader_deprecated::get_student_and_grade_feedback_selector" ($student, $itemname)</dt><dd> \anchor _todo000069 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a65d8e1d9acf81afae0222e949d982877 "behat_gradereport_grader_deprecated::get_student_and_grade_value_selector" ($student, $itemname)</dt><dd> \anchor _todo000076 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a837afbf1706c00997ff70c624f3858f2 "behat_gradereport_grader_deprecated::i_click_away_from_student_and_grade_feedback" ($student, $itemname)</dt><dd> \anchor _todo000066 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Given /^I click away from student "([^"]*)" and grade item "([^"]*)" feedback$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#af4ecd4956b732666c5f23f87f7d8b513 "behat_gradereport_grader_deprecated::i_click_away_from_student_and_grade_value" ($student, $itemname)</dt><dd> \anchor _todo000071 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Given /^I click away from student "([^"]*)" and grade item "([^"]*)" value$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a3b1d653eafaaff36fff6eb9c1313a355 "behat_gradereport_grader_deprecated::i_click_on_student_and_grade_item" ($student, $itemname)</dt><dd> \anchor _todo000070 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Given /^I click on student "([^"]*)" for grade item "([^"]*)"$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a28c1f4d6fe3508d152150309f412d96d "behat_gradereport_grader_deprecated::i_should_not_see_feedback_field" ($student, $itemname)</dt><dd> \anchor _todo000068 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Then /^I should not see a feedback field for "([^"]*)" and grade item "([^"]*)"$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a320dbc082519db9713101d8022cd92f6 "behat_gradereport_grader_deprecated::i_should_not_see_grade_field" ($student, $itemname)</dt><dd> \anchor _todo000074 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Then /^I should not see a grade field for "([^"]*)" and grade item "([^"]*)"$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a95ddd1abd5594fcb582cd470777b449c "behat_gradereport_grader_deprecated::i_should_see_feedback_field" ($student, $itemname)</dt><dd> \anchor _todo000067 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Then /^I should see a feedback field for "([^"]*)" and grade item "([^"]*)"$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#af35a5574ab19f59c0392c2184082eaa5 "behat_gradereport_grader_deprecated::i_should_see_grade_field" ($student, $itemname)</dt><dd> \anchor _todo000073 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Then /^I should see a grade field for "([^"]*)" and grade item "([^"]*)"$/ </dd> <dt> \_setscope behat_gradereport_grader_deprecated Member \_internalref d6/dc5/classbehat__gradereport__grader__deprecated#a2ca8c416a91d094b8fea941c450a1ef9 "behat_gradereport_grader_deprecated::the_grade_should_match" ($student, $itemname, $value)</dt><dd> \anchor _todo000072 <a class="el" href="https://tracker.moodle.org/browse/MDL-77107">MDL-77107</a> This will be deleted in Moodle 4.6. @Then /^the grade for "([^"]*)" in grade item "([^"]*)" should match "([^"]*)"$/
Member behat_mod_data_deprecated::i_add_a_field_to_database_and_i_fill_the_form_with ($fieldtype, $activityname, TableNode $fielddata)
MDL-79721 This will be deleted in Moodle 4.8.
Member behat_mod_data_deprecated::i_add_an_entry_to_database_with ($activityname, TableNode $entrydata)
MDL-79721 This will be deleted in Moodle 4.8.
Member block_html_pluginfile ($course, $birecord_or_cm, $context, $filearea, $args, $forcedownload, array $options=array())
MDL-36050 improve capability check on stick blocks, so we can check user capability before sending images.
Member block_manager::get_secondarynav (block_base $block)
MDL-74939 Remove support for old 'local::views::secondary' class location
Member block_recent_activity::get_recent_enrolments ()
MDL-36993 this function always return empty array
Member blocks_remove_inappropriate ($course)
Write/Fix this function. Currently returns immediately
Member book_get_nav_classes ()
MDL-81328 Final deprecation in Moodle 4.8.
Member cache_helper::invalidate_by_definition ($component, $area, array $identifiers=array(), $keys=array())
Invalidating by definition should also add to the event cache so that sessions can be invalidated (when required).
Class cache_session
we should support locking in the session as well. Should be pretty simple to set up.
Member chat_portfolio_caller::prepare_package ()
Document this function
Member check_php_version ($version='5.2.4')
Check PHP version being required here is it too low?
Member core\hook\manager::is_deprecated_plugin_callback (string $plugincallback)
Remove in Moodle 4.8 (MDL-80327).
Member core\hub\site_registration_form::add_select_with_email ($elementname, $stridentifier, $options=null, $highlight=false)
MDL-71472 - Will be deleted in 4.3
Member core\moodlenet\activity_sender::share_activity ()
Final deprecation MDL-79086
Member core\task\manager::ensure_adhoc_task_qos (array $records)
MDL-74843 This method will be deleted in Moodle 4.5
Member core\task\task_base::__pad0__
Remove in MDL-81509
Member core\task\task_base::__pad1__
Remove in MDL-81509
Member core_adminpresets\local\setting\adminpresets_admin_setting_devicedetectregex::set_visiblevalue ()
Final deprecation on Moodle 4.7 MDL-79052
Member core_analytics\manager::add_builtin_models ()
Remove this method in Moodle 3.11 (MDL-65186).
Class core_backup\copy\copy
MDL-75022 This class will be deleted in Moodle 4.5
Member core_backup\copy\copy::create_copy ()
MDL-75023 This method will be deleted in Moodle 4.5
Member core_backup\copy\copy::get_copies (int $userid, int $courseid=0)
MDL-75024 This method will be deleted in Moodle 4.5
Member core_badges_renderer::render_badge_collection (\core_badges\output\badge_collection $badges)
MDL-80455 this will be removed in Moodle 4.8
Member core_badges_renderer::render_badge_recipients (\core_badges\output\badge_recipients $recipients)
MDL-80455 this will be removed in Moodle 4.8
Member core_cache\output\renderer::lock_summaries (array $locks)
Add some actions so that people can configure lock instances.
Member core_calendar\external\calendar_event_exporter::get_module_timestamp_max_limit (\DateTimeInterface $starttime, $max)
final deprecation. To be removed in Moodle 3.10
Member core_calendar\external\calendar_event_exporter::get_module_timestamp_min_limit (\DateTimeInterface $starttime, $min)
final deprecation. To be removed in Moodle 3.10
Class core_course\output\activity_information
MDL-78926 This class will be deleted in Moodle 4.7
Member core_course_bulk_activity_completion_renderer::edit_default_completion ($form, $modules)
MDL-78711 This will be deleted in Moodle 4.7
Member core_course_category::preload_course_contacts (&$courses)
MDL-38596 minimize number of queries to preload contacts for the list of courses
Member core_course_renderer::render_activity_information (\core_course\output\activity_information $page)
MDL-78926 This method will be deleted in Moodle 4.7
Member core_courseformat\base::get_section_number ()
MDL-80116 This will be deleted in Moodle 4.8.
Member core_courseformat\base::instance ($courseorid)
MDL-35727 use MUC for caching of instances, limit the number of cached instances
Member core_courseformat\base::set_section_number (int $singlesection)
MDL-80116 This will be deleted in Moodle 4.8.
Member core_courseformat\output\local\content\section\availability::availability_info ($text, $additionalclasses='')
MDL-78489 This will be deleted in Moodle 4.7.
Member core_courseformat\stateactions::section_move (stateupdates $updates, stdClass $course, array $ids, ?int $targetsectionid=null, ?int $targetcmid=null)
MDL-80116 This will be deleted in Moodle 4.8.
Member core_files_renderer::fm_js_template_listfilename ()
MDL-32736 remove onclick="return false;"
Member core_message\output\preferences\notification_list_processor::export_for_template (\renderer_base $output)
Remove loggedin and loggedoff from context on MDL-73284.
Member core_message_external::get_preferences_structure ()
Remove loggedin and loggedoff from processors structure on MDL-73284.
Class core_question\local\bank\action_column_base
MDL-78090 This class will be deleted in Moodle 4.7
Member core_question\local\bank\condition::display_options ()
Final deprecation on Moodle 4.1 MDL-72572
Member core_question\local\bank\condition::display_options_adv ()
Final deprecation on Moodle 4.1 MDL-72572
Class core_question\local\bank\menu_action_column_base
MDL-78090 This class will be deleted in Moodle 4.7
Interface core_question\local\bank\menuable_action
MDL-78090 This interface will be deleted in Moodle 4.7
Member core_question\local\bank\random_question_loader::count_questions ($categoryid, $includesubcategories, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::ensure_questions_for_category_loaded ($categoryid, $includesubcategories, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::get_category_key ($categoryid, $includesubcategories, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::get_next_question_id ($categoryid, $includesubcategories, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::get_question_ids ($categoryid, $includesubcategories, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::get_questions ($categoryid, $includesubcategories, $tagids=[], $limit=100, $offset=0, $fields=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\random_question_loader::is_question_available ($categoryid, $includesubcategories, $questionid, $tagids=[])
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\view::display_advanced_search_form ($advancedsearch)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::display_bottom_pagination ($pagination, $totalnumber, $perpage, $pageurl)
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\view::display_options_form ($showquestiontext)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::display_showtext_checkbox ($showquestiontext)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::display_top_pagnation ($pagination)
Final deprecation on Moodle 4.7 MDL-78091
Member core_question\local\bank\view::end_table ()
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::get_current_category ($categoryandcontext)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::init_search_conditions ()
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::print_choose_category_message ()
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\local\bank\view::start_table ()
Final deprecation on Moodle 4.7 MDL-78090
Member core_question\statistics\questions\all_calculated_for_qubaid_condition::TIME_TO_CACHE
MDL-78090 Final deprecation in Moodle 4.7
Member core_question\statistics\responses\analyser::TIME_TO_CACHE
MDL-78090 Final deprecation in Moodle 4.7
Member core_question_bank_renderer::render_category_condition ($displaydata)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question_bank_renderer::render_category_condition_advanced ($displaydata)
Final deprecation on Moodle 4.7 MDL-78090
Member core_question_bank_renderer::render_hidden_condition_advanced ($displaydata)
Final deprecation on Moodle 4.7 MDL-78090
Member core_reportbuilder\local\entities\base::get_default_tables ()
in Moodle 4.8 - make abstract when support for {
Member core_rtlcss::processDeclaration ($node)
Remove the dir-rtl flipping when dir-rtl is fully deprecated.
Class core_user

move api's from user/lib.php and deprecate old ones.

Member core_useragent::get_device_type_list ($includecustomtypes=true)
Final deprecation on Moodle 4.7 MDL-79052
Member core_webservice\token_table::col_token ($data)
MDL-78605 Final deprecation in Moodle 4.7.
Member core_webservice_renderer::documentation_html ($functions, $printableformat, $activatedprotocol, $authparams, $parenturl='/webservice/wsdoc.php')
MDL-76078 - Incorrect inter-communication, core cannot have plugin dependencies like this.
Member core_webservice_renderer::rest_param_description_html ($paramdescription, $paramstring)
MDL-76078 - Incorrect inter-communication, core cannot have plugin dependencies like this.
Member core_webservice_renderer::xmlrpc_param_description_html ($paramdescription, $indentation="")
MDL-76078 - Incorrect inter-communication, core cannot have plugin dependencies like this.
Member create_user_record ($username, $password, $auth='manual')
Outline auth types and provide code example
Member data_delete_site_preset ($name)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_get_available_presets ($context)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_get_available_site_presets ($context, array $presets=array())
MDL-75189 This will be deleted in Moodle 4.5.
Class data_import_preset_zip_form
MDL-75189 This will be deleted in Moodle 4.5.
Class data_preset_existing_importer
MDL-75189 Final deprecation in Moodle 4.5.
Class data_preset_importer
MDL-75189 Final deprecation in Moodle 4.5.
Member data_preset_name ($shortname, $path)
MDL-75189 This will be deleted in Moodle 4.5.
Class data_preset_upload_importer
MDL-75189 Final deprecation in Moodle 4.5.
Member data_presets_export ($course, $cm, $data, $tostorage=false)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_presets_generate_xml ($course, $cm, $data)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_presets_save ($course, $cm, $data, $path)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_print_template ($templatename, $records, $data, $search='', $page=0, $return=false, moodle_url $jumpurl=null)
MDL-75189 Final deprecation in Moodle 4.5.
Member data_user_can_delete_preset ($context, $preset)
MDL-75189 This will be deleted in Moodle 4.5.
Member data_view ($data, $course, $cm, $context)
MDL-75189 Final deprecation in Moodle 4.5.
Class dml_transaction_exception
MDL-20625 Use the info from $transaction for debugging purposes.
Member draw_rand_array ($array, $draws)
Finish documenting this function
Member Enclosure::embed ($options='', $native=false)
If the dimensions for media:content are defined, use them when width/height are set to 'auto'.
Member enrol_plugin::update_communication (int $enrolmentinstanceid, string $action, stdClass $course)
MDL-80491 Final deprecation in Moodle 4.8.
Member enrol_self_plugin::email_welcome_message ($instance, $user)
MDL-81185 Final deprecation in Moodle 4.8.
Member enrol_self_plugin::get_welcome_email_contact ($sendoption, $context)
MDL-81185 Final deprecation in Moodle 4.8.
Member environment_results::strToReport ($string, $class)
Document this function
Class File
Move to properly supporting RFC2616 (HTTP/1.1)
Member file_correct_filepath ($str)
review this function
Member file_encode_url ($urlbase, $path, $forcedownload=false, $https=false)
MDL-31071 deprecate this function $CFG
Member file_extension_icon ($filename, $unused=null)

MDL-31074 When an $OUTPUT->icon method is available this function should be altered to conform with that.

MDL-31074 Implement $size

Member file_get_drafarea_folders ($draftitemid, $filepath, &$data)
MDL-31073 use normal return value instead, this does not fit the rest of api here (skodak)
Member file_info::copy_to_pathname ($pathname)
MDL-31068 implement move() rename() unzip() zip()
Member file_info_context_user::get_area_user_backup ($itemid, $filepath, $filename)
MDL-31091 maybe we need new caability for access control
Member file_info_context_user::get_area_user_private ($itemid, $filepath, $filename)
MDL-31070 this method should respect $CFG->userquota
Member file_mimetype_icon ($mimetype, $unused=null)
MDL-31074 When an $OUTPUT->icon method is available this function should be altered to conform with that.
Member file_pluginfile ($relativepath, $forcedownload, $preview=null, $offline=false, $embed=false)
MDL-31088 file serving improments
Member file_postupdate_standard_filemanager ($data, $field, array $options, $context, $component, $filearea, $itemid)

MDL-31073 review this function

Class form_filemanager
do not use this abstraction (skodak)
Member forum_get_recent_mod_activity (&$activities, &$index, $timestart, $courseid, $cmid, $userid=0, $groupid=0)
Document this functions args
Member get_context_instance ($contextlevel, $instance=0, $strictness=IGNORE_MISSING)
This will be deleted in Moodle 2.8, refer MDL-34472
Member get_directory_list ($rootdir, $excludefiles='', $descend=true, $getdirs=false, $getfiles=true)
Finish documenting this function. Add examples of $excludefile usage.
Member get_max_upload_file_size ($sitebytes=0, $coursebytes=0, $modulebytes=0, $unused=false)
Finish documenting this function
Member global_navigation::module_extends_navigation ($modname)
(MDL-25290) A shared caching solution should be used to save details on what extends navigation.
Class grade_edit_tree_column_select
Final deprecation on Moodle 4.7 MDL-77668
Member grade_edit_tree_column_select::get_category_cell ($category, $levelclass, $params)
Final deprecation on Moodle 4.7 MDL-77668
Member grade_edit_tree_column_select::get_checkbox_togglegroup (grade_category $category)
Final deprecation on Moodle 4.7 MDL-77668
Member grade_edit_tree_column_select::get_header_cell ()
Final deprecation on Moodle 4.7 MDL-77668
Member grade_edit_tree_column_select::get_item_cell ($item, $params)
Final deprecation on Moodle 4.7 MDL-77668
Member grade_helper::get_lang_string (string $strcode, ?string $section=null)
MDL-78780 This will be deleted in Moodle 4.7.
Member grade_report::get_lang_string ($strcode, $section=null)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_report_grader::get_icons ($element)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_report_grader::get_left_icons_row ($rows=array(), $colspan=1)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_report_grader::get_right_icons_row ($rows=array())
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_calculation_icon ($element, $gpr, $returnactionmenulink=false)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_edit_icon ($element, $gpr, $returnactionmenulink=false)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_element_header (array &$element, bool $withlink=false, bool $icon=true, bool $spacerifnone=false, bool $withdescription=false, bool $fulltotal=false, ?moodle_url $sortlink=null)
MDL-79907 This will be deleted in Moodle 4.8.
Member grade_structure::get_element_icon (&$element, $spacerifnone=false)
MDL-79907 This will be deleted in Moodle 4.8.
Member grade_structure::get_element_type_string (array $element)
MDL-79907 This will be deleted in Moodle 4.8.
Member grade_structure::get_grade_analysis_icon (grade_grade $grade)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_hiding_icon ($element, $gpr, $returnactionmenulink=false)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_locking_icon ($element, $gpr)
MDL-77307 This will be deleted in Moodle 4.6.
Member grade_structure::get_reset_icon ($element, $gpr, $returnactionmenulink=false)
MDL-77307 This will be deleted in Moodle 4.6.
Member HTMLPurifier_AttrDef_CSS_Composite::$defs
Make protected
Member HTMLPurifier_AttrDef_CSS_Multiple::$max
Make protected
Member HTMLPurifier_AttrDef_CSS_Multiple::$single
Make protected
Member HTMLPurifier_AttrDef_Enum::$valid_values
Make protected
Member HTMLPurifier_CSSDefinition::setupConfigStuff ($config)
Refactor duplicate elements into common class (probably using composition, not inheritance).
Member HTMLPurifier_DefinitionCache_Serializer::generateBaseDirectoryPath ($config)
Make protected
Member HTMLPurifier_DefinitionCache_Serializer::generateDirectoryPath ($config)
Make protected
Member HTMLPurifier_DefinitionCache_Serializer::generateFilePath ($config)
Make protected
Member HTMLPurifier_Filter_ExtractStyleBlocks::preFilter ($html, $config, $context)
Extend to indicate non-text/css style blocks
Member HTMLPurifier_Generator::escape ($string, $quote=null)
This really ought to be protected, but until we have a facility for properly generating HTML here w/o using tokens, it stays public.
Member HTMLPurifier_HTMLDefinition::parseTinyMCEAllowedList ($list)
Give this its own class, probably static interface
Member HTMLPurifier_HTMLModule_Tidy::setup ($config)
Wildcard matching and error reporting when an added or subtracted fix has no effect.
Member HTMLPurifier_Language::$_loaded
Make it private, fix usage in HTMLPurifier_LanguageTest
Member HTMLPurifier_Language::formatMessage ($key, $args=array())
Implement conditionals? Right now, some messages make reference to line numbers, but those aren't always available
Member HTMLPurifier_Lexer::extractBody ($html)
Consider making protected
Member HTMLPurifier_Lexer::normalize ($html, $config, $context)
Consider making protected
Member HTMLPurifier_Lexer_DOMLex::createStartNode ($node, &$tokens, $collect, $config)
data and tagName properties don't seem to exist in DOMNode?
Member HTMLPurifier_Printer_HTMLDefinition::listifyObjectList ($array)
Also add information about internal state
Member is_directory_a_preset ($directory)
MDL-75189 This will be deleted in Moodle 4.5.
Member is_in_popup ()
Use a central function to create the popup calls all over Moodle and In the moment only works with resources and probably questions.
Member Item::get_enclosure ($key=0, $prefer=null)
Add ability to prefer one type of content over another (in a media group).
Member Item::get_enclosures ()

Add support for end-user defined sorting of enclosures by type/handler (so we can prefer the faster-loading FLV over MP4).

If an element exists at a level, but its value is empty, we should fall back to the value from the parent (if it exists).

Member make_grades_menu ($gradingtype)
Finish documenting this function or better deprecated this completely!
Member make_unique_id_code ($extra='')
Finish documenting this function
Member MESSAGE_DEFAULT_LOGGEDIN
Remove on MDL-73284.
Member MESSAGE_DEFAULT_LOGGEDOFF
Remove on MDL-73284.
Member MESSAGE_DEFAULT_PERMITTED
Remove on MDL-73284.
Member mnet_peer::get_public_key ()
MDL-78304 Final deprecation.
Member mnetservice_enrol::get_remote_publishers ()

once the MNet core is refactored this may be part of a parent class

the name of the service should be changed to the name of this plugin

Member mnetservice_enrol::get_remote_subscribers ()

once the MNet core is refactored this may be part of a parent class

the name of the service should be changed to the name of this plugin

Member mnetservice_enrol::is_available ()
move this to some parent class once we have such
Member mod_bigbluebuttonbn\meeting::create_meeting_data ()
moderatorPW and attendeePW will be removed from create after release of BBB v2.6.
Member mod_data_renderer::import_setting_mappings ($datamodule, data_preset_importer $importer)
MDL-75189 Final deprecation in Moodle 4.5.
Member mod_forum_external::update_discussion_post ($postid, $subject='', $message='', $messageformat=FORMAT_HTML, $options=[])
support more options: timed posts, groups change and tags.
Member MOD_PURPOSE_INTERFACE
MDL-80701 Remove in Moodle 4.8
Member mod_quiz\form\add_random_form::definition ()
Final deprecation in Moodle 4.7 MDL-78091
Member mod_quiz\form\add_random_form::validation ($fromform, $files)
Final deprecation in Moodle 4.7 MDL-78091
Member mod_quiz\local\structure\slot_random::set_tags ($tags)
Final deprecation on Moodle 4.7 MDL-78091
Member mod_quiz\local\structure\slot_random::set_tags_by_id ($tagids)
Final deprecation on Moodle 4.7 MDL-78091
Member mod_quiz\output\renderer::render_mod_quiz_links_to_other_attempts (links_to_other_attempts $links)
MDL-76612 Final deprecation in Moodle 4.6
Member mod_quiz\output\renderer::render_quiz_nav_question_button (navigation_question_button $button)
MDL-76612 Final deprecation in Moodle 4.6
Member mod_quiz\output\renderer::render_quiz_nav_section_heading (navigation_section_heading $heading)
MDL-76612 Final deprecation in Moodle 4.6
Member mod_quiz\structure::is_display_number_customised (int $slotid)

MDL-76612 Final deprecation in Moodle 4.6

Class mod_quiz_overdue_attempt_updater
MDL-76612 Final deprecation in Moodle 4.6
Member mod_workshop_renderer::helper_grading_report_assessment ($assessment, $shownames, array $userinfo, $separator)
Highlight the nulls
Class moodle1_files_handler
migrate site_files
Member moodle1_gradebook_handler::on_gradebook_grade_item_grades_start ()
Member moodle1_handlers_factory::get_plugin_handlers ($type, moodle1_converter $converter)
ask mod's subplugins
Member moodle_database::get_record ($table, array $conditions, $fields=' *', $strictness=IGNORE_MISSING)
MDL-30407 MUST_EXIST option should not throw a dml_exception, it should throw a different exception as it's a requested check.
Member moodle_database::sql_fullname ($first='firstname', $last='lastname')
MDL-31233 This may not be needed here.
Member moodle_page::magic_get_secondarynav ()
MDL-74939 Remove support for old 'local::views::secondary' class location
Member moodle_process_email ($modargs, $body)
Finish documenting this function
Class moodle_quiz_exception
MDL-76612 Final deprecation in Moodle 4.6
Member moodle_url::remove_all_params ($params=null)
remove the unused param.
Class moodleform
MDL-19380 rethink the file scanning
Member moodleform::save_files ($destination)
MDL-31294 remove this api
Class MoodleQuickForm_editor

MDL-29421 element Freezing

MDL-29426 ajax format conversion

Member mssql_sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member mysql_sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member oracle_sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member PhpXmlRpc::Traits::getParser ()
feature-creep: allow passing in $options (but then, how to deal with changing options between invocations?)
Member PhpXmlRpc\Client::$method
: do all the ones below need to be public?
Member PhpXmlRpc\Client::createCURLHandle ($req, $method, $server, $port, $path, $opts)
allow this method to either throw or return a Response, so that we can pass back to caller more info on errors
Member PhpXmlRpc\Client::send ($req, $timeout=0, $method='')

allow throwing exceptions instead of returning responses in case of failed calls and/or Fault responses

refactor: we now support many options besides connection timeout and http version to use. Why only privilege those?

Member PhpXmlRpc\Client::sendPayloadSocket ($req, $server, $port, $timeout=0, $username='', $password='', $authType=1, $cert='', $certPass='', $caCert='', $caCertDir='', $proxyHost='', $proxyPort=0, $proxyUsername='', $proxyPassword='', $proxyAuthType=1, $method='http', $key='', $keyPass='', $sslVersion=0)

not implemented yet.

not implemented yet. See http://php.net/manual/en/migration56.openssl.php

Member PhpXmlRpc\Client::sendViaCURL ($req, $method, $server, $port, $path, $opts)
the $path arg atm is ignored. What to do if it is != $this->path?
Member PhpXmlRpc\Client::setCookie ($name, $value='', $path='', $domain='', $port=null)

check correctness of urlencoding cookie value (copied from php way of doing it, but php is generally sending response not requests. We do the opposite...)

strip invalid chars from cookie name? As per RFC6265, we should follow RFC2616, Section 2.2

drop/rename $port parameter. Cookies are not isolated by port!

feature-creep allow storing 'expires', 'secure', 'httponly' and 'samesite' cookie attributes (we could do as php, and allow $path to be an array of attributes...)

Member PhpXmlRpc\Encoder::decodeXml ($xmlVal, $options=array())

is this a good name/class for this method? It does something quite different from 'decode' after all (returning objects vs returns plain php values)... In fact, it belongs rather to a Parser class

feature creep – we should allow an option to return php native types instead of PhpXmlRpc objects instances

feature creep – allow source charset to be passed in as an option, in case the xml misses its declaration

feature creep – allow expected type (val/req/resp) to be passed in as an option

Member PhpXmlRpc\Helper\Charset::buildConversionTable ($tableName)

add support for cp1252 as well as latin-2 .. latin-10 Optimization creep: instead of building all those tables on load, keep them ready-made php files which are not even included until needed

should we add to the latin-1 table the characters from cp_1252 range, i.e. 128 to 159 ? Those will NOT be present in true ISO-8859-1, but will save the unwary windows user from sending junk (though no luck when receiving them...) Note also that, apparently, while 'ISO/IEC 8859-1' has no characters defined for bytes 128 to 159, IANA ISO-8859-1 does have well-defined 'C1' control codes for those - wikipedia's page on latin-1 says: "ISO-8859-1 is the IANA preferred name for this standard when supplemented with the C0 and C1 control codes from ISO/IEC 6429." Check what mbstring/iconv do by default with those?

Member PhpXmlRpc\Helper\Charset::encodeEntities ($data, $srcEncoding='', $destEncoding='')

do a bit of basic benchmarking: strtr vs. str_replace, str_replace vs htmlspecialchars, hand-coded conversion vs mbstring when that is enabled

make use of iconv when it is available and mbstring is not

support aliases for charset names, eg ASCII, LATIN1, ISO-88591 (see f.e. polyfill-iconv for a list), but then take those into account as well in other methods, ie. isValidCharset)

when converting to ASCII, allow to choose whether to escape the range 0-31,127 (non-print chars) or not

allow picking different strategies to deal w. invalid chars? eg. source in latin-1 and chars 128-159

add support for escaping using CDATA sections? (add cdata start and end tokens, replace only ']]>' with ']]]]>>')

Member PhpXmlRpc\Helper\Charset::instance ()
should we just make $xml_iso88591_Entities a static variable instead ?
Member PhpXmlRpc\Helper\Http::parseResponseHeaders (&$data, $headersProcessed=false, $debug=0)
if $debug is < 0, we could avoid populating 'raw_data' and 'headers' in the returned value - but that would be a weird API...
Member PhpXmlRpc\Helper\Interop::$xmlrpcerr
review - should we use the range -32099 .. -32000 for some server erors?
Member PhpXmlRpc\Helper\XMLParser::guessEncoding ($httpHeader='', $xmlChunk='', $encodingPrefs=null)

explore usage of mb_http_input(): does it detect http headers + post data? if so, use it instead of hand-detection!!!

feature-creep make it possible to pass in options overriding usage of PhpXmlRpc static variables, to make the method independent of global state

Member PhpXmlRpc\Helper\XMLParser::parse ($data, $returnType=self::RETURN_XMLRPCVALS, $accept=3, $options=array())

refactor? we could 1. return the parsed data structure, and 2. move $returnType and $accept into options

feature-creep make it possible to pass in options overriding usage of PhpXmlRpc::$xmlrpc_XXX_format, so that parsing will be completely independent of global state. Note that it might incur a small perf hit...

Member PhpXmlRpc\PhpXmlRpc::$xmlpc_double_precision
rename :'-(
Member PhpXmlRpc\PhpXmlRpc::importGlobals ()
this function does not import back xmlrpc_valid_parents and xml_iso88591_Entities
Member PhpXmlRpc\Request::parseResponse ($data='', $headersProcessed=false, $returnType=XMLParser::RETURN_XMLRPCVALS)

parsing Responses is not really the responsibility of the Request class. Maybe of the Client...

what about only populating 'raw_data' in httpResponse when debug mode is > 0?

feature creep - allow parsing data gotten from a stream pointer instead of a string: read it piecewise, looking first for separation between headers and body, then for charset indicators, server debug info and </methodResponse>. That would require a notable increase in code complexity...

Member PhpXmlRpc\Request::parseResponseFile ($fp, $headersProcessed=false, $returnType='xmlrpcvals')

arsing Responses is not really the responsibility of the Request class. Maybe of the Client...

feature creep - add a flag to disable trying to parse the http headers

Member PhpXmlRpc\Response::__construct ($val, $fCode=0, $fString='', $valType='', $httpResponse=null)
add check that $val / $fCode / $fString is of correct type? We could at least log a warning for fishy cases... NB: as of now we do not do it, since it might be either an xml-rpc value or a plain php val, or a complete xml chunk, depending on usage of Client::send() inside which the constructor is called.
Member PhpXmlRpc\Server::$functions_parameters_type
create class constants for these
Member PhpXmlRpc\Server::add_to_map ($methodName, $function, $sig=null, $doc=false, $sigDoc=false, $parametersType=false, $exceptionHandling=false)

raise a warning if the user tries to register a 'system.' method

Member PhpXmlRpc\Server::addToMap ($methodName, $function, $sig=null, $doc=false, $sigDoc=false, $parametersType=false, $exceptionHandling=false)
raise a warning if the user tries to register a 'system.' method
Member PhpXmlRpc\Value::addArray ($values)

add some checking for $values to be an array of xml-rpc values?

rename to addToArray?

Member PhpXmlRpc\Value::addScalar ($val, $type='string')

arguably, as we have addArray to add elements to an Array value, and addStruct to add elements to a Struct value, we should not allow this method to add values to an Array. The 'scalar' in the method name refers to the expected state of the target object, not to the type of $val. Also, this works differently from addScalar/addStruct in that, when adding an element to an array, it wraps it into a new Value

rename?

Member PhpXmlRpc\Value::addStruct ($values)

add some checking for $values to be an array of xml-rpc values?

rename to addToStruct?

Member plagiarism_get_file_results ($cmid, $userid, $file)
MDL-71326 This is to be moved from here to deprecatedlib.php in Moodle 4.4
Member plagiarism_plugin::get_configs ()
MDL-71326 Remove this method.
Member plagiarism_plugin::get_file_results ($cmid, $userid, $file)
MDL-71326 Remove this method.
Member plagiarism_plugin::update_status ($course, $cm)
MDL-71326 Remove this method.
Member plagiarism_update_status ($course, $cm)
MDL-71326 Remove this method.
Member plugin_callback ($type, $name, $feature, $action, $params=null, $default=null, bool $migratedtohook=false)
Decide about to deprecate and drop plugin_callback() - MDL-30743
Member portfolio_caller_base::set_formats_from_button ($formats)
MDL-31298 - re-analyze set_formats_from_button comment
Member portfolio_format_leap2a_entry::validate ()
MDL-31303 - add category with a scheme 'selection_type'
Class portfolio_format_leap2a_writer

MDL-31287 - find a way to ensure that all referenced files are included

Member portfolio_format_leap2a_writer::__construct (stdclass $user)
MDL-31302 - add exporter and format
Member portfolio_format_richhtml::conflicts ($format)
MDL-31305 - revisit the conflict with file, since we zip here
Member portfolio_instances ($visibleonly=true, $useronly=true)
MDL-15768 - check capabilities here
Member postgres_sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member prepare ($sql)
update this function to handle prepared statements correctly
Member print_arrow ($direction='up', $strsort=null, $return=false)
final deprecation of this function once MDL-45448 is resolved
Member print_course_request_buttons ($context)
Final deprecation MDL-73976
Member print_grade_menu ($courseid, $name, $current, $includenograde=true, $return=false)

Finish documenting this function

Deprecate: this is only used in a few contrib modules

Member print_password_policy ()
this should be handled by a function/method in the language pack library once we have a support for it @uses $CFG
Member qbank_editquestion\editquestion_helper::create_new_question_button ($categoryid, $params, $canadd, $tooltip='', $disabled=false)
Final deprecation in Moodle 4.7
Member qbank_editquestion\output\renderer::render_create_new_question_button ($addquestiondata)
Final deprecation in Moodle 4.7
Member qbank_managecategories\category_condition::display_category_form ($contexts, $pageurl, $current)
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_managecategories\category_condition::display_options ()
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_managecategories\category_condition::display_options_adv ()
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_managecategories\category_condition::get_current_category ($categoryandcontext)
Final deprecation in Moodle 4.7 MDL-78090
Member qbank_managecategories\category_condition::print_category_info ($category)
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_managecategories\category_condition::print_choose_category_message ()
Final deprecation in Moodle 4.7 MDL-78090
Member qbank_managecategories\output\renderer::render_category_condition ($displaydata)
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_managecategories\output\renderer::render_category_condition_advanced ($displaydata)
Final deprecation on Moodle 4.7 MDL-78090
Member qbank_statistics\helper::calculate_average_question_discrimination_index (int $questionid)
MDL-78090 Final deprecation in Moodle 4.7
Member qbank_statistics\helper::calculate_average_question_discriminative_efficiency (int $questionid)
MDL-78090 Final deprecation in Moodle 4.7
Member qbank_statistics\helper::calculate_average_question_facility (int $questionid)
MDL-78090 Final deprecation in Moodle 4.7
Member question_finder::get_questions_from_categories_and_tags_with_usage_counts ($categoryids, qubaid_condition $qubaids, $extraconditions='', $extraparams=array(), $tagids=array())
Final deprecation on Moodle 4.7 MDL-78091
Member question_finder::get_questions_from_categories_with_usage_counts ($categoryids, qubaid_condition $qubaids, $extraconditions='', $extraparams=array())
Final deprecation on Moodle 4.7 MDL-78091
Member quiz_add_random_questions (stdClass $quiz, int $addonpage, int $categoryid, int $number)
Final deprecation in Moodle 4.7 MDL-78091
Member quiz_calculate_best_attempt ($quiz, $attempts)
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_calculate_best_grade ($quiz, $attempts)
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_delete_all_overrides ($quiz, $log=true)
MDL-80944 Final deprecation in Moodle 4.8
Member quiz_delete_override ($quiz, $overrideid, $log=true)
MDL-80944 Final deprecation in Moodle 4.8
Member quiz_save_best_grade ($quiz, $userid=null, $attempts=[])
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_set_grade ($newgrade, $quiz)
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_statistics\calculator::TIME_TO_CACHE
MDL-78091 Final deprecation in Moodle 4.7
Member quiz_update_all_attempt_sumgrades ($quiz)
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_update_all_final_grades ($quiz)
MDL-76612 Final deprecation in Moodle 4.6
Member quiz_update_sumgrades ($quiz)
MDL-76612 Final deprecation in Moodle 4.6
Member report_log_renderable::$grouplist
MDL-81155 remove this property as it is not used anymore.
Member report_log_renderable::get_actions ()
MDL-44528 Get list from log_store.
Member report_log_renderable::get_edulevel_options ()
MDL-44528 Get list from log_store.
Member repository::build_tree ($fileinfo, $search, $dynamicmode, &$list)
take $search into account, and respect a threshold for dynamic loading
Member repository::move_to_filepool ($thefile, $record)

MDL-28637

Member repository_onedrive::can_import_skydrive_files ()
MDL-72620 This will be deleted in Moodle 4.4.
Member repository_onedrive::import_skydrive_files ()
MDL-72620 This will be deleted in Moodle 4.4.
Member repository_recent::file_is_accessible ($source)
MDL-33805 remove this function when recent files are managed correctly
Member repository_type::get_contextvisibility ($context)
check if the context visibility has been overwritten by the plugin creator (need to create special functions to be overvwritten in repository class)
Member restore_dbops::get_backup_ids_cached ($restoreid, $itemname, $itemid)
MDL-25290 replace static backupids* with MUC code
Member restore_dbops::reset_backup_ids_cached ()
MDL-25290 static should be replaced with MUC code.
Member restore_dbops::set_backup_ids_cached ($restoreid, $itemname, $itemid, $extrarecord)
MDL-25290 replace static BACKUP_IDS_* with MUC code
Class Sanitize
Move to using an actual HTML parser (this will allow tags to be properly stripped, and to switch between HTML and XHTML), this will also make it easier to shorten a string while preserving HTML tags
Member SIMPLEPIE_BUILD

Hardcode for release (there's no need to have to call SimplePie_Misc::get_build() only every load of simplepie.inc)

Member sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member sqlite_sql_generator::getDropDefaultSQL ($xmldb_table, $xmldb_field)
MDL-31147 Moodle 2.1 - Drop getDropDefaultSQL()
Member survey_print_multi ($question)
Check this function
Member TAG_MAX_LENGTH
define(TAG_MAX_LENGTH) this is not correct, varchar(255) are 255 unicode chars ;-)
Member tool_mfa\output\renderer::setup_factor (object $factor)
Final deprecation in Moodle 4.8 MDL-80995
Member toolbook_importhtml_parse_headings ($html)
implement this once the type 'typeonefile' is enabled
Member translate_message_default_setting ($plugindefault, $processorname)
Remove usage of MESSAGE_DEFAULT_LOGGEDOFF on MDL-73284.
Member user_delete_user ($user)
Decide if this transaction is really needed (look for internal TODO:)
Member webservice::get_user_capabilities ($userid)
MDL-70187 Please delete this method completely in Moodle 4.3, thank you.
Member workshop::delete_assessment ($id)
Give grading strategy plugins a chance to clean up their data, too.
Member zip_archive::open ($archivepathname, $mode=file_archive::CREATE, $encoding=null)
MDL-31048 return error message
Member zip_packer::extract_to_pathname ($archivefile, $pathname, array $onlyfiles=null, file_progress $progress=null, $returnbool=false)
MDL-31048 localise messages
Member zip_packer::extract_to_storage ($archivefile, $contextid, $component, $filearea, $itemid, $pathbase, $userid=NULL, file_progress $progress=null)
MDL-31048 localise messages