Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 91... Línea 91...
91
     * @param bool $rating True if the rating feature is enabled and false otherwise.
91
     * @param bool $rating True if the rating feature is enabled and false otherwise.
92
     * @param int|null $courseid Course where to add completion elements.
92
     * @param int|null $courseid Course where to add completion elements.
93
     * @throws \coding_exception If the form is not moodleform_mod and $modname is null.
93
     * @throws \coding_exception If the form is not moodleform_mod and $modname is null.
94
     */
94
     */
95
    protected function add_completion_elements(
95
    protected function add_completion_elements(
96
        string $modname = null,
96
        ?string $modname = null,
97
        bool $supportviews = false,
97
        bool $supportviews = false,
98
        bool $supportgrades = false,
98
        bool $supportgrades = false,
99
        bool $rating = false,
99
        bool $rating = false,
100
        ?int $courseid = null
100
        ?int $courseid = null
101
    ): void {
101
    ): void {
Línea 236... Línea 236...
236
        $completionel = 'completion' . $suffix;
236
        $completionel = 'completion' . $suffix;
237
        $completionelementexists = $mform->elementExists($completionel);
237
        $completionelementexists = $mform->elementExists($completionel);
238
        $component = "mod_{$modname}";
238
        $component = "mod_{$modname}";
239
        $itemnames = component_gradeitems::get_itemname_mapping_for_component($component);
239
        $itemnames = component_gradeitems::get_itemname_mapping_for_component($component);
Línea 240... Línea 240...
240
 
240
 
241
        $indentation = ['parentclass' => 'ml-2'];
241
        $indentation = ['parentclass' => 'ms-2'];
242
        $receiveagradeel = 'receiveagrade' . $suffix;
242
        $receiveagradeel = 'receiveagrade' . $suffix;
243
        $completionusegradeel = 'completionusegrade' . $suffix;
243
        $completionusegradeel = 'completionusegrade' . $suffix;
Línea 244... Línea 244...
244
        $completionpassgradeel = 'completionpassgrade' . $suffix;
244
        $completionpassgradeel = 'completionpassgrade' . $suffix;