Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 147... Línea 147...
147
        }
147
        }
Línea 148... Línea 148...
148
 
148
 
149
        $result = (object)[
149
        $result = (object)[
150
            'activityid' => $instance->id,
150
            'activityid' => $instance->id,
-
 
151
            'usersattempts' => $usersattempts,
151
            'usersattempts' => $usersattempts,
152
            'totalattempts' => $manager->count_attempts(),
152
            'warnings' => $warnings,
153
            'warnings' => $warnings,
Línea 153... Línea 154...
153
        ];
154
        ];
154
 
155
 
Línea 253... Línea 254...
253
        return new external_single_structure([
254
        return new external_single_structure([
254
            'activityid' => new external_value(PARAM_INT, 'Activity course module ID'),
255
            'activityid' => new external_value(PARAM_INT, 'Activity course module ID'),
255
            'usersattempts' => new external_multiple_structure(
256
            'usersattempts' => new external_multiple_structure(
256
                self::get_user_attempts_returns(), 'The complete users attempts list'
257
                self::get_user_attempts_returns(), 'The complete users attempts list'
257
            ),
258
            ),
-
 
259
            'totalattempts' => new external_value(PARAM_INT, 'Total number of attempts'),
258
            'warnings' => new external_warnings(),
260
            'warnings' => new external_warnings(),
259
        ], 'Activity attempts data');
261
        ], 'Activity attempts data');
260
    }
262
    }
Línea 261... Línea 263...
261
 
263