cvs: pear /MDB common.php

From: Date: Sat, 24 Aug 2002 22:21:31 +0000
Subject: cvs: pear /MDB common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5941@lists.php.net to get a copy of this message
lsmith Sat Aug 24 18:21:31 2002 EDT Modified files: /pear/MDB common.php Log: made constructor parameters optional minor code beautifications Index: pear/MDB/common.php diff -u pear/MDB/common.php:1.52 pear/MDB/common.php:1.53 --- pear/MDB/common.php:1.52 Thu Aug 22 10:04:44 2002 +++ pear/MDB/common.php Sat Aug 24 18:21:31 2002 @@ -42,20 +42,20 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: common.php,v 1.52 2002/08/22 14:04:44 lsmith Exp $ +// $Id: common.php,v 1.53 2002/08/24 22:21:31 lsmith Exp $ require_once 'PEAR.php'; -define('MDB_TYPE_TEXT', 0); -define('MDB_TYPE_BOOLEAN', 1); -define('MDB_TYPE_INTEGER', 2); -define('MDB_TYPE_DECIMAL', 3); -define('MDB_TYPE_FLOAT', 4); -define('MDB_TYPE_DATE', 5); -define('MDB_TYPE_TIME', 6); -define('MDB_TYPE_TIMESTAMP', 7); -define('MDB_TYPE_CLOB', 8); -define('MDB_TYPE_BLOB', 9); +define('MDB_TYPE_TEXT' , 0); +define('MDB_TYPE_BOOLEAN' , 1); +define('MDB_TYPE_INTEGER' , 2); +define('MDB_TYPE_DECIMAL' , 3); +define('MDB_TYPE_FLOAT' , 4); +define('MDB_TYPE_DATE' , 5); +define('MDB_TYPE_TIME' , 6); +define('MDB_TYPE_TIMESTAMP' , 7); +define('MDB_TYPE_CLOB' , 8); +define('MDB_TYPE_BLOB' , 9); /** * @package MDB @@ -129,32 +129,28 @@ var $last_query = ''; var $options = array( 'persistent' => FALSE, - 'debug' => 0, + 'debug' => FALSE, 'seqname_format' => '%s_seq', 'autofree' => FALSE, 'lob_buffer_length' => 8000, 'log_line_break' => "\n", 'escape_quotes' => '', - 'autofree' => FALSE, 'decimal_places' => 2 ); - var $lobs = array(); var $clobs = array(); var $blobs = array(); var $in_transaction = 0; - var $fetchmodes = array(); var $error_handler = ''; var $manager; var $include_path = ''; var $manager_included_constant = ''; var $manager_include = ''; var $manager_class_name = ''; - var $last_error = ''; var $debug = ''; var $debug_output = ''; - var $pass_debug_handle = 0; + var $pass_debug_handle = FALSE; // }}} // {{{ constructor @@ -162,7 +158,7 @@ /** * Constructor */ - function MDB_common($dsninfo, $options) + function MDB_common($dsninfo = NULL, $options = NULL) { global $databases; $database = count($databases) + 1;

« previous php.pear.cvs (#5941) next »