mirror of
https://github.com/moodle/moodle.git
synced 2025-03-30 05:22:35 +02:00
On the Database page: - The List/single view is displayed in the right. - The buttons Import entries, export entries and Export to portfolio have been moved to the Actions menu. - The List/Single view headings have been removed. - The "Save settings" secondary button is hidden when advanced search is enabled. - The result (Found X out of Y entries, No records found) are not displayed as notifications anymore. On the Presets page: - The buttons (Import, Export and Save as preset) have been moved to an actions menu to the tertiary navigation. Some of these options have been renamed. - Remove the Action column heading from the table. On the Presets preview page: - Move the preset name to the heading in the tertiary navigation (Preview of xxxxx), and remove the current preset name from the page. - Align the List/single template to the right in the tertiary navigation. - Make primary the "Use this preset" button. On the Fields page: - Remove the "Manage fields" menu. - Remove the Export and Save as preset from the tertiary navigation. - Align Create a field to the right in the tertiary navigation. - Add a description at the top of the page. - Remove the Action column heading from the table. - Move field actions (Edit and Delete) to ellipsis. On the Templates page: - Move Export and Save as preset to the Actions menu. - Move the templates list to a tertiary navigation selector and remove the template heading. - Reorder the templates list (Add entry template should be displayed at the begining, instead of List template). - Rename "Enable editor" to "Enable code editor".
67 lines
4.2 KiB
Plaintext
67 lines
4.2 KiB
Plaintext
This files describes API changes in /mod/data - plugins,
|
|
information provided here is intended especially for developers.
|
|
|
|
=== 4.1 ===
|
|
* The method data_view is now deprecated. Use $maganer->set_module_viewed instead.
|
|
* The data_print_template function is now deprecated and replaced by mod_data\template class.
|
|
* The data_print_ratings function now has an extra $print to get the ratings output instead of printing it directly.
|
|
* The following functions have been deprecated because they have been moved to the manager class:
|
|
- data_get_available_presets
|
|
- data_get_available_site_presets
|
|
- data_preset_name
|
|
- data_presets_export
|
|
- data_presets_generate_xml
|
|
- data_presets_save
|
|
- is_directory_a_preset
|
|
* mod_data_external::add_entry() function throws an error when trying to add an entry to a database with no field created.
|
|
* data_user_can_add_entry() function returns false for any user if there is no field created on the database.
|
|
* From now on, the data_generate_default_template method will always return a string with the template content or an empty
|
|
string when there is no content available.
|
|
* The following classes have been deprecated from lib.php because they have been moved to use manager class:
|
|
- data_preset_importer
|
|
- data_preset_existing_importer
|
|
- data_preset_upload_importer
|
|
* import_setting_mappings() function has been deprecated. Use importing_preset() instead.
|
|
* $fieldselect single_select type parameter has been deprecated for fields_action_bar class constructor, and a new action_menu
|
|
type parameter has been added.
|
|
* The $urlselect, $saveaspresetbutton and $exportpresetbutton parameters in the constructor of the fields_action_bar class
|
|
have been deprecated too and are not used anymore.
|
|
* The $saveaspresetbutton and $exportpresetbutton parameters in the constructor of the templates_action_bar class
|
|
have been deprecated and are not used anymore. Besides, a new parameter, $actionsselect, has been added to the
|
|
constructor of this class.
|
|
* A new parameter, $actionsselect, has been added to the presets_action_bar constructor.
|
|
* A new parameter, $mode, has been added to the view_action_bar constructor.
|
|
* The $hassaveaspreset and $haveexportpreset parameters in the get_fields_action_bar() action_bar class have been deprecated and
|
|
are not used anymore.
|
|
|
|
=== 3.7 ===
|
|
* External functions get_entries, get_entry and search_entries now return an additional field "tags" containing the entry tags.
|
|
|
|
=== 3.4 ===
|
|
* External function mod_data_external::search_entries() now returns the maxcount field: Total count of records that the user could
|
|
see in the database (if all the search criterias were removed).
|
|
* External function get_entry now returns an additional field "ratinginfo" containing the entry rating information.
|
|
|
|
=== 3.3.2 ===
|
|
* data_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
|
|
now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
|
|
objects instead of the ids to save DB calls.
|
|
|
|
=== 3.3 ===
|
|
|
|
* External function get_databases_by_courses now return more fields for users with mod/data:viewentry capability enabled:
|
|
maxentries, rssarticles, singletemplate, listtemplate, listtemplateheader, listtemplatefooter, addtemplate,
|
|
rsstemplate, rsstitletemplate, csstemplate, jstemplate, asearchtemplate, approval, defaultsort, defaultsortdir, manageapproved.
|
|
* Data field classes extending data_field_base should implement the get_config_for_external method.
|
|
This method is used for returning the field settings for external functions.
|
|
You should check the user capabilities of the current user before returning any field setting value.
|
|
This is intended to protect field settings like private keys for external systems.
|
|
* Required entries has been added to the Activity completion setting of mod_form. Entries required for completion
|
|
(in the entries section) is no longer displayed for new instances and will be deprecated in a future release
|
|
in favour of the new completion setting.
|
|
|
|
=== 3.2 ===
|
|
|
|
* New hook - update_content_import - Can be implemented by field subplugins data_field_* class
|
|
This can be used to pre-process data from a csv file before it is inserted into the database.
|