- <?php
- class User_Signature_Db extends BaseObject {
- Function User_Signature_Db() {
- $this->BaseObject( 'User_Signature_Db' );
- }
- Function Db( $driver, $db_config ) {
- $driver = strtolower( $driver ) ;
- switch( $driver ) {
- case 'mysql':
- return new Mysql_User_Signature_Db( $db_config );
- break;
- default:
- return new Dummy_User_Signature_Db( $db_config );
- break;
- }
- }
- }
- ?>