Commit graph

15 commits

Author SHA1 Message Date
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