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)    

 [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.


 [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 by the end of next Sunday (CET). If this was a problem with the 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.