Re: Using two different DB_DataObject configurations
| From: | Tobias Schlitt | Date: | Fri, 19 Aug 2005 10:49:42 +0000 |
| Subject: | Re: Using two different DB_DataObject configurations | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39466@lists.php.net to get a copy of this message | ||
Hi Markus Fischer!
On 08/19/05 12:42 you wrote:
> Any recommendations what can be done here?
You can re-configure the DB_DataObject class after instanciating all
needed objects of the first type. Like:
<?php
require_once 'config.x.php';
$a = DB_DataObject::factory('A');
$b = DB_DataObject::factory('B');
require_once 'config.y.php';
$c = DB_DataObject::factory('C');
$d = DB_DataObject::factory('D');
?>
After that you can use both connections in paralell.
Regards,
Toby
--
Tobias Schlitt - Zend Certified Engineer GPG Key: 0xA6529579
a passion for php http://www.schlitt.info
Like to say "thank you"? - http://pear.php.net/wishlist.php/toby