public function toCollection() {
		$data  = iterator_to_array($this->_iterator);
		$model = $this->getModel();
		
		$collection = new Collection($data, $model);

		if ($this->hasDatagate()) {
			$collection->setDatagate($this->getDatagate());
		}
		
		if ($this->hasLocator()) {
			$collection->setLocator($this->getLocator());
		}
		
		return $collection;
	}
public function toCollection() {
		$data  = iterator_to_array($this->_iterator);
		$model = $this->getModel();
		
		$collection = new Collection($data, $model);

		if ($this->hasDatagate()) {
			$collection->setDatagate($this->getDatagate());
		}
		
		if ($this->hasLocator()) {
			$collection->setLocator($this->getLocator());
		}
		
		return $collection;
	}
public function toCollection ( ) { $ data = iterator_to_array ( $ this -> _iterator ) ; $ model = $ this -> getModel ( ) ; $ collection = new Collection ( $ data , $ model ) ; if ( $ this -> hasDatagate ( ) ) { $ collection -> setDatagate ( $ this -> getDatagate ( ) ) ; } if ( $ this -> hasLocator ( ) ) { $ collection -> setLocator ( $ this -> getLocator ( ) ) ; } return $ collection ; }
Get an iterator's data as Collection

@return Collection
Get an iterator s data as Collection