Línea 62... |
Línea 62... |
62 |
* @param int $h5pactivityid The h5p activity id
|
62 |
* @param int $h5pactivityid The h5p activity id
|
63 |
* @param int|null $userid The user id
|
63 |
* @param int|null $userid The user id
|
64 |
* @param int|null $attemptid The attempt id
|
64 |
* @param int|null $attemptid The attempt id
|
65 |
* @return array of warnings and status result
|
65 |
* @return array of warnings and status result
|
66 |
*/
|
66 |
*/
|
67 |
public static function execute(int $h5pactivityid, int $userid = null, int $attemptid = null): stdClass {
|
67 |
public static function execute(int $h5pactivityid, ?int $userid = null, ?int $attemptid = null): stdClass {
|
68 |
$params = external_api::validate_parameters(self::execute_parameters(), [
|
68 |
$params = external_api::validate_parameters(self::execute_parameters(), [
|
69 |
'h5pactivityid' => $h5pactivityid,
|
69 |
'h5pactivityid' => $h5pactivityid,
|
70 |
'userid' => $userid,
|
70 |
'userid' => $userid,
|
71 |
'attemptid' => $attemptid,
|
71 |
'attemptid' => $attemptid,
|
72 |
]);
|
72 |
]);
|