Changeset 2232

Show
Ignore:
Timestamp:
03/07/2008 06:06:24 PM (9 months ago)
Author:
Shadowhand
Message:

Added as_array() to all Database_Result classes for consistency.

Location:
trunk/system/libraries/drivers/Database
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Database/Mssql.php

    r2226 r2232  
    401401        } 
    402402 
     403        public function as_array($object = NULL, $type = MSSQL_ASSOC) 
     404        { 
     405                return $this->result_array($object, $type); 
     406        } 
     407 
    403408        public function result_array($object = NULL, $type = MSSQL_ASSOC) 
    404409        { 
     
    606611        } 
    607612        // End Interface 
     613 
    608614} // End mssql_Result Class 
  • trunk/system/libraries/drivers/Database/Mysql.php

    r2208 r2232  
    416416        } 
    417417 
     418        public function as_array($object = NULL, $type = MYSQL_ASSOC) 
     419        { 
     420                return $this->result_array($object, $type); 
     421        } 
     422 
    418423        public function result_array($object = NULL, $type = MYSQL_ASSOC) 
    419424        { 
  • trunk/system/libraries/drivers/Database/Mysqli.php

    r2193 r2232  
    237237        } 
    238238 
     239        public function as_array($object = NULL, $type = MYSQLI_ASSOC) 
     240        { 
     241                return $this->result_array($object, $type); 
     242        } 
     243 
    239244        public function result_array($object = NULL, $type = MYSQLI_ASSOC) 
    240245        { 
  • trunk/system/libraries/drivers/Database/Pdosqlite.php

    r2208 r2232  
    395395        } 
    396396 
     397        public function as_array($object = NULL, $type = PDO::FETCH_ASSOC) 
     398        { 
     399                return $this->result_array($object, $type); 
     400        } 
     401 
    397402        public function result_array($object = NULL, $type = PDO::FETCH_ASSOC) 
    398403        { 
  • trunk/system/libraries/drivers/Database/Pgsql.php

    r2208 r2232  
    406406        } 
    407407 
     408        public function as_array($object = NULL, $type = PGSQL_ASSOC) 
     409        { 
     410                return $this->result_array($object, $type); 
     411        } 
     412 
    408413        public function result_array($object = NULL, $type = PGSQL_ASSOC) 
    409414        {