Commit graph

26 commits

Author SHA1 Message Date
Mark Nelson
3c6a8b97f3 Added helper function to issue certificates 2018-05-26 18:22:27 +08:00
Mark Nelson
fa69bcc604 #129 Added Behat test coverage 2017-08-11 14:30:33 +08:00
Mark Nelson
052b7b874f #85 Added new capability for viewing the course report 2017-06-02 16:24:24 +08:00
Mark Nelson
1f219af560 #115 Prevent PDF being polluted with HTML at the EOF 2017-05-31 16:16:15 +08:00
Mark Nelson
72c3b278e3 #48 Added task and settings responsible for emailing certificates 2017-04-26 21:44:33 +08:00
Mark Nelson
f83e3dca58 #83 Removed unnecessary pop-up 2017-03-04 17:59:20 +08:00
Mark Nelson
fdc5bde3d4 #88 Make plugins DB codechecker happy 2017-02-25 11:38:30 +08:00
Mark Nelson
e31236cbf2 #76 Added standard course viewed events 2017-02-16 18:01:05 +08:00
Mark Nelson
5bed5517e6 Fixed reference to a string present in the mod_certificate activity 2017-02-01 14:43:08 +08:00
Mark Nelson
a41c443135 #57 Set the activity as viewed when downloaded 2016-11-29 15:43:19 +08:00
Mark Nelson
c5859e433f #55 Fixed references to capabilities from mod_certificate 2016-11-29 13:30:16 +08:00
Mark Nelson
43d20c0d1b Huge refactor
1) Every certificate is a template. Before a user would create a certificate then had
the option to save it as a template. This could potentially be chaotic with numerous
users creating templates, making the template system a mess. Now, rather than creating
a certificate first, then saving it as a template, you are always creating a template.
Each template is associated with a context, so depending on where you are creating it
the context is different. This means users in the CONTEXT_MODULE context are creating
a template specific to that module, where as a user creating a template in the
CONTEXT_SYSTEM context would be creating a general template that can be used by others.
This meant we can remove the 'customcert_template_*' db tables. Yay - no duplicated
tables.
2) Created new helper classes and moved functionality there.
3) Moved files to classes/ for autoloading.
4) General tidy up.
2016-02-20 16:35:19 +08:00
Mark Nelson
0483cda501 Fixed access control 2015-03-13 23:37:07 -07:00
Mark Nelson
ba12c4d42b Fixed group mode 2015-03-13 23:37:06 -07:00
Mark Nelson
a61997b2aa Check course time using new logging API 2015-03-13 23:37:06 -07:00
Mark Nelson
7a2675e889 Moved internal functions to locallib.php 2015-03-13 23:37:06 -07:00
Mark Nelson
5203d81980 Changed PHPDocs and added date to the copyright to match Moodle coding guidelines 2013-07-22 13:06:18 +08:00
Mark Nelson
59ea1afd75 Removed unnecessary second parameter for the render function 2013-06-06 11:14:06 +08:00
Mark Nelson
60ba77d562 Removed usages of deprecated function 2013-05-28 17:00:07 +08:00
Mark Nelson
a513ba8038 Added functionality to preview the custom certificate 2013-05-17 11:09:22 +08:00
Mark Nelson
d8677842d3 Used the moodle_url class rather than $CFG->wwwroot for links 2013-05-16 13:17:42 +08:00
Mark Nelson
47b79abf6c Added spacing around '=>' 2013-04-26 16:41:08 +08:00
Mark Nelson
9e36732d5f Updated package and removed subpackage from PHPDocs 2013-04-26 15:39:59 +08:00
Mark Nelson
7ce63bbca0 Included the TCPDF_COLORS file when viewing a customcert 2013-04-11 18:50:44 +08:00
Mark Nelson
7451ab20ba Introduced the function responsible for generating the PDF 2013-04-11 16:59:29 +08:00
Mark Nelson
31168708bb Added a view.php file 2013-04-09 17:31:36 +08:00