#6 Added ability to view other users' certificates

This commit is contained in:
Mark Nelson 2016-08-23 16:22:58 +08:00
parent a135007160
commit ff049e2c1b
16 changed files with 90 additions and 32 deletions

View file

@ -133,8 +133,9 @@ class element extends \mod_customcert\element {
*
* @param \pdf $pdf the pdf object
* @param bool $preview true if it is a preview, false otherwise
* @param \stdClass $user the user we are rendering this for
*/
public function render($pdf, $preview) {
public function render($pdf, $preview, $user) {
global $CFG;
// If there is no element data, we have nothing to display.