cvs: pear /Perm_LiveUser backend_mdb.php

From: Date: Wed, 21 Aug 2002 23:45:20 +0000
Subject: cvs: pear /Perm_LiveUser backend_mdb.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5876@lists.php.net to get a copy of this message
mw21st Wed Aug 21 19:45:20 2002 EDT Modified files: /pear/Perm_LiveUser backend_mdb.php Log: unfreeze() now accepts the same parameters as the constructor and simply calls it again to restore the correct backend connection after the object was retrieved from a session. Index: pear/Perm_LiveUser/backend_mdb.php diff -u pear/Perm_LiveUser/backend_mdb.php:1.1 pear/Perm_LiveUser/backend_mdb.php:1.2 --- pear/Perm_LiveUser/backend_mdb.php:1.1 Wed Aug 21 18:42:48 2002 +++ pear/Perm_LiveUser/backend_mdb.php Wed Aug 21 19:45:20 2002 @@ -15,7 +15,7 @@ * "password" => "pwd", "database" => "AllMyPreciousData") * * @author Markus Wolff <wolff@21st.de> - * @version $Id: backend_mdb.php,v 1.1 2002/08/21 22:42:48 mw21st Exp $ + * @version $Id: backend_mdb.php,v 1.2 2002/08/21 23:45:20 mw21st Exp $ **/ // Include the parent class definition @@ -76,14 +76,12 @@ } } - function unfreeze() - { - // Open new connection - $this->dbc =& MDB::connect($this->dsn); + function unfreeze(&$connectOptions) { + // Call constructor again to setup the proper connection + $this->liveUser_MDB($connectOptions); } - function freeze($loginManager) - { + function freeze($loginManager) { // Open new connection if($this->dsn) { $this->dbc->disconnect();

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