Class for handling H5P activity grading.
More...
|
| __construct (stdClass $instance, string $idnumber='') |
| Class contructor.
|
|
| grade_item_delete () |
| Delete grade item for given mod_h5pactivity instance.
|
|
| grade_item_update ($grades=null) |
| Creates or updates grade item for the given mod_h5pactivity instance.
|
|
| update_grades (int $userid=0) |
| Update grades in the gradebook.
|
|
Class for handling H5P activity grading.
- Since
- Moodle 3.9
- Copyright
- 2020 Ferran Recio ferra.nosp@m.n@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_h5pactivity\local\grader::__construct |
( |
stdClass | $instance, |
|
|
string | $idnumber = '' ) |
Class contructor.
- Parameters
-
stdClass | $instance | H5Pactivity instance object |
string | $idnumber | course_modules idnumber |
◆ grade_item_delete()
mod_h5pactivity\local\grader::grade_item_delete |
( |
| ) |
|
Delete grade item for given mod_h5pactivity instance.
- Return values
-
int | Returns GRADE_UPDATE_OK, GRADE_UPDATE_FAILED, GRADE_UPDATE_MULTIPLE or GRADE_UPDATE_ITEM_LOCKED |
◆ grade_item_update()
mod_h5pactivity\local\grader::grade_item_update |
( |
| $grades = null | ) |
|
Creates or updates grade item for the given mod_h5pactivity instance.
- Parameters
-
mixed | $grades | optional array/object of grade(s); 'reset' means reset grades in gradebook |
- Return values
-
int | 0 if ok, error code otherwise |
◆ update_grades()
mod_h5pactivity\local\grader::update_grades |
( |
int | $userid = 0 | ) |
|
Update grades in the gradebook.
- Parameters
-
int | $userid | Update grade of specific user only, 0 means all participants. |
The documentation for this class was generated from the following file: