Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 106... Línea 106...
106
    public function data_preprocessing(&$defaultvalues) {
106
    public function data_preprocessing(&$defaultvalues) {
107
        return;
107
        return;
108
    }
108
    }
Línea 109... Línea 109...
109
 
109
 
-
 
110
    /**
-
 
111
     * This method is called when the mod_assign_mod_form is submitted.
-
 
112
     *
-
 
113
     * It is an opportunity to validate the settings form fields added by {@see get_settings()}.
-
 
114
     *
-
 
115
     * @param array $data as passed to mod_assign_mod_form::validation().
-
 
116
     * @param array $files as passed to mod_assign_mod_form::validation().
-
 
117
     * @return array and validation errors that should be displayed.
-
 
118
     *      This is array_merged with any other validation errors from the form.
-
 
119
     */
-
 
120
    public function settings_validation(array $data, array $files): array {
-
 
121
        return [];
-
 
122
    }
-
 
123
 
110
    /**
124
    /**
111
     * The assignment subtype is responsible for saving it's own settings as the database table for the
125
     * The assignment subtype is responsible for saving it's own settings as the database table for the
112
     * standard type cannot be modified.
126
     * standard type cannot be modified.
113
     *
127
     *
114
     * @param stdClass $formdata - the data submitted from the form
128
     * @param stdClass $formdata - the data submitted from the form
Línea 520... Línea 534...
520
        $log = $log . ' ' . get_string('upgradenotimplemented', 'mod_assign', $params);
534
        $log = $log . ' ' . get_string('upgradenotimplemented', 'mod_assign', $params);
521
        return false;
535
        return false;
522
    }
536
    }
Línea 523... Línea 537...
523
 
537
 
524
    /**
-
 
525
     * @deprecated since 2.7
-
 
526
     */
-
 
527
    public function format_for_log() {
-
 
528
        throw new coding_exception(__FUNCTION__ . ' has been deprecated, please do not use it any more');
-
 
529
    }
-
 
530
 
-
 
531
    /**
538
    /**
532
     * The assignment has been deleted - remove the plugin specific data
539
     * The assignment has been deleted - remove the plugin specific data
533
     *
540
     *
534
     * @return bool
541
     * @return bool
535
     */
542
     */