Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
        <div class="body-wrap">
2
        <div class="top-tools">
3
            <a class="inner-link" href="#Ext.data.ArrayReader-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.data.ArrayReader-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.data.ArrayReader-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                            <a class="inner-link" href="#Ext.data.ArrayReader-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7
                        <a class="bookmark" href="../docs/?class=Ext.data.ArrayReader"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8
        </div>
9
                <div class="inheritance res-block">
10
<pre class="res-block-inner"><a ext:cls="Ext.data.DataReader" ext:member="" href="output/Ext.data.DataReader.html">DataReader</a>
11
  <img src="resources/elbow-end.gif"/><a ext:cls="Ext.data.JsonReader" ext:member="" href="output/Ext.data.JsonReader.html">JsonReader</a>
12
    <img src="resources/elbow-end.gif"/>ArrayReader</pre></div>
13
                <h1>Class Ext.data.ArrayReader</h1>
14
        <table cellspacing="0">
15
            <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
16
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/data/ArrayReader.js" target="_blank">ArrayReader.js</a></td></tr>
17
            <tr><td class="label">Class:</td><td class="hd-info">ArrayReader</td></tr>
18
                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.JsonReader" ext:member="" href="output/Ext.data.JsonReader.html">JsonReader</a></td></tr>
19
                    </table>
20
        <div class="description">
21
            Data reader class to create an Array of Ext.data.Record objects from an Array.
22
Each element of that Array represents a row of data fields. The
23
fields are pulled into a Record object using as a subscript, the <em>mapping</em> property
24
of the field definition if it exists, or the field's ordinal position in the definition.<br>
25
<p>
26
Example code:.
27
<pre><code>var Employee = Ext.data.Record.create([
28
    {name: <em>'name'</em>, mapping: 1},         <i>// <em>"mapping"</em> only needed <b>if</b> an <em>"id"</em> field is present which</i>
29
    {name: <em>'occupation'</em>, mapping: 2}    <i>// precludes using the ordinal position as the index.</i>
30
]);
31
<b>var</b> myReader = <b>new</b> Ext.data.ArrayReader({
32
    id: 0                     <i>// The subscript within row Array that provides an ID <b>for</b> the Record (optional)</i>
33
}, Employee);</code></pre>
34
<p>
35
This would consume an Array like this:
36
<pre><code>[ [1, <em>'Bill'</em>, <em>'Gardener'</em>], [2, <em>'Ben'</em>, <em>'Horticulturalist'</em>] ]</code></pre>        </div>
37
 
38
        <div class="hr"></div>
39
                <a id="Ext.data.ArrayReader-configs"></a>
40
        <h2>Config Options</h2>
41
        <table cellspacing="0" class="member-table">
42
            <tr>
43
                <th class="sig-header" colspan="2">Config Options</th>
44
                <th class="msource-header">Defined By</th>
45
            </tr>
46
                <tr class="config-row">
47
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
48
        <td class="sig">
49
        <a id="Ext.data.ArrayReader-id"></a>
50
            <b>id</b> : String            <div class="mdesc">
51
                            (optional) The subscript within row Array that provides an ID for the Record                        </div>
52
        </td>
53
        <td class="msource">ArrayReader</td>
54
    </tr>
55
        <tr class="config-row inherited alt">
56
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
57
        <td class="sig">
58
        <a id="Ext.data.ArrayReader-root"></a>
59
            <b>root</b> : String            <div class="mdesc">
60
                            name of the property which contains the Array of row objects.                        </div>
61
        </td>
62
        <td class="msource"><a ext:cls="Ext.data.JsonReader" ext:member="#root" href="output/Ext.data.JsonReader.html#root">JsonReader</a></td>
63
    </tr>
64
        <tr class="config-row inherited">
65
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
66
        <td class="sig">
67
        <a id="Ext.data.ArrayReader-successProperty"></a>
68
            <b>successProperty</b> : String            <div class="mdesc">
69
                            Name of the property from which to retrieve the success attribute used by forms.                        </div>
70
        </td>
71
        <td class="msource"><a ext:cls="Ext.data.JsonReader" ext:member="#successProperty" href="output/Ext.data.JsonReader.html#successProperty">JsonReader</a></td>
72
    </tr>
73
        <tr class="config-row inherited alt expandable">
74
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
75
        <td class="sig">
76
        <a id="Ext.data.ArrayReader-totalProperty"></a>
77
            <b>totalProperty</b> : String            <div class="mdesc">
78
                        <div class="short">Name of the property from which to retrieve the total number of records in the dataset. This is only needed if the wh...</div>
79
            <div class="long">
80
                Name of the property from which to retrieve the total number of records in the dataset. This is only needed if the whole dataset is not passed in one go, but is being paged from the remote server.            </div>
81
                        </div>
82
        </td>
83
        <td class="msource"><a ext:cls="Ext.data.JsonReader" ext:member="#totalProperty" href="output/Ext.data.JsonReader.html#totalProperty">JsonReader</a></td>
84
    </tr>
85
            </table>
86
                <a id="Ext.data.ArrayReader-props"></a>
87
        <h2>Public Properties</h2>
88
                <table cellspacing="0" class="member-table">
89
            <tr>
90
                <th class="sig-header" colspan="2">Property</th>
