| [ 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 lmbSearchIndexingObserver. 12 * 13 * @package web_spider 14 * @version $Id: lmbSearchIndexingObserver.class.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class lmbSearchIndexingObserver 17 { 18 protected $counter = 0; 19 protected $indexer; 20 21 function __construct($indexer) 22 { 23 $this->indexer = $indexer; 24 } 25 26 function notify($reader) 27 { 28 $uri = $reader->getUri(); 29 30 $this->counter++; 31 32 echo "\n{$this->counter})started indexing " . $uri->toString() . "..."; 33 34 $this->indexer->index($uri, $reader->getContent()); 35 36 echo "done"; 37 } 38 } 39 40 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Oct 15 04:31:08 2008 | Cross-referenced by PHPXref 0.7 |