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

Request #2461 would be nice to be able to exclude given vars from url
Submitted: 2004-10-05 10:53 UTC
From: daniel at konczyk dot net Assigned: quipo
Status: Closed Package: Pager
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-05 10:53 UTC] daniel at konczyk dot net
Description: ------------ It would be nice to have an option, to exclude some vars from the generated pager links, like $exclude ; array of vars to exclude from the url then, they would be purged in _getLinksUrl() eg 644 foreach ($qs as $name => $value) { if (@in_array($name,$exclude)) 645 $querystring[] = $name . '=' . $value; 646 } etc. What do you think? I have to get rid of some vars. I can of course preg_replace the pager result, but it's not a nice solution... extending is now a bit more complicated than before.. Cheers

Comments

 [2005-04-01 13:18 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. -- I've added an 'excludeVars' array option for this in the latest CVS version