Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Request #7413 Query options
Submitted: 2006-04-17 16:35 UTC
From: olivierg Assigned: quipo
Status: Closed Package: Pager (version 2.3.6)
PHP Version: 4.4.2 OS: Debian
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 + 16 = ?

 
 [2006-04-17 16:35 UTC] olivierg (Olivier Guilyardi)
Description: ------------ Hi, In Structures_DataGrid, we have implemented a new rendering layer that allows for great flexibility. In in our design we use so-called "rendering containers". Pager is a such container. The idea is that we need to be able to both set and get options. A user may provide an already instantiated Pager object to Structures_DataGrid, and this later needs to know which options are set in this Pager object. Please provide a getOptions() method or similar.

Comments

 [2006-04-17 18:23 UTC] olivierg at php dot net (Olivier Guilyardi)
Actually, I would also need to be able to set options after the Pager object has been instantiated, if that's possible.
 [2006-04-18 11:40 UTC] quipo (Lorenzo Alberton)
which one do you need? /** * @param string option name * @return mixed option value */ function getOption($name) {} or /** * @return array list of all the pager options */ function getOptions() {}
 [2006-04-18 12:05 UTC] olivierg at php dot net (Olivier Guilyardi)
getOptions() is my favourite, but getOption($name) could also be handy.
 [2006-04-18 12:38 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.