summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/pdo_result.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-03-20 00:06:34 +0100
committerTimothy Warren <tim@timshomepage.net>2012-03-20 00:06:34 +0100
commit667c9feadee8ef5ea8c1859e7c79c2d116469051 (patch)
treef622df89e4ead172f08761d2e915ffcb6d4dd288 /system/database/drivers/pdo/pdo_result.php
parent99c02ef1dfbdfb444e3effb58906c4369f17b20e (diff)
Revert "PDO driver access modifiers"
Diffstat (limited to 'system/database/drivers/pdo/pdo_result.php')
-rw-r--r--system/database/drivers/pdo/pdo_result.php25
1 files changed, 16 insertions, 9 deletions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index 330a2e677..384b753da 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -51,9 +51,10 @@ class CI_DB_pdo_result extends CI_DB_result {
/**
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
/**
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
/**
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
*
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
*
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
*
* @return null
*/
- public function free_result()
+ function free_result()
{
if (is_object($this->result_id))
{
@@ -236,9 +241,10 @@ class CI_DB_pdo_result extends CI_DB_result {
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
*
* 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 @@ class CI_DB_pdo_result extends CI_DB_result {
* @access private
* @return object
*/
- protected function _fetch_object()
+ function _fetch_object()
{
return $this->result_id->fetchObject();
}