Mark Nelson
d566ecc1d3
Updated the grade element so that it now displays the grade on the PDF
2013-04-16 17:44:03 +08:00
Mark Nelson
930179e093
Converted tabs to spaces for the grade subplugin
2013-04-12 17:58:13 +08:00
Mark Nelson
1d7c5b2c56
Updated the version and the Moodle version required to the 2.5 beta release
2013-04-12 17:33:23 +08:00
Mark Nelson
95688dd064
Included missing global values needed in function
2013-04-12 17:33:23 +08:00
Mark Nelson
0bc2e186e6
Added the ability to change the order the customcert elements are displayed
...
Note: I did not create a db/upgrade.php script to add the new database column as this module should not be currently used by anyone.
2013-04-12 17:33:23 +08:00
Mark Nelson
18480d6050
Removed the NEXT and PREVIOUS attributes from the install.xml file as they are not needed in Moodle 2.5 and onwards
2013-04-12 14:50:19 +08:00
Mark Nelson
dcdfeb9956
Changed the validation of the colour picker to only allow HTML colours or hexadecimal values
...
The reason for this is because the call to TCPDF_COLORS::convertHTMLColorToDec only allows these values.
2013-04-11 19:30:48 +08:00
Mark Nelson
cb58bf22be
Set the font colour to black for any newly created elements
2013-04-11 19:12:44 +08:00
Mark Nelson
d3ed38d149
Moved the colourpicker form element into the includes folder
2013-04-11 19:09:25 +08:00
Mark Nelson
3e446120d2
Fixed the function responsible for returning a list of fonts available
2013-04-11 19:06:18 +08:00
Mark Nelson
7c4e8def0c
Altered the render function in the studentname element to use the common rendering function
2013-04-11 18:52:30 +08:00
Mark Nelson
7ce63bbca0
Included the TCPDF_COLORS file when viewing a customcert
2013-04-11 18:50:44 +08:00
Mark Nelson
a6cb51641f
Included a file containing necessary TCPDF functions that are not included in Moodle core
2013-04-11 18:44:14 +08:00
Mark Nelson
ee37ccf7e5
Added a helper function that calls the most commonly used TCPDF functions to render provided content on the PDF
2013-04-11 18:42:23 +08:00
Mark Nelson
49a04bc7a3
Added an extra parameter for the rendering function
2013-04-11 18:21:54 +08:00
Mark Nelson
7451ab20ba
Introduced the function responsible for generating the PDF
2013-04-11 16:59:29 +08:00
Mark Nelson
86c82ea8da
Renamed the function responsible for rendering the elements to something more suitable
2013-04-10 17:53:56 +08:00
Mark Nelson
8b3954cea7
Updated the code responsible for preventing internal access to certain files
2013-04-10 17:18:00 +08:00
Mark Nelson
31168708bb
Added a view.php file
2013-04-09 17:31:36 +08:00
Mark Nelson
94978c9f03
Removed the cancel element from the edit form
2013-04-09 15:54:09 +08:00
Mark Nelson
f3709130d0
Renamed CSS class so that it was not so specific
2013-04-09 15:52:24 +08:00
Mark Nelson
cd2564163a
Moved and renamed the delete element submit button
2013-04-09 15:49:29 +08:00
Mark Nelson
08c4f03ee7
Fixed issue where elements for the customcert page with the id 1 were being displayed (if it existed) for newly created customcerts
2013-04-09 13:27:55 +08:00
Mark Nelson
d6428b89d1
Added setType to form elements for security and to remove the debugging message introduced in Moodle 2.5
2013-04-09 13:10:56 +08:00
Mark Nelson
87b1e9d7f0
Edited PHPDocs and comments
2013-04-09 12:05:07 +08:00
Mark Nelson
819349dfc0
Introduced the date element
2013-03-13 18:19:08 -07:00
Mark Nelson
9993fcab05
Corrected PHPDocs for the validation function in the base element class
2013-03-13 18:16:37 -07:00
Mark Nelson
46c0877905
Corrected PHPDocs for the grade element
2013-03-13 18:06:01 -07:00
Mark Nelson
2b4bbbe820
Moved the rendering of the header form element for each customcert element to edit_form.php
...
The render_common_form_elements function was removed in the base class and it's contents put into the render_form_element function. These changes mean that some elements may not be required to override the render_form_element function, such as the studentname element, where this function was removed.
2013-02-26 17:22:52 +08:00
Mark Nelson
52fbc108a7
Introduced a new form element for selecting a colour on the customcert customisation page
2013-02-25 22:52:15 +08:00
Mark Nelson
0c66a5242f
Moved location of the delete customcert page button
2013-02-22 17:40:40 +08:00
Mark Nelson
5945171a9d
Changed how the elements are rendered when editing the customcert
...
Rather than using grouped elements which can span across multiple lines on a small screen, the elements are now generated within a header element, keeping them separated and making the form more manageable. The base class was also changed to accomodate this by making it easier for elements to utilise common features.
2013-02-22 17:39:46 +08:00
Mark Nelson
b36c0b58dd
Introduced the grade element
2013-02-22 16:15:32 +08:00
Mark Nelson
9d0eb727e5
Introduced customisable elements to the customcert
...
Elements are sub-plugins that have the same abilities as a core plugin, such as creating tables, capabilities and performing upgrades.
Currently elements can define -
* What additional form elements are rendered when adding the element to the customcert customisation page.
* How the data from the additional form elements is validated and saved.
* How the element is rendered on the PDF.
* How the element handles removing data when it is deleted.
2013-02-21 18:23:11 +08:00
Mark Nelson
2b8403438f
Module will install successfully with limited functionality
...
The module will add tables to the DB on install, you can then add/edit instances and add/edit pages to these instances.
2013-02-18 11:48:16 +08:00