Commit graph

13 commits

Author SHA1 Message Date
Shamim Rezaie
58d7312d9e Improved alignment handling
Fixed a bug for right aligning elements
with top right reference point.
2015-08-05 14:19:55 -05:00
Shamim Rezaie
553da0a62a Removed the cell background filling that was added for testing 2015-08-05 14:19:55 -05: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
Mark Nelson
6821122c30 Aligned SQL to conform to Moodle standards 2015-03-13 23:37:06 -07:00
Mark Nelson
d05a6d8d5b Removed the included TCPDF_COLORS class as it is now included in core 2013-10-31 14:58:56 +08:00
Mark Nelson
9d58850d63 Changed the render function to abstract as it is required by all elements 2013-07-25 13:53:45 +08:00
Mark Nelson
323abd6da4 Introduced the functionality to backup and restore the customcert 2013-07-23 17:07:31 +08:00
Mark Nelson
3d4811cc0c Removed inline doc block 2013-07-23 12:32:07 +08:00
Mark Nelson
ad1a6767a2 Added missing scope to constructor 2013-07-23 12:29:27 +08: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
e811303e84 Passed a new variable 'preview' to the render function
This variable determines whether we are viewing the custom certificate for a particular user, or if we are simply previewing it. This may be needed for some elements. For example, an element may retrieve the data for when the custom certificate was issued, but if the user has just set up the custom certificate and no issue has been created then this data is missing, so in this case we pass that the user is previewing the custom certificate so other data can be shown.
2013-06-28 15:27:04 +08:00
Mark Nelson
96e1d93024 Renamed the element directory name to a singular to conform to Moodle standards 2013-06-21 17:35:14 +08:00
Renamed from elements/element.class.php (Browse further)