summaryrefslogtreecommitdiffstats
path: root/system/database/DB_result.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_result.php')
-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