| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 /** 11 * class lmbUriNormalizer. 12 * 13 * @package web_spider 14 * @version $Id: lmbUriNormalizer.class.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class lmbUriNormalizer 17 { 18 protected $strip_anchor; 19 protected $stripped_query_items; 20 21 function __construct() 22 { 23 $this->reset(); 24 } 25 26 function reset() 27 { 28 $this->strip_anchor = true; 29 $this->stripped_query_items = array(); 30 } 31 32 function stripAnchor($status = true) 33 { 34 $this->strip_anchor = $status; 35 } 36 37 function stripQueryItem($key) 38 { 39 $this->stripped_query_items[] = $key; 40 } 41 42 function process($uri) 43 { 44 if($this->strip_anchor) 45 $uri->setAnchor(''); 46 47 foreach($this->stripped_query_items as $key) 48 $uri->removeQueryItem($key); 49 } 50 } 51 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Oct 12 04:41:30 2008 | Cross-referenced by PHPXref 0.7 |