load('db', null); /** * MySQLi Database Abstraction Layer * * This framework is a function wrapper for MySQLi functions so we can have * better error reporting and query reporting. * * @author Iris Studios, Inc. * @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc. * @version $Revision$ * @package ISSO * */ class DB_MySQLi extends DB_Abstract { /** * Command mapping list * @var array * @access private */ var $commands = array( 'pconnect' => '$this->command_mysqli_connect', 'connect' => '$this->command_mysqli_connect', 'query' => 'mysqli_query', 'error_num' => 'mysqli_errno', 'error_str' => 'mysqli_error', 'escape_string' => 'mysqli_real_escape_string', 'fetch_assoc' => 'mysqli_fetch_assoc', 'fetch_object' => 'mysqli_fetch_object', 'free_result' => 'mysqli_free_result', 'insert_id' => 'mysqli_insert_id', 'num_rows' => 'mysqli_num_rows', 'affected_rows' => 'mysqli_affected_rows' ); // ################################################################### /** * Constructor */ function __construct(&$registry) { parent::__construct($registry); } // ################################################################### /** * (PHP 4) Constructor */ function DB_MySQL(&$registry) { $this->__construct($registry); } // ################################################################### /** * Wrapper: mysqli_connect * * @access protected * * @param string Server name * @param string User name * @param string Password * @param string Database * * @return integer DB-Link */ function command_mysqli_connect($server, $user, $password, $database) { return mysqli_connect($server, $user, $password, $database); } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>