From e106318c19938c621198924ab5d292592dbb4477 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 25 Sep 2006 22:12:16 +0000 Subject: --- system/database/DB_result.php | 72 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/system/database/DB_result.php b/system/database/DB_result.php index 970a0db68..32c51e07b 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php @@ -35,6 +35,7 @@ class CI_DB_result { var $result_object = array(); var $current_row = 0; + /** * Query result. Acts as a wrapper function for the following functions. * @@ -46,7 +47,7 @@ class CI_DB_result { { return ($type == 'object') ? $this->result_object() : $this->result_array(); } - + // -------------------------------------------------------------------- /** @@ -243,6 +244,75 @@ class CI_DB_result { return $result[$this->current_row]; } + // -------------------------------------------------------------------- + + /** + * Number of rows in the result set + * + * @access public + * @return integer + */ + function num_rows() + { + // Implemented in the platform-specific result adapter + } + + // -------------------------------------------------------------------- + + /** + * Number of fields in the result set + * + * @access public + * @return integer + */ + function num_fields() + { + // Implemented in the platform-specific result adapter + } + + // -------------------------------------------------------------------- + + /** + * Fetch Field Names + * + * Generates an array of column names + * + * @access public + * @return array + */ + function field_names() + { + // Implemented in the platform-specific result adapter + } + + // -------------------------------------------------------------------- + + /** + * Field data + * + * Generates an array of objects containing field meta-data + * + * @access public + * @return array + */ + function field_data() + { + // Implemented in the platform-specific result adapter + } + + // -------------------------------------------------------------------- + + /** + * Free the result + * + * @return null + */ + function free_result() + { + // Implemented in the platform-specific result adapter + } + + } ?> \ No newline at end of file -- cgit v1.2.3-24-g4f1b