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

Request #2376 square brackets in var names are not encoded
Submitted: 2004-09-22 23:30 UTC
From: alexei at net24 dot co dot nz Assigned: amir
Status: Closed Package: Services_Google
PHP Version: 5.0.1 OS: freebsd
Roadmaps: (Not assigned)    
Subscription  


 [2004-09-22 23:30 UTC] alexei at net24 dot co dot nz
Description: ------------ I suggest an extension to the package This function allows to get various details of the search response eg. estimatedTotalResultsCount and so on. Sometimes they are more interesting for the application then search results itself Reproduce code: --------------- public function getResponseValue($key) { if (!is_null($this->_result)) { return $this->_result->$key; } return null; }

Comments

 [2004-09-22 23:34 UTC] alexei at net24 dot co dot nz
report bug replaced my bug simmary with a wrong one :( correct should be function to get search response details
 [2004-11-07 20:14 UTC] jellybob at gmail dot com
Can you clarify what it is that you think this method should do? As far as I can tell this is already implemented.
 [2004-11-07 21:25 UTC] alexei at net24 dot co dot nz
current package allows only to traverse search results but it does not allow to read additional info from search response. Such info as documentFiltering, estimatedTotalResultsCount, searchTime and so on. For example, in my application i do search for various keywords but i'm not interested in what is found, i'm only interested in total number of results returned (estimatedTotalResultsCount). My function in the comment above allows to acquire such info from the search response
 [2008-03-22 18:41 UTC] amir (Amir Mohammad Saied)
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. There's already a public method which will return estimatedTotalResultsCount, and a new method which returns searchTime, the rest of values are actually ones you passed earlier to it (like filters ...)