setQueryArray example

 else {
            $uri->addQuery($this->groups[$group]['pageSelector']$page);
        }

        if ($this->only) {
            $query = array_intersect_key($_GETarray_flip($this->only));

            if ($segment) {
                $query[$this->groups[$group]['pageSelector']] = $page;
            }

            $uri->setQueryArray($query);
        }

        return ($returnObject === true)
            ? $uri
            : URI::createURIString(
                $uri->getScheme(),
                $uri->getAuthority(),
                $uri->getPath(),
                $uri->getQuery(),
                $uri->getFragment()
            );
    }
Home | Imprint | This part of the site doesn't use cookies.