* @copyright 2004 by http://wombat.exit0.net * @package wombatSite * @subpackage factory */ /** * creator class * * implement specialized create function. * * @version 1.0.0 */ class wbFactory_patConfiguration { /** * special creator for Image manager * * @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 ) { $useCache = 'no'; if( wbFactory::getParam( 'useCache' ) ) { $useCache = 'yes'; } $options = array( 'cacheDir' => wbFactory::getParam( 'baseDir' ) . '/' . wbFactory::getParam( 'varDir' ). '/cache', 'configDir' => wbFactory::getParam( 'baseDir' ) . '/' . wbFactory::getParam( 'configDir' ), 'loadFromCache' => $useCache, 'encoding' => 'utf-8' ); $obj = new patConfiguration( $options ); return $obj; } } ?>