Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.2

Request #4137 Add form-wide functions for unfreeze and setPersistantFreeze
Submitted: 2005-04-13 18:40 UTC
From: justinpatrin Assigned: avb
Status: Closed Package: HTML_QuickForm2
PHP Version: 4.3.10 OS: Linux
Roadmaps: 0.1.0    
Subscription  


 [2005-04-13 18:40 UTC] justinpatrin
Description: ------------ Re my recent post to the PEAR_General list: http://marc.theaimsgroup.com/?l=pear-general&m=111336858517458&w=2 It would be nice to have form-wide function for unfreeze and setPersistantFreeze as these are currently element specific and running either of these on an entire form requires either knowing the names of all of the elements (which QF also doesn't support) or accessing internal properties (which is a no-no). I've included two simple functions below to be added to the HTML_QuickForm class. Reproduce code: --------------- function unfreeze() { foreach (array_keys($this->_elements) as $key) { $this->_elements[$key]->unfreeze(); } } function setPersistantFreeze($persistant = false) { foreach (array_keys($this->_elements) as $key) { $this->_elements[$key]->setPersistantFreeze($persistant); } }

Comments

 [2006-06-08 13:18 UTC] avb (Alexey Borzov)
Moving feature requests to HTML_QuickForm2.
 [2006-10-12 21:37 UTC] avb (Alexey Borzov)
HTML_QuickForm2_Container class (already in CVS) handles freezing / unfreezing / changing persistent freeze behaviour of its contained elements. As Form class will inherit from Container, we may consider the feature request implemented. :)