Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 190... Línea 190...
190
     * @param  \context $context Details about which context to delete ratings for.
190
     * @param  \context $context Details about which context to delete ratings for.
191
     * @param  string $component Component to delete.
191
     * @param  string $component Component to delete.
192
     * @param  string $ratingarea Rating area to delete.
192
     * @param  string $ratingarea Rating area to delete.
193
     * @param  int $itemid The item ID for use with deletion.
193
     * @param  int $itemid The item ID for use with deletion.
194
     */
194
     */
195
    public static function delete_ratings(\context $context, string $component = null,
195
    public static function delete_ratings(\context $context, ?string $component = null,
196
            string $ratingarea = null, int $itemid = null) {
196
            ?string $ratingarea = null, ?int $itemid = null) {
197
        global $DB;
197
        global $DB;
Línea 198... Línea 198...
198
 
198
 
199
        $options = ['contextid' => $context->id];
199
        $options = ['contextid' => $context->id];
200
        if ($component) {
200
        if ($component) {