1.    /*
2.    Class: ek.data.Memory
3.    
4.    Description:
5.    ** Description Here... **
6.    
7.    Usage:
8.    <code>Usage</code>
9.    
10.   Example:
11.   <code>Example(s)</code>
12.   
13.   ToDo:
14.   **todo**
15.   
16.   Notes:
17.   **notes**
18.   
19.   Version:
20.   **ver**
21.   
22.   Author:
23.   **author(s)**
24.   
25.   */
26.   class ek.data.Memory{
27.       /*
28.       Property: recordData
29.   
30.       Description:
31.       ** Enter Property Description Here... **
32.   
33.       Datatype:
34.       Object
35.   
36.       */
37.       private var recordData:Object;
38.       /*
39.       Property: favourites
40.   
41.       Description:
42.       ** Enter Property Description Here... **
43.   
44.       Datatype:
45.       Array
46.   
47.       */
48.       private var favourites:Array;
49.       /*
50.       Property: displayModeMemory
51.   
52.       Description:
53.       ** Enter Property Description Here... **
54.   
55.       Datatype:
56.       Object
57.   
58.       */
59.       private var displayModeMemory:Object;
60.       /*
61.       Function: Memory
62.   
63.       Description:
64.       Constructor ** Enter Method Description Here... **
65.   
66.       Method type:
67.       [Public]
68.   
69.       Parameters:
70.   
71.       */
72.       public function Memory(){
73.           recordData = {};
74.           displayModeMemory = {};
75.           favourites = [];
76.       }
77.       /*
78.       Function: saveRecordData
79.   
80.       Description:
81.       ** Enter Method Description Here... **
82.   
83.       Method type:
84.       [Public]
85.   
86.       Parameters:
87.       aRecordNum - [String] ** Description here **
88.       aData - [Object] ** Description here **
89.   
90.       */
91.       public function saveRecordData(aRecordNum:String, aData:Object){
92.           if (aRecordNum != undefined){
93.               // Saves an array of values against a record number.
94.               recordData[aRecordNum] = {};
95.               for (var i in aData){
96.                   recordData[aRecordNum][i] = (aData[i]);
97.               }
98.           }
99.       }
100.      /*
101.      Function: getRecordData
102.  
103.      Description:
104.      ** Enter Method Description Here... **
105.  
106.      Method type:
107.      [Public]
108.  
109.      Parameters:
110.      aRecordNum - [String] ** Description here **
111.  
112.      Return:
113.      Array
114.      **Return description**
115.  
116.      */
117.      public function getRecordData(aRecordNum:String):Array{
118.          // Returns an array of saved data.
119.          return recordData[aRecordNum];
120.      }
121.      /*
122.      Function: breadCrumb
123.  
124.      Description:
125.      ** Enter Method Description Here... **
126.  
127.      Method type:
128.      [Public]
129.  
130.      Parameters:
131.      aData - [Untyped] ** Description here **
132.  
133.      */
134.      public function breadCrumb(aData){
135.      }
136.      /*
137.      Function: saveDisplayMode
138.  
139.      Description:
140.      ** Enter Method Description Here... **
141.  
142.      Method type:
143.      [Public]
144.  
145.      Parameters:
146.      aSectionName - [String] ** Description here **
147.      aDisplayMode - [String] ** Description here **
148.  
149.      */
150.      public function saveDisplayMode(aSectionName:String, aDisplayMode:String){
151.          displayModeMemory[aSectionName] = aDisplayMode;
152.      }
153.      /*
154.      Function: getDisplayMode
155.  
156.      Description:
157.      ** Enter Method Description Here... **
158.  
159.      Method type:
160.      [Public]
161.  
162.      Parameters:
163.      aSectionName - [String] ** Description here **
164.  
165.      */
166.      public function getDisplayMode(aSectionName:String){
167.          return displayModeMemory[aSectionName]
168.      }
169.  }