Commit Graph

16 Commits

Author SHA1 Message Date
jamiesensei c08ac01627 added new dummy function to moodleform to allow some defintion to be done for the form dependent on data values. 2006-10-16 12:07:44 +00:00
jamiesensei 5bc97c9862 Fixed a bug with client side validation of form fields.
Added some default error messages for rules specified in lang pack as err_{rulename} Use the default by setting the rule message to null.
2006-10-14 12:32:31 +00:00
jamiesensei c56f18269e added some methods to give a choice of
setDefault and setDefaults
setHelpButton and setHelpButtons
setType and setTypes
2006-10-12 14:15:59 +00:00
skodak e7dcb0fccc moodleform->validation() receives slashed $data now to make it similar to data_submitted() and prevent potential SQL injections 2006-10-12 09:53:32 +00:00
skodak 7f40a229a4 New version of formslib.php (see MDL-6914 for more details), course/edit2.php is disabled for now - working on edit3.php ;-)
More inline comments/docs today.
2006-10-12 07:33:57 +00:00
jamiesensei e9d39a3215 added new form element datetimeselector 2006-10-11 06:30:03 +00:00
jamiesensei 29f1cae1b0 removed htmleditors array - not needed 2006-10-09 11:34:43 +00:00
jamiesensei 230a910a0b added 2 new methods to form class data_submitted and setDefault
Fixed bug in id generation
2006-10-09 08:32:30 +00:00
jamiesensei 15fdf6199e wrapping group element in a fieldset tag 2006-09-28 04:19:56 +00:00
jamiesensei 49c5368707 changes to html structure for rendering of forms in line with http://moodle.org/mod/forum/discuss.php?d=54907#250816 2006-09-27 19:12:52 +00:00
jamiesensei e249661fbb fixed small typo 2006-09-27 16:07:37 +00:00
jamiesensei 42f248e659 new security features added acceptGet, optional_param, required_param, clean_param, methods added to form class 2006-09-27 16:00:19 +00:00
jamiesensei f8857b4925 adding static element class to registry of Moodleform elements 2006-09-26 13:55:51 +00:00
jamiesensei 80f962df90 * added error message for setHelpButton method not existing
* modified htmleditor class so that differences in formatting for this element are defined by css but use the same html
* added type name of element classes to css wrapper class names
2006-09-26 09:42:42 +00:00
jamiesensei 864cc1de64 moved code turning on pear error printing if in debug mode to the top of formslib.php 2006-09-25 11:08:44 +00:00
jamiesensei da6f876395 This is a first cut of a new formslib.php a library of classes for creating and securely processing forms in Moodle, based on PEAR QuickForms. Only uses XHTML and CSS and no table tags.
This is NOT YET PART OF THE MOODLE API it is here for experimental purposes.
2006-09-24 17:04:51 +00:00