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

This commit is contained in:
Tim Hunt 2020-01-29 18:14:58 +00:00
parent cb38ab1e39
commit 1aacbb72d3
5 changed files with 253 additions and 107 deletions

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?