Revert "PDO driver access modifiers"
This reverts commit 8c332e7f907e6af498f18fa1bf28e0a0c6e11448.
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index 330a2e6..384b753 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -51,9 +51,10 @@
/**
* Number of rows in the result set
*
+ * @access public
* @return integer
*/
- public function num_rows()
+ function num_rows()
{
if (empty($this->result_id) OR ! is_object($this->result_id))
{
@@ -73,9 +74,10 @@
/**
* Fetch the result handler
*
+ * @access public
* @return mixed
*/
- public function result_assoc()
+ function result_assoc()
{
// If the result already fetched before, use that one
if (count($this->result_array) > 0 OR $this->is_fetched)
@@ -114,9 +116,10 @@
/**
* Number of fields in the result set
*
+ * @access public
* @return integer
*/
- public function num_fields()
+ function num_fields()
{
return $this->result_id->columnCount();
}
@@ -128,9 +131,10 @@
*
* Generates an array of column names
*
+ * @access public
* @return array
*/
- public function list_fields()
+ function list_fields()
{
if ($this->db->db_debug)
{
@@ -147,9 +151,10 @@
*
* Generates an array of objects containing field meta-data
*
+ * @access public
* @return array
*/
- public function field_data()
+ function field_data()
{
$data = array();
@@ -219,7 +224,7 @@
*
* @return null
*/
- public function free_result()
+ function free_result()
{
if (is_object($this->result_id))
{
@@ -236,9 +241,10 @@
* this internally before fetching results to make sure the
* result set starts at zero
*
+ * @access private
* @return array
*/
- protected function _data_seek($n = 0)
+ function _data_seek($n = 0)
{
return FALSE;
}
@@ -250,9 +256,10 @@
*
* Returns the result set as an array
*
+ * @access private
* @return array
*/
- protected function _fetch_assoc()
+ function _fetch_assoc()
{
return $this->result_id->fetch(PDO::FETCH_ASSOC);
}
@@ -267,7 +274,7 @@
* @access private
* @return object
*/
- protected function _fetch_object()
+ function _fetch_object()
{
return $this->result_id->fetchObject();
}