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