/** * (PHP 5 >= 5.0.0)<br/> * Return the current element * @link http://php.net/manual/en/iterator.current.php * @return mixed Can return any type. */ public function current() { $limit_start = $this->position * $this->perSize; $this->dbConnection->connect(); $result = $this->dbConnection->query($this->sql . " LIMIT {$limit_start},{$this->perSize}"); $result->setFetchMode(Db::FETCH_ASSOC); return $result->fetchAll(); }