Packagecom.esri.bacore.domain
Classpublic class StorageUtils
InheritanceStorageUtils Inheritance Object

Since : Community Analyst API for Flex 2.2.

Collection of static utility functions working with a storage.



Public Methods
 MethodDefined By
  
addToArray(storage:IStorage, arrayKey:String, obj:*):void
[static] Adds an object to an array stored in the storage.
StorageUtils
  
getArray(storage:IStorage, arrayKey:String):Array
[static] Gets a storage object as Array.
StorageUtils
Method Detail
addToArray()method
public static function addToArray(storage:IStorage, arrayKey:String, obj:*):void

Adds an object to an array stored in the storage.

An array to store the object is automatically created at the first request with the given arrayKey.

Parameters

storage:IStorage — Storage instance.
 
arrayKey:String — Key of array in the storage.
 
obj:* — Object to add to the array.

getArray()method 
public static function getArray(storage:IStorage, arrayKey:String):Array

Gets a storage object as Array.

If the requested array doesn't exist in the storage, an empty array is created and is associated with the given key.

Parameters

storage:IStorage — Storage instance.
 
arrayKey:String — Key of array in the storage.

Returns
Array — The required array.