91
                <th class="msource-header">Defined By</th>
92
            </tr>
93
                <tr class="property-row inherited expandable">
94
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
95
        <td class="sig">
96
        <a id="Ext.data.ArrayReader-jsonData"></a>
97
            <b>jsonData</b> : Object            <div class="mdesc">
98
                        <div class="short">After any data loads, the raw JSON data is available for further custom processing.  If no data is
99
loaded or there is...</div>
100
            <div class="long">
101
                After any data loads, the raw JSON data is available for further custom processing.  If no data is
102
loaded or there is a load exception this property will be undefined.            </div>
103
                        </div>
104
        </td>
105
        <td class="msource"><a ext:cls="Ext.data.JsonReader" ext:member="#jsonData" href="output/Ext.data.JsonReader.html#jsonData">JsonReader</a></td>
106
    </tr>
107
        <tr class="property-row inherited alt">
108
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
109
        <td class="sig">
110
        <a id="Ext.data.ArrayReader-meta"></a>
111
            <b>meta</b> : Mixed            <div class="mdesc">
112
                            This DataReader's configured metadata as passed to the constructor.                        </div>
113
        </td>
114
        <td class="msource"><a ext:cls="Ext.data.DataReader" ext:member="#meta" href="output/Ext.data.DataReader.html#meta">DataReader</a></td>
115
    </tr>
116
            </table>
117
                <a id="Ext.data.ArrayReader-methods"></a>
118
        <h2>Public Methods</h2>
119
                <table cellspacing="0" class="member-table">
120
            <tr>
121
                <th class="sig-header" colspan="2">Method</th>
122
                <th class="msource-header">Defined By</th>
123
            </tr>
124
                <tr class="method-row expandable">
125
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
126
        <td class="sig">
127
        <a id="Ext.data.ArrayReader-ArrayReader"></a>
128
            <b>ArrayReader</b>(&nbsp;<code>Object meta</code>, <code>Object recordType</code>&nbsp;)            <div class="mdesc">
129
                        <div class="short">Create a new ArrayReader</div>
130
            <div class="long">
131
                Create a new ArrayReader    <div class="mdetail-params">
132
        <strong>Parameters:</strong>
133
        <ul><li><code>meta</code> : Object<div class="sub-desc">Metadata configuration options.</div></li><li><code>recordType</code> : Object<div class="sub-desc">Either an Array of field definition objects
134
as specified to <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">Ext.data.Record.create</a>,
135
or a <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a> constructor
136
created using <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">Ext.data.Record.create</a>.</div></li>        </ul>
137
        <strong>Returns:</strong>
138
        <ul>
139
            <li><code></code></li>
140
        </ul>
141
    </div>
142
                </div>
143
                        </div>
144
        </td>
145
        <td class="msource">ArrayReader</td>
146
    </tr>
147
        <tr class="method-row inherited alt expandable">
148
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
149
        <td class="sig">
150
        <a id="Ext.data.ArrayReader-read"></a>
151
            <b>read</b>(&nbsp;<code>Object response</code>&nbsp;) : Object            <div class="mdesc">
152
                        <div class="short">
153
This method is only used by a DataProxy which has retrieved data from a remote server.</div>
154
            <div class="long">
155
 
156
This method is only used by a DataProxy which has retrieved data from a remote server.    <div class="mdetail-params">
157
        <strong>Parameters:</strong>
158
        <ul><li><code>response</code> : Object<div class="sub-desc">The XHR object which contains the JSON data in its responseText.</div></li>        </ul>
159
        <strong>Returns:</strong>
160
        <ul>
161
            <li><code>Object</code><div class="sub-desc">data A data block which is used by an Ext.data.Store object as a cache of Ext.data.Records.</div></li>
162
        </ul>
163
    </div>
164
                </div>
165
                        </div>
166
        </td>
167
        <td class="msource"><a ext:cls="Ext.data.JsonReader" ext:member="#read" href="output/Ext.data.JsonReader.html#read">JsonReader</a></td>
168
    </tr>
169
        <tr class="method-row expandable">
170
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
171
        <td class="sig">
172
        <a id="Ext.data.ArrayReader-readRecords"></a>
173
            <b>readRecords</b>(&nbsp;<code>Object o</code>&nbsp;) : Object            <div class="mdesc">
174
                        <div class="short">Create a data block containing Ext.data.Records from an XML document.</div>
175
            <div class="long">
176
                Create a data block containing Ext.data.Records from an XML document.    <div class="mdetail-params">
177
        <strong>Parameters:</strong>
178
        <ul><li><code>o</code> : Object<div class="sub-desc">An Array of row objects which represents the dataset.</div></li>        </ul>
179
        <strong>Returns:</strong>
180
        <ul>
181
            <li><code>Object</code><div class="sub-desc">data A data block which is used by an Ext.data.Store object as a cache of Ext.data.Records.</div></li>
182
        </ul>
183
    </div>
184
                </div>
185
                        </div>
186
        </td>
187
        <td class="msource">ArrayReader</td>
188
    </tr>
189
            </table>
190
                <a id="Ext.data.ArrayReader-events"></a>
191
        <h2>Public Events</h2>
192
        <div class="no-members">This class has no public events.</div>
193
        </div>