public/javascripts/yui/storage/storage.js
function(engineType, location, conf) {
			var _cfg = YL.isObject(conf) ? conf : {},
				klass = _getClass(_registeredEngineMap[engineType]);

			if (! klass && ! _cfg.force) {
				var i, j;

				if (_cfg.order) {
					j = _cfg.order.length;

					for (i = 0; i < j && ! klass; i += 1) {
						klass = _getClass(_cfg.order[i]);
					}
				}

				if (! klass) {
					j = _registeredEngineSet.length;

					for (i = 0; i < j && ! klass; i += 1) {
						klass = _getClass(_registeredEngineSet[i]);
					}
				}
			}

			if (klass) {
				return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
			}

			throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
		}
function(engineType, location, conf) {
			var _cfg = YL.isObject(conf) ? conf : {},
				klass = _getClass(_registeredEngineMap[engineType]);

			if (! klass && ! _cfg.force) {
				var i, j;

				if (_cfg.order) {
					j = _cfg.order.length;

					for (i = 0; i < j && ! klass; i += 1) {
						klass = _getClass(_cfg.order[i]);
					}
				}

				if (! klass) {
					j = _registeredEngineSet.length;

					for (i = 0; i < j && ! klass; i += 1) {
						klass = _getClass(_registeredEngineSet[i]);
					}
				}
			}

			if (klass) {
				return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
			}

			throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
		}
function ( engineType , location , conf ) { var _cfg = YL . isObject ( conf ) ? conf : { } , klass = _getClass ( _registeredEngineMap [ engineType ] ) ; if ( ! klass && ! _cfg . force ) { var i , j ; if ( _cfg . order ) { j = _cfg . order . length ; for ( i = 0 ; i < j && ! klass ; i += 1 ) { klass = _getClass ( _cfg . order [ i ] ) ; } } if ( ! klass ) { j = _registeredEngineSet . length ; for ( i = 0 ; i < j && ! klass ; i += 1 ) { klass = _getClass ( _registeredEngineSet [ i ] ) ; } } } if ( klass ) { return _getStorageEngine ( _getValidLocation ( location ) , klass , _cfg . engine ) ; } throw ( 'YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.' ) ; }
Fetches the desired engine type or first available engine type.
@method get
@param engineType {String} Optional. The engine type, see engines.
@param location {String} Optional. The storage location - LOCATION_SESSION & LOCATION_LOCAL; default is LOCAL.
@param conf {Object} Optional. Additional configuration for the getting the storage engine.
{
engine: {Object} configuration parameters for the desired engine
order: {Array} an array of storage engine names; the desired order to try engines}
}
@static
Fetches the desired engine type or first available engine type .