|
Following on from our skype chat I'm going to post a number of ideas here as they come up while examining your code Petr.
We should consider removing the target parameter in : function moodleform_wrapper($action, $customdata=null, $method='post', $target='', $attributes=null) { as target is deprecated in xhtml strict. use_values_as_defaults() method is redundant since the user input anyway always overrides qf's defaults.
Hi Petr,
I added this code to the end of your updateSubmission method and then use_values_as_defaults() really is redundant : //need to tell elements that they need to update their value attribute. Jamie The new formslib.php in in HEAD, attaching new form test file
I think the API should be stable now, but of course we can still rename the method names if needed. I am working on course/edit3.php and incline docs+comments. in formslib.php today. all should be fixed in cvs, closing now
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changes: