Items =& $items; $this->IndexItems(); $this->CurrentIndex = 0; } function IndexItems() { $i = 0; foreach ($this->Items as $key => $item) { $this->Index[$i] = $key; // ?????? $i++ $i++; } $this->Count = $i; } function HasMore() { return $this->CurrentIndex < $this->Count; } function GoNext() { $this->CurrentIndex++; } function &GetItem() { return $this->Items[$this->Index[$this->CurrentIndex]]; } function GetKey() { return $this->Index[$this->CurrentIndex]; } } ?>