Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 157... Línea 157...
157
    public function save_quickgrading_changes($userid, $grade) {
157
    public function save_quickgrading_changes($userid, $grade) {
158
        return false;
158
        return false;
159
    }
159
    }
Línea 160... Línea 160...
160
 
160
 
-
 
161
    /**
-
 
162
     * Return a list of detailed batch grading operations supported by this plugin.
-
 
163
     *
-
 
164
     * @return array - An array of objects containing batch operation details. Each object should contain:
-
 
165
     *                  - 'key': the action identifier (string)
-
 
166
     *                  - 'label': the button label (string)
-
 
167
     *                  - 'icon': the button icon (string)
-
 
168
     *                  - 'confirmationtitle': the title for the confirmation modal (string)
-
 
169
     *                  - 'confirmationquestion': the question for the confirmation modal (string)
-
 
170
     */
-
 
171
    public function get_grading_batch_operation_details() {
-
 
172
        return [];
-
 
173
    }
-
 
174
 
161
    /**
175
    /**
162
     * Return a list of the batch grading operations supported by this plugin.
176
     * Return a list of the batch grading operations supported by this plugin.
163
     *
177
     *
164
     * @return array - An array of action and description strings.
178
     * @return array - An array of action and description strings.
-
 
179
     *                 The action will be passed to grading_batch_operation.
-
 
180
     * @deprecated since 4.5, use get_grading_batch_operation_details() instead.
165
     *                 The action will be passed to grading_batch_operation.
181
     * @todo Final deprecation in Moodle 6.0. See MDL-82856.
-
 
182
     */
166
     */
183
    #[\core\attribute\deprecated('get_grading_batch_operation_details', since: '4.5', mdl: 'MDL-80750')]
167
    public function get_grading_batch_operations() {
184
    public function get_grading_batch_operations() {
-
 
185
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
-
 
186
 
168
        return array();
187
        return array_column(static::get_grading_batch_operation_details(), 'confirmationtitle', 'key');
Línea 169... Línea 188...
169
    }
188
    }
170
 
189
 
171
    /**
190
    /**