summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-26 00:12:16 +0200
committeradmin <devnull@localhost>2006-09-26 00:12:16 +0200
commite106318c19938c621198924ab5d292592dbb4477 (patch)
tree7b01c3625cb9aeedfaaabe991bee06c2c8c41a27 /system/database
parent83b05a860a5f208d15942b517385848cfe4887bb (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_result.php72
1 files changed, 71 insertions, 1 deletions
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