cvs: pear /Auth package2.xml /Auth/Container DB.php DBLite.php MDB.php MDB2.php

From: Date: Tue, 16 Jan 2007 02:55:26 +0000
Subject: cvs: pear /Auth package2.xml /Auth/Container DB.php DBLite.php MDB.php MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44239@lists.php.net to get a copy of this message
aashley Tue Jan 16 02:55:26 2007 UTC Modified files: /pear/Auth package2.xml /pear/Auth/Container DB.php DBLite.php MDB.php MDB2.php Log: Add ability to pass instanciated connection to each of the DB, MDB and MDB2 Auth Containers. http://cvs.php.net/viewvc.cgi/pear/Auth/package2.xml?r1=1.19&r2=1.20&diff_format=u Index: pear/Auth/package2.xml diff -u pear/Auth/package2.xml:1.19 pear/Auth/package2.xml:1.20 --- pear/Auth/package2.xml:1.19 Thu Jan 4 07:17:55 2007 +++ pear/Auth/package2.xml Tue Jan 16 02:55:26 2007 @@ -58,14 +58,14 @@ <email>aharvey@php.net</email> <active>yes</active> </developer> - <date>2007-01-04</date> + <date>2007-01-16</date> <time>07:00:00</time> <version> - <release>1.5.0</release> + <release>1.5.0RC1</release> <api>1.5.0</api> </version> <stability> - <release>stable</release> + <release>beta</release> <api>stable</api> </stability> <license uri="http://www.php.net/license">PHP License</license> @@ -76,6 +76,8 @@ * Completed Request #6949: Use Log package for debugging messages. * Completed Request #7089: Add optional extra WHERE options to DB and MDB(2) containers. + * Add ability to pass an instanciated DB, MDB or MDB2 database connection to each + of the respective Auth Containers. </notes> <contents> <dir name="/"> http://cvs.php.net/viewvc.cgi/pear/Auth/Container/DB.php?r1=1.68&r2=1.69&diff_format=u Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.68 pear/Auth/Container/DB.php:1.69 --- pear/Auth/Container/DB.php:1.68 Fri Dec 22 01:00:34 2006 +++ pear/Auth/Container/DB.php Tue Jan 16 02:55:26 2007 @@ -18,7 +18,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: DB.php,v 1.68 2006/12/22 01:00:34 aashley Exp $ + * @version CVS: $Id: DB.php,v 1.69 2007/01/16 02:55:26 aashley Exp $ * @link http://pear.php.net/package/Auth */ @@ -43,7 +43,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version Release: @package_version@ File: $Revision: 1.68 $ + * @version Release: @package_version@ File: $Revision: 1.69 $ * @link http://pear.php.net/package/Auth */ class Auth_Container_DB extends Auth_Container @@ -95,6 +95,10 @@ } else { $this->options['dsn'] = $dsn; } + if ( is_object($this->options['dsn']) + && DB::isConnection($this->db)) { + $this->db =& $this->options['dsn']; + } } // }}} http://cvs.php.net/viewvc.cgi/pear/Auth/Container/DBLite.php?r1=1.14&r2=1.15&diff_format=u Index: pear/Auth/Container/DBLite.php diff -u pear/Auth/Container/DBLite.php:1.14 pear/Auth/Container/DBLite.php:1.15 --- pear/Auth/Container/DBLite.php:1.14 Fri Dec 22 01:00:34 2006 +++ pear/Auth/Container/DBLite.php Tue Jan 16 02:55:26 2007 @@ -18,7 +18,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: DBLite.php,v 1.14 2006/12/22 01:00:34 aashley Exp $ + * @version CVS: $Id: DBLite.php,v 1.15 2007/01/16 02:55:26 aashley Exp $ * @link http://pear.php.net/package/Auth * @since File available since Release 1.3.0 */ @@ -45,7 +45,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version Release: @package_version@ File: $Revision: 1.14 $ + * @version Release: @package_version@ File: $Revision: 1.15 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.3.0 */ @@ -104,6 +104,10 @@ } else { $this->options['dsn'] = $dsn; } + if ( is_object($this->options['dsn']) + && DB::isConnection($this->db)) { + $this->db =& $this->options['dsn']; + } } // }}} http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB.php?r1=1.31&r2=1.32&diff_format=u Index: pear/Auth/Container/MDB.php diff -u pear/Auth/Container/MDB.php:1.31 pear/Auth/Container/MDB.php:1.32 --- pear/Auth/Container/MDB.php:1.31 Thu Jan 4 02:44:24 2007 +++ pear/Auth/Container/MDB.php Tue Jan 16 02:55:26 2007 @@ -18,7 +18,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: MDB.php,v 1.31 2007/01/04 02:44:24 aashley Exp $ + * @version CVS: $Id: MDB.php,v 1.32 2007/01/16 02:55:26 aashley Exp $ * @link http://pear.php.net/package/Auth * @since File available since Release 1.2.3 */ @@ -44,7 +44,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version Release: @package_version@ File: $Revision: 1.31 $ + * @version Release: @package_version@ File: $Revision: 1.32 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.2.3 */ @@ -95,6 +95,10 @@ } else { $this->options['dsn'] = $dsn; } + if ( is_object($this->options['dsn']) + && is_subclass_of($this->db, 'mdb_common')) { + $this->db =& $this->options['dsn']; + } } // }}} http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB2.php?r1=1.18&r2=1.19&diff_format=u Index: pear/Auth/Container/MDB2.php diff -u pear/Auth/Container/MDB2.php:1.18 pear/Auth/Container/MDB2.php:1.19 --- pear/Auth/Container/MDB2.php:1.18 Thu Jan 4 02:44:24 2007 +++ pear/Auth/Container/MDB2.php Tue Jan 16 02:55:26 2007 @@ -18,7 +18,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: MDB2.php,v 1.18 2007/01/04 02:44:24 aashley Exp $ + * @version CVS: $Id: MDB2.php,v 1.19 2007/01/16 02:55:26 aashley Exp $ * @link http://pear.php.net/package/Auth * @since File available since Release 1.3.0 */ @@ -44,7 +44,7 @@ * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version Release: @package_version@ File: $Revision: 1.18 $ + * @version Release: @package_version@ File: $Revision: 1.19 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.3.0 */ @@ -95,6 +95,10 @@ } else { $this->options['dsn'] = $dsn; } + if ( is_object($this->options['dsn']) + && is_subclass_of($this->options['dsn'], 'MDB2_Driver_Common')) { + $this->db =& $this->options['dsn']; + } } // }}}

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