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

This commit is contained in:
Tim Hunt
2020-01-31 19:09:44 +00:00
parent ee0a8161dd
commit 7fda2e9bac
5 changed files with 253 additions and 107 deletions
+2 -1
View File
@@ -1659,7 +1659,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?