* @copyright 2004 by http://wombat.exit0.net * @package wombatSite * @subpackage factory */ /** * creator class * * implement specialized create function. * * @version 0.1 */ class wbFactory_wbDatasource { /** * special creator for patSession * * @static * @access private * @param array $params mixed parameter to modify the creation process * @return object $obj reference to the created object * @see create() */ function &create( $params ) { $config = wbFactory::getParam( 'config' ); $tables = $config['dstables']; if( isset( $params['tables'] ) ) { $tables = $params['tables']; } $obj = new wbDatasource( $tables ); $obj->setDebug( wbDebugger::isActive() ); // the datasource requires a callback object //$obj->setCallback( $this ); return $obj; } }