Re: DO FB - how to set a password empty...

From: Date: Wed, 10 Nov 2004 18:21:39 +0000
Subject: Re: DO FB - how to set a password empty...
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15425@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Nov 10, 2004 at 09:02:38AM -0800, Justin Patrin wrote: > > 1) You can try setConstants() on the form in postGenerateForm() for tha DO. > 2) You could use a preDefElement in preGenerateForm > 3) You could override the get() function for the DO to not get the PW > (then you'd probably want a getPassword function which specifically > gets it). > 4) You could call setDefaults() on the form in postGenerateForm() to > re-set the default > 5) There are probably other ways > This raises a question that has been paralysing me for weeks. There are *so* many different hooks and ways to customise FormBuilder forms, that I honestly don't know how to approach it without creating a mess of unmanageable spaghetti code. I'd like to pick one method and stick with it throughout my applications. So that when someone (like me, a few years later) looks at the code, and wonders where the hell such-and-so behaviour or bug is coming from, I know where to look. If I haphazardly mix and match these approaches, I'm going to have a disaster on my hands. Is there a "best practices" recommendation as to where and when to use each of these techniques? Pros and cons of each? Any gotchas with any particular approach, that I should be aware of? - -ken - -- - --------------- The world's most affordable web hosting. http://www.nearlyfreespeech.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBklwze8HF+6xeOIcRAntzAJ0dY4+aEer/pWB9t1X7tq1nGWHyqwCeI+5v Mg72HWXZ19uZH6hTT92Kl1o= =Pe0P -----END PGP SIGNATURE-----

« previous php.pear.general (#15425) next »