Package | com.esri.bacore.domain |
Class | public class StorageUtils |
Inheritance | StorageUtils Object |
Since : | Community Analyst API for Flex 2.2. |
Method | Defined By | ||
---|---|---|---|
addToArray(storage:IStorage, arrayKey:String, obj:*):void [static]
Adds an object to an array stored in the storage. | StorageUtils | ||
[static]
Gets a storage object as Array. | StorageUtils |
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.
|
Array — The required array.
|