diff --git a/classes/BatchIterator.class.php b/classes/BatchIterator.class.php deleted file mode 100644 index 2543b8ef9..000000000 --- a/classes/BatchIterator.class.php +++ /dev/null @@ -1,74 +0,0 @@ -collection = $collection; - $this->keys = $this->collection->getKeys(); - $this->count = $this->collection->count(); - } - /** - * @return void - */ - public function rewind() { - $this->index = 0; - $i = $this->index; - if(isset($this->keys[$i])) - $this->key = $this->keys[$i]; - } - /** - * @return boolean whether or not the iteration will continue - */ - public function valid() { - return $this->index < $this->count; - } - /** - * @return integer the current key - */ - public function key() { - return $this->key; - } - /** - * @return Doctrine_Record the current DAO - */ - public function current() { - return $this->collection->get($this->key); - } - /** - * @return void - */ - public function next() { - $this->index++; - $i = $this->index; - if(isset($this->keys[$i])) - $this->key = $this->keys[$i]; - } -} -?>