Re: Features added to QuickForm

From: Date: Mon, 19 Nov 2001 05:24:11 +0000
Subject: Re: Features added to QuickForm
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2974@lists.php.net to get a copy of this message
Hi there, I have started all over with the 'add features to QuickForm'-project. Now addHeader() and addElement() takes an extra argument: $labelAttributes which, in addElement()'s place, will be past to the respective element-class and later on get transformed into an attribute-string that is placed in the cell of the specific label. When adding this, I had to add an extra attribute for all constructors in every class-file in /Elements/ and when doing that I discovered that there are two copies of the getType() method in element.php. The last I've removed. Further more I've added setHeaderAttributes() and setLabelAttributes() which sets default attributes for headers and element-label-cells. I've also added setJsWarnings(), which sets the global $_jsPrefix and $_jsPostfix, and setRequiredNote() which sets $_requiredNote variable. At last, I've (again) corrected the addRule-documentation-related isue. The edited files is to be found at: http://delfs.dk/QuickForm/ Hoping this work lives up to the packages standard. Comments please. -- Mvh./Best Regards Jonas Delfs, http://delfs.dk

« previous php.pear.dev (#2974) next »