public static function factory($type, $default = array(), $option = array()) { /* $file = 'store/store.'.strtolower($type).'.class.php'; $class = 'XStore'.ucfirst(strtolower($type)); require_once $file; $o = new $class( $default, $option ); */ $o = new XStore(); $o->set($default); return $o; }