public function getRow() { $cols = $this->table->getCols(); $numCols = count($cols); $row = array(); for ($i = 0; $i < $numCols; $i++) { $row[$cols[$i]] = $this->row->{$cols[$i]}; } return $row; }