Commit graph

22 commits

Author SHA1 Message Date
Andrew Madden
79e367864d Closes #449 The user id should be mapped to the equivalent user id in new sites during activity restore
As the userid in the customcert_issues table were using the userid from the site where the activity was backed up, emails were being sent to those that had already received them. Theoretically there wwere also users who should have received an email who didn't get one.
2021-08-06 10:48:55 +08:00
Mark Nelson
2e486e02a3 Fix Moodle Code Checker complaints 2021-05-27 18:53:06 +08:00
Marina Glancy
dcbb07e2f3 Add github actions (#407) 2021-04-02 20:48:49 +08:00
Mark Nelson
c395c7dadc #207 Follow-up UX improvements
The majority of this change involved moving
the report page logic into the view page for
both browser and mobile.
2018-07-01 20:37:20 +08:00
Mark Nelson
666ed6b2d4 #169 Ensure we backup the 'verifyany' setting 2018-02-22 19:07:13 +08:00
Mark Nelson
b14ccbba57 #166 Fixed encoding content links 2018-02-22 18:49:48 +08:00
Mark Nelson
fedfe95080 Created factory class 2017-08-26 13:35:43 +08:00
Mark Nelson
429b8c819c #123 Change reference to old column name 2017-08-05 18:02:16 +08:00
Mark Nelson
9ce2be7bb6 #102 Handle images during backup/restore 2017-04-27 22:09:02 +08:00
Mark Nelson
72c3b278e3 #48 Added task and settings responsible for emailing certificates 2017-04-26 21:44:33 +08:00
Mark Nelson
fdc5bde3d4 #88 Make plugins DB codechecker happy 2017-02-25 11:38:30 +08:00
Mark Nelson
058618ce1b Fixed backup and restore after refactor 2016-04-05 15:56:16 +08:00
Mark Nelson
6889b04df0 Created one function to handle move_* actions
This changes the name of a column in a DB table.
No upgrade script has been written as this activity
has not been officially released.
2016-02-20 18:09:46 +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
7634568df1 Updated the code for backup to include element max width and page margin
Also, improved image elements add form.
2015-08-05 14:17:02 -05:00
Mark Nelson
d9e8c24a6b Fixed issue restoring a customcert 2015-03-25 16:56:35 -07:00
Mark Nelson
6821122c30 Aligned SQL to conform to Moodle standards 2015-03-13 23:37:06 -07:00
Mark Nelson
8b92d1c307 Removed the orientation field as it is redundant considering the width and height are already specified
Note: I did not create a db/upgrade.php script to remove the database column as this module should not be currently used by anyone.
2013-07-25 18:54:28 +08:00
Mark Nelson
323abd6da4 Introduced the functionality to backup and restore the customcert 2013-07-23 17:07:31 +08:00