MDL-67832 quiz: fix lots of PHPdoc in attemptlib.php

This commit is contained in:
Tim Hunt
2020-01-31 19:09:28 +00:00
parent 7f697f7a44
commit e5c2879063
5 changed files with 253 additions and 107 deletions
+2 -1
View File
@@ -1680,7 +1680,8 @@ class context_to_string_translator{
/**
* Check capability on category
*
* @param int|stdClass $questionorid object or id. If an object is passed, it should include ->contextid and ->createdby.
* @param int|stdClass|question_definition $questionorid object or id.
* If an object is passed, it should include ->contextid and ->createdby.
* @param string $cap 'add', 'edit', 'view', 'use', 'move' or 'tag'.
* @param int $notused no longer used.
* @return bool this user has the capability $cap for this question $question?