MDL-70959 completion: Documentation improvements
commit4e75827d72272c06d06c770c3a0c8d97672c72fc
authorJun Pataleta <jun@moodle.com>
Mon, 22 Feb 2021 09:32:41 +0000 (22 17:32 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 19 Mar 2021 03:52:23 +0000 (19 11:52 +0800)
tree31e4788a524cdb85b0582fd45b1b09e69f9bdadf
parent8ee6f49384dfb8e5fa6bf61a11cdb90fa79d2cd1
MDL-70959 completion: Documentation improvements

* Fix typo in $cm parameter's type in PHPDoc
* Improve the comment to better explain the logic why fetching the
completion data for the whole course can only be done when caching is
used.
Even if $wholecourse is set to true, there's no point in fetching the
completion data for all the course modules unless we're caching the
results.
lib/completionlib.php