Re: Feature additions to DB_DataObject_FormBuilder
| From: | Justin Patrin | Date: | Mon, 01 Dec 2003 19:14:25 +0000 |
| Subject: | Re: Feature additions to DB_DataObject_FormBuilder | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24018@lists.php.net to get a copy of this message | ||
The altered file is attached.
The ini file changed is the databasename.ini file. It has no alterations, only additions. There are two new sections.
[tablename__display_fields]
0 = column1
1 = column2
...
There can be any number of display fields. For lack of a better way to do it, I used numbers starting at 0. This sets the order of the displayed column data. The fields are comma separated (could be configurable).
[tablename__order_fields]
0 = column1 [ASC|DESC]
1 = columns [ASC|DESC]
...
Basically the same as the __display_fields entries except that you can include any valud order statement. You could even do:
0 = column1, column2 DESC
Arnaud Limbourg wrote:
Hi, sounds good ! Sent the code here i'm sure markus (the maintainer) will have a look at it ;) Arnaud.I've made some additions to DB_DataObject_FormBuilder that involve some additions to the DB_DataObject ini files. Namely, support for multiple sort and display columns, configured per table in the ini file. I'm not sure that the code I wrote is entirely in the correct place, but I don't know who to ask about it. Anyone want to point me in the right direction? -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php