New package questions

From: Date: Wed, 01 Sep 2004 06:19:33 +0000
Subject: New package questions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33130@lists.php.net to get a copy of this message
Hi, I'm looking to suggest a new PEAR project that I've been working on which allows a user to easily leverage existing DB_DataObject code to create a Pager (via the Pager class) with a minimal amount of work for use with rapid prototyping. I realize there are already a few other ways to do this, but none of the ones I looked at provide easy mechanisms for query generation, table output, page size controls, and column sorting by the user. It also extends the mechanisms of Pager to pass information between pages, making it easy to create forms on the same page as the displayed Pager which help to filter the information shown. Callbacks are supported to provide more complex data formatting, as well as to assist in creating rows which are combinations or calculations of other rows. In order to assist rapid prototyping, a basic link to an edit page can be created easily by specifying a field for the text source and another for the key used to generate the link. It is compatible with PEAR's QuickForm field titles for the column headings, they can be specified, or the field name can be used by default. Multiple tables can be used in the select by taking advantage of DB_DataObject's joinAdd() and selectAdd() can be used to add field aliases in cases where field names would conflict. The code is fairly close to completion and I would like to submit a proposal for it. My only planned changes are to document it, modify it to use PEAR errors and config files, and then to use the previous to get my own css out of the class. I read the PEAR docs and it said to send any questions here. My first question is regarding the name of the package. I have tentativley named it DB_DataObject_Pager since the goal of it is to leverage and extend both classes. Is this a bad name? Do I need to finish the code before submitting the proposal? Must it be fairly working or tested before submitting or is this only necessary prior to release? Source can be found here: http://www.e-normous.com/nerd/DB_DataObject_Pager.phps I can set up a running example if it helps. thanks, Jon Snell

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