/** * Returns metadata for all columns in a result set. * * @return array * @throws DibiException */ public function getColumnsMeta() { $count = $this->resultSet->columnCount(); $meta = array(); for ($i = 0; $i < $count; $i++) { // items 'name' and 'table' are required $info = @$this->resultSet->getColumnsMeta($i); // intentionally @ if ($info === FALSE) { throw new DibiDriverException('Driver does not support meta data.'); } $meta[] = $info; } return $meta; }