Commit graph

9 commits

Author SHA1 Message Date
Mark Nelson
2ef17b9766 #111 Fixed task creating duplicate rows in issue table 2017-05-21 12:20:31 +08:00
Mark Nelson
6eb8e5b27c #48 Added task and settings responsible for emailing certificates 2017-04-26 21:44:04 +08:00
Mark Nelson
055a82e69b #71 Increase customcert_templates 'name' column length 2017-02-02 12:28:12 +08:00
Mark Nelson
dfdf7e42fc Added upgrade.php file to keep Moodle's plugin DB happy 2016-03-22 12:38:54 +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
355de679e8 Added a 'leftmargin' field
Also renamed the 'margin' field to 'rightmargin'
to easily distinguish between the two.
2015-12-11 12:10:45 +08:00
Mark Nelson
e441b7051b Removed the 'align' property 2015-12-08 18:27:30 +08:00
Shamim Rezaie
039e8bca37 Implemented support for element alignment
Also specifying the reference point location (the
location of the element that's put at posx and
posy) for each element.
2015-08-05 14:19:54 -05:00
Shamim Rezaie
6400e587d8 Added support for having right margin and width limit for each element
In addition to width and height, each page can have an
optional (right) margin attribute. Also, each element
can have an optional width attribute.
2015-08-05 14:16:56 -05:00