Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 21... Línea 21...
21
 * @copyright 2021 Jun Pataleta
21
 * @copyright 2021 Jun Pataleta
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
23
 */
Línea 24... Línea 24...
24
 
24
 
25
/**
25
/**
26
 * @deprecated since Moodle 3.11
26
 * @deprecated since Moodle 4.1 MDL-75146 - please do not use this function any more.
-
 
27
 */
-
 
28
#[\core\attribute\deprecated(
-
 
29
    'mod_data\manager::get_template and mod_data\template::parse_entries',
-
 
30
    since: '4.1',
-
 
31
    mdl: 'MDL-75146',
-
 
32
    final: true,
27
 */
33
)]
28
function data_get_completion_state() {
34
function data_print_template(): void {
-
 
35
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
36
}
-
 
37
 
29
    $completionclass = \mod_data\completion\custom_completion::class;
38
/**
-
 
39
 * @deprecated since Moodle 4.1 MDL-75148 - please, use the preset::get_name_from_plugin() function instead.
-
 
40
 */
-
 
41
#[\core\attribute\deprecated('mod_data\preset::get_name_from_plugin()', since: '4.1', mdl: 'MDL-75148', final: true)]
-
 
42
function data_preset_name(): void {
-
 
43
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
44
}
-
 
45
 
-
 
46
/**
-
 
47
 * @deprecated since Moodle 4.1 MDL-75148 - please, use the manager::get_available_presets() function instead.
-
 
48
 */
-
 
49
#[\core\attribute\deprecated('mod_data\manager::get_available_presets()', since: '4.1', mdl: 'MDL-75148', final: true)]
-
 
50
function data_get_available_presets(): void {
-
 
51
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
52
}
-
 
53
 
-
 
54
/**
-
 
55
 * @deprecated since Moodle 4.1 MDL-75148 - please, use the manager::get_available_saved_presets() function instead.
-
 
56
 */
-
 
57
#[\core\attribute\deprecated('mod_data\manager::get_available_saved_presets()', since: '4.1', mdl: 'MDL-75148', final: true)]
-
 
58
function data_get_available_site_presets(): void {
-
 
59
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
60
}
-
 
61
 
-
 
62
/**
-
 
63
 * @deprecated since Moodle 4.1 MDL-75187 - please, use the preset::delete() function instead.
-
 
64
 */
-
 
65
#[\core\attribute\deprecated('mod_data\preset::delete()', since: '4.1', mdl: 'MDL-75187', final: true)]
-
 
66
function data_delete_site_preset(): void {
-
 
67
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
68
}
-
 
69
 
-
 
70
/**
-
 
71
 * @deprecated since Moodle 4.1 MDL-75142 - please, use the preset::save() function instead.
-
 
72
 */
-
 
73
#[\core\attribute\deprecated('mod_data\preset::save()', since: '4.1', mdl: 'MDL-75142', final: true)]
-
 
74
function data_presets_save(): void {
-
 
75
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
76
}
-
 
77
 
-
 
78
/**
-
 
79
 * @deprecated since Moodle 4.1 MDL-75142 - please, use the protected preset::generate_preset_xml() function instead.
-
 
80
 */
-
 
81
#[\core\attribute\deprecated('mod_data\preset::generate_preset_xml()', since: '4.1', mdl: 'MDL-75142', final: true)]
-
 
82
function data_presets_generate_xml(): void {
-
 
83
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
84
}
-
 
85
 
-
 
86
/**
-
 
87
 * @deprecated since Moodle 4.1 MDL-75142 - please, use the preset::export() function instead.
-
 
88
 */
-
 
89
#[\core\attribute\deprecated('mod_data\preset::export()', since: '4.1', mdl: 'MDL-75142', final: true)]
-
 
90
function data_presets_export(): void {
-
 
91
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
92
}
-
 
93
 
-
 
94
/**
-
 
95
 * @deprecated since Moodle 4.1 MDL-75187 - please, use the preset::can_manage() function instead.
-
 
96
 */
-
 
97
#[\core\attribute\deprecated('mod_data\preset::can_manage()', since: '4.1', mdl: 'MDL-75187', final: true)]
-
 
98
function data_user_can_delete_preset(): void {
-
 
99
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
100
}
-
 
101
 
-
 
102
/**
-
 
103
 * @deprecated since Moodle 4.1 MDL-75146 - please do not use this function any more.
-
 
104
 */
-
 
105
#[\core\attribute\deprecated('mod_data\manager::set_module_viewed', since: '4.1', mdl: 'MDL-75146', final: true)]
-
 
106
function data_view(): void {
-
 
107
    \core\deprecation::emit_deprecation(__FUNCTION__);
-
 
108
}
-
 
109
 
-
 
110
/**
-
 
111
 * @deprecated since Moodle 4.1 MDL-75148 - please, use the preset::is_directory_a_preset() function instead.
-
 
112
 */
-
 
113
#[\core\attribute\deprecated('mod_data\preset::is_directory_a_preset()', since: '4.1', mdl: 'MDL-75148', final: true)]
-
 
114
function is_directory_a_preset(): void {
30
    throw new coding_exception(__FUNCTION__ . "() has been removed, please use the '{$completionclass}' class instead");
115
    \core\deprecation::emit_deprecation(__FUNCTION__);
Línea 31... Línea 116...
31
}
116
}
32
 
117
 
33
/**
118
/**