searchiterator.inc

Go to the documentation of this file.
00001 <?php
00002 
00020 abstract class SearchIterator extends FilterIterator
00021 {
00023     private $done = false;
00024 
00028     function rewind()
00029     {
00030         parent::rewind();
00031         $this->done = false;
00032     }
00033 
00037     function valid()
00038     {
00039         return !$this->done && parent::valid();
00040     }
00041     
00045     function next()
00046     {
00047         $this->done = true;
00048     }
00049 
00052     function __call($func, $params)
00053     {
00054         return call_user_func_array(array($this->getInnerIterator(), $func), $params);
00055     }
00056 }
00057 
00058 ?>

Generated on Thu Apr 26 01:04:47 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2