reset(); } function reset() { $this->strip_anchor = true; $this->stripped_query_items = array(); } function stripAnchor($status = true) { $this->strip_anchor = $status; } function stripQueryItem($key) { $this->stripped_query_items[] = $key; } function process($uri) { if($this->strip_anchor) $uri->setAnchor(''); foreach($this->stripped_query_items as $key) $uri->removeQueryItem($key); } } ?>