Re: DataObject tweak ok with DB and MDB2

From: Date: Thu, 07 Apr 2005 04:04:44 +0000
Subject: Re: DataObject tweak ok with DB and MDB2
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18586@lists.php.net to get a copy of this message
- layout around connect needs tidying up a bit: $args = array($dsn); if ($db_options) { $args[] = $db_options; } $DB_....connections..... =
      call_user_func_array(
    	   array(....,connect)
$args);;
Unknown option 0 for both DB and MDB2. This didnt work, however i managed to get $db_options to have data if i did this in the interfacing class to the dataobjects $db_options = PEAR::getstaticProperty('DB','options'); $db_options = $options; works outside the DO not internally , therefore makes the use of a db_driver setting useless if you have to label the class externally :|

« previous php.pear.general (#18586) next »