]> granicus.if.org Git - php/commitdiff
Make it an interface with an code example as comment
authorMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:55:37 +0000 (00:55 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:55:37 +0000 (00:55 +0000)
ext/spl/examples/seekableiterator.inc

index e0de775683eea615ec61db8857a7da1296897761..d7381fc3f830eca4eae22cab0db9a72fc477c68c 100755 (executable)
@@ -1,16 +1,16 @@
 <?php
 
-class SeekableIterator implements Iterator
+interface SeekableIterator implements Iterator
 {
-       function seek($index) {
-               $this->rewind();
+       function seek($index);
+/*             $this->rewind();
                $position = 0;
                while($position < $index && $this->hasMore()) {
                        $this->next();
                        $position++;
                }
                return $position;
-       }
+       }*/
 }
 
 ?>
\ No newline at end of file