public function toArray()
    {
        // @todo This works only if we have iterated through
        // the result set once to instantiate the rows.
        foreach ($this->_rows as $i => $row) {
            $this->_data[$i] = $row->toArray();
        }
        return $this->_data;
    }
public function toArray()
    {
        // @todo This works only if we have iterated through
        // the result set once to instantiate the rows.
        foreach ($this->_rows as $i => $row) {
            $this->_data[$i] = $row->toArray();
        }
        return $this->_data;
    }
public function toArray ( ) { // @todo This works only if we have iterated through // the result set once to instantiate the rows. foreach ( $ this -> _rows as $ i => $ row ) { $ this -> _data [ $ i ] = $ row -> toArray ( ) ; } return $ this -> _data ; }
Returns all data as an array.

Updates the $_data property with current row object values.

@return array
Returns all data as an array .