/** * Gets the Number of Rows * * Gets the number of rows returned by the last query of the given result handle. * @access public * @param resource $rs A reference to a resource handle returned by executing a query. * @return int Returns the number of rows returned by the last executed query. * @example row_count.php GetRowCount example. */ function GetRowCount(&$rs) { $this->ClearError(); if ($result = $this->IsResource($rs, "GetRowCount")) { $result = $this->_driver->RowCount($rs); $this->GetDriverError(); } return $result; }
/** *Returns a detail grid * *Returns a grid to be inserted in a detail form * *@param object $rs Recordset to show *@param boolean $compact Whether compact mode or not *@return string */ function getDetailGrid($rs, $compact) { $this->shownavigator = false; if ($compact) { $this->colors[0] = '#cfd0d3'; $this->showstatus = FALSE; $this->showtitles = FALSE; } $this->showstatustext = FALSE; $this->allowedactions = array(); $this->allowsort = false; $this->formcaption = ''; $this->linked = array(); $this->showcheckboxes = false; $this->recordsperpage = $rs->RowCount(); ob_start(); $this->connect(); if (!$compact) { OpenTable(); } $this->grid($rs, 0, FALSE); if (!$compact) { CloseTable(); } $result = ob_get_contents(); ob_end_clean(); return $result; }