/** * @return void */ protected function initColumns() { if ($this->columns === NULL) { $this->columns = array(); $reflector = $this->driver instanceof IDibiReflector ? $this->driver : NULL; foreach ($this->driver->getResultColumns() as $info) { $this->columns[] = $this->names[$info['name']] = new DibiColumnInfo($reflector, $info); } } }
/** * Returns the number of entries. * @return int */ public function count() { return $this->dibiResultDriver->getRowCount(); }