PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » Pager » Bug #2461

would be nice to be able to exclude given vars from url

Details

Request #2461would be nice to be able to exclude given vars from url
Submitted2004-10-05 10:53 UTC
Fromdaniel at konczyk dot net
Assignedquipo
StatusClosed
PackagePager
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[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