PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject_FormBuilder » Bug #5172

getFieldLabel Improvement?

Details

Request #5172getFieldLabel Improvement?
Submitted2005-08-22 03:16 UTC
Fromdsanders at baselinesolutions dot com dot au
Assignedjustinpatrin
StatusClosed
PackageDB_DataObject_FormBuilder
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-08-22 03:16 UTC] dsanders at baselinesolutions dot com dot au

Description:
------------
Instead of doing a ucfirst on the field label in getFieldLabel(), would it be possible to convert underscores to spaces then do a ucwords? Or to even provide the ability to pass in a callback to allow custom field name conversions? I know your answer may be "... just use fb_fieldLabels", but on large tables quite often I manually convert field names like "customer_name" to "Customer Name".

(This would make FormBuilder just that little bit more helpful! ;)