|
0
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
2 |
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
|
3 |
<head> |
|
|
4 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
|
5 |
<title>API: datasource datasource-function.js (YUI Library)</title> |
|
|
6 |
|
|
|
7 |
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
|
8 |
<link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
|
9 |
|
|
|
10 |
<script type="text/javascript" src="assets/api-js"></script> |
|
|
11 |
<script type="text/javascript" src="assets/ac-js"></script> |
|
|
12 |
</head> |
|
|
13 |
|
|
|
14 |
<body id="yahoo-com"> |
|
|
15 |
|
|
|
16 |
<div id="doc3" class="yui-t2"> |
|
|
17 |
<div id="hd"> |
|
|
18 |
<h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
|
19 |
<h3>datasource <span class="subtitle">3.0.0</span></h3> |
|
|
20 |
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
|
21 |
> <a href="./module_datasource.html" title="datasource">datasource</a> |
|
|
22 |
|
|
|
23 |
> datasource-function.js (source view) |
|
|
24 |
<form onsubmit="return false"> |
|
|
25 |
<div id="propertysearch"> |
|
|
26 |
Search: <input autocomplete="off" id="searchinput" /> |
|
|
27 |
<div id="searchresults"> |
|
|
28 |
|
|
|
29 |
</div> |
|
|
30 |
</div> |
|
|
31 |
</form> |
|
|
32 |
</div> |
|
|
33 |
|
|
|
34 |
<div id="bd"> |
|
|
35 |
<div id="yui-main"> |
|
|
36 |
<div class="yui-b"> |
|
|
37 |
<form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
|
38 |
<fieldset> |
|
|
39 |
<legend>Filters</legend> |
|
|
40 |
<span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
|
41 |
<span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
|
42 |
<span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
|
43 |
</fieldset> |
|
|
44 |
</form> |
|
|
45 |
|
|
|
46 |
<div id="srcout"> |
|
|
47 |
<style> |
|
|
48 |
#doc3 .classopts { display:none; } |
|
|
49 |
</style> |
|
|
50 |
<div class="highlight" ><pre><span class="c">/**</span> |
|
|
51 |
<span class="c"> * Provides a DataSource implementation which can be used to retrieve data from a custom function.</span> |
|
|
52 |
<span class="c"> *</span> |
|
|
53 |
<span class="c"> * @module datasource</span> |
|
|
54 |
<span class="c"> * @submodule datasource-function</span> |
|
|
55 |
<span class="c"> */</span> |
|
|
56 |
|
|
|
57 |
<span class="c">/**</span> |
|
|
58 |
<span class="c"> * Function subclass for the DataSource Utility.</span> |
|
|
59 |
<span class="c"> * @class DataSource.Function</span> |
|
|
60 |
<span class="c"> * @extends DataSource.Local</span> |
|
|
61 |
<span class="c"> * @constructor</span> |
|
|
62 |
<span class="c"> */</span> |
|
|
63 |
<span class="k">var</span> <span class="nx">LANG</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Lang</span><span class="o">,</span> |
|
|
64 |
|
|
|
65 |
<span class="nx">DSFn</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span> |
|
|
66 |
<span class="nx">DSFn</span><span class="o">.</span><span class="nx">superclass</span><span class="o">.</span><span class="nx">constructor</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span> |
|
|
67 |
<span class="o">};</span> |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
<span class="c">/////////////////////////////////////////////////////////////////////////////</span> |
|
|
71 |
<span class="c"></span> <span class="c">//</span> |
|
|
72 |
<span class="c"></span> <span class="c">// DataSource.Function static properties</span> |
|
|
73 |
<span class="c"></span> <span class="c">//</span> |
|
|
74 |
<span class="c"></span> <span class="c">/////////////////////////////////////////////////////////////////////////////</span> |
|
|
75 |
<span class="c"></span><span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">(</span><span class="nx">DSFn</span><span class="o">,</span> <span class="o">{</span> |
|
|
76 |
<span class="c">/**</span> |
|
|
77 |
<span class="c"> * Class name.</span> |
|
|
78 |
<span class="c"> *</span> |
|
|
79 |
<span class="c"> * @property NAME</span> |
|
|
80 |
<span class="c"> * @type String</span> |
|
|
81 |
<span class="c"> * @static </span> |
|
|
82 |
<span class="c"> * @final</span> |
|
|
83 |
<span class="c"> * @value "dataSourceFunction"</span> |
|
|
84 |
<span class="c"> */</span> |
|
|
85 |
<span class="nx">NAME</span><span class="o">:</span> <span class="s2">"dataSourceFunction"</span><span class="o">,</span> |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
<span class="c">/////////////////////////////////////////////////////////////////////////////</span> |
|
|
89 |
<span class="c"></span> <span class="c">//</span> |
|
|
90 |
<span class="c"></span> <span class="c">// DataSource.Function Attributes</span> |
|
|
91 |
<span class="c"></span> <span class="c">//</span> |
|
|
92 |
<span class="c"></span> <span class="c">/////////////////////////////////////////////////////////////////////////////</span> |
|
|
93 |
<span class="c"></span> |
|
|
94 |
<span class="nx">ATTRS</span><span class="o">:</span> <span class="o">{</span> |
|
|
95 |
<span class="c">/**</span> |
|
|
96 |
<span class="c"> * @attribute source</span> |
|
|
97 |
<span class="c"> * @description Pointer to live data.</span> |
|
|
98 |
<span class="c"> * @type MIXED</span> |
|
|
99 |
<span class="c"> * @default null</span> |
|
|
100 |
<span class="c"> */</span> |
|
|
101 |
<span class="nx">source</span><span class="o">:</span> <span class="o">{</span> |
|
|
102 |
<span class="nx">validator</span><span class="o">:</span> <span class="nx">LANG</span><span class="o">.</span><span class="nx">isFunction</span> |
|
|
103 |
<span class="o">}</span> |
|
|
104 |
<span class="o">}</span> |
|
|
105 |
<span class="o">});</span> |
|
|
106 |
|
|
|
107 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">DSFn</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">.</span><span class="nx">Local</span><span class="o">,</span> <span class="o">{</span> |
|
|
108 |
<span class="c">/**</span> |
|
|
109 |
<span class="c"> * Passes query string to IO. Fires <code>response</code> event when</span> |
|
|
110 |
<span class="c"> * response is received asynchronously.</span> |
|
|
111 |
<span class="c"> *</span> |
|
|
112 |
<span class="c"> * @method _defRequestFn</span> |
|
|
113 |
<span class="c"> * @param e {Event.Facade} Event Facade with the following properties:</span> |
|
|
114 |
<span class="c"> * <dl></span> |
|
|
115 |
<span class="c"> * <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd></span> |
|
|
116 |
<span class="c"> * <dt>request (Object)</dt> <dd>The request.</dd></span> |
|
|
117 |
<span class="c"> * <dt>callback (Object)</dt> <dd>The callback object with the following properties:</span> |
|
|
118 |
<span class="c"> * <dl></span> |
|
|
119 |
<span class="c"> * <dt>success (Function)</dt> <dd>Success handler.</dd></span> |
|
|
120 |
<span class="c"> * <dt>failure (Function)</dt> <dd>Failure handler.</dd></span> |
|
|
121 |
<span class="c"> * </dl></span> |
|
|
122 |
<span class="c"> * </dd></span> |
|
|
123 |
<span class="c"> * <dt>cfg (Object)</dt> <dd>Configuration object.</dd></span> |
|
|
124 |
<span class="c"> * </dl></span> |
|
|
125 |
<span class="c"> * @protected</span> |
|
|
126 |
<span class="c"> */</span> |
|
|
127 |
<span class="nx">_defRequestFn</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">e</span><span class="o">)</span> <span class="o">{</span> |
|
|
128 |
<span class="k">var</span> <span class="nx">fn</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">"source"</span><span class="o">),</span> |
|
|
129 |
<span class="nx">response</span><span class="o">;</span> |
|
|
130 |
|
|
|
131 |
<span class="k">if</span><span class="o">(</span><span class="nx">fn</span><span class="o">)</span> <span class="o">{</span> |
|
|
132 |
<span class="k">try</span> <span class="o">{</span> |
|
|
133 |
<span class="nx">response</span> <span class="o">=</span> <span class="nx">fn</span><span class="o">(</span><span class="nx">e</span><span class="o">.</span><span class="nx">request</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="nx">e</span><span class="o">);</span> |
|
|
134 |
<span class="k">this</span><span class="o">.</span><span class="nx">fire</span><span class="o">(</span><span class="s2">"data"</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">({</span><span class="nx">data</span><span class="o">:</span><span class="nx">response</span><span class="o">},</span> <span class="nx">e</span><span class="o">));</span> |
|
|
135 |
<span class="o">}</span> |
|
|
136 |
<span class="k">catch</span><span class="o">(</span><span class="nx">error</span><span class="o">)</span> <span class="o">{</span> |
|
|
137 |
<span class="nx">e</span><span class="o">.</span><span class="nx">error</span> <span class="o">=</span> <span class="nx">error</span><span class="o">;</span> |
|
|
138 |
<span class="k">this</span><span class="o">.</span><span class="nx">fire</span><span class="o">(</span><span class="s2">"error"</span><span class="o">,</span> <span class="nx">e</span><span class="o">);</span> |
|
|
139 |
<span class="o">}</span> |
|
|
140 |
<span class="o">}</span> |
|
|
141 |
<span class="k">else</span> <span class="o">{</span> |
|
|
142 |
<span class="nx">e</span><span class="o">.</span><span class="nx">error</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Error</span><span class="o">(</span><span class="s2">"Function data failure"</span><span class="o">);</span> |
|
|
143 |
<span class="k">this</span><span class="o">.</span><span class="nx">fire</span><span class="o">(</span><span class="s2">"error"</span><span class="o">,</span> <span class="nx">e</span><span class="o">);</span> |
|
|
144 |
<span class="o">}</span> |
|
|
145 |
|
|
|
146 |
<span class="k">return</span> <span class="nx">e</span><span class="o">.</span><span class="nx">tId</span><span class="o">;</span> |
|
|
147 |
<span class="o">}</span> |
|
|
148 |
<span class="o">});</span> |
|
|
149 |
|
|
|
150 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">.</span><span class="nb">Function</span> <span class="o">=</span> <span class="nx">DSFn</span><span class="o">;</span> |
|
|
151 |
|
|
|
152 |
</pre></div> |
|
|
153 |
|
|
|
154 |
</div> |
|
|
155 |
</div> |
|
|
156 |
</div> |
|
|
157 |
<div class="yui-b"> |
|
|
158 |
<div class="nav"> |
|
|
159 |
|
|
|
160 |
<div id="moduleList" class="module"> |
|
|
161 |
<h4>Modules</h4> |
|
|
162 |
<ul class="content"> |
|
|
163 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
164 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
165 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
166 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
167 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
168 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
169 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
170 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
171 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
172 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
173 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
174 |
<li class="selected"><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
175 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
176 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
177 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
178 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
179 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
180 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
181 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
182 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
183 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
184 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
185 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
186 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
187 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
188 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
189 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
190 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
191 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
192 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
193 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
194 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
195 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
196 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
197 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
198 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
199 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
200 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
201 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
202 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
203 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
204 |
</ul> |
|
|
205 |
</div> |
|
|
206 |
|
|
|
207 |
<div id="classList" class="module"> |
|
|
208 |
<h4>Classes</h4> |
|
|
209 |
<ul class="content"> |
|
|
210 |
<li class=""><a href="DataSource.Function.html" title="DataSource.Function">DataSource.Function</a></li> |
|
|
211 |
<li class=""><a href="DataSource.Get.html" title="DataSource.Get">DataSource.Get</a></li> |
|
|
212 |
<li class=""><a href="DataSource.IO.html" title="DataSource.IO">DataSource.IO</a></li> |
|
|
213 |
<li class=""><a href="DataSource.Local.html" title="DataSource.Local">DataSource.Local</a></li> |
|
|
214 |
<li class=""><a href="DataSourceArraySchema.html" title="DataSourceArraySchema">DataSourceArraySchema</a></li> |
|
|
215 |
<li class=""><a href="DataSourceCache.html" title="DataSourceCache">DataSourceCache</a></li> |
|
|
216 |
<li class=""><a href="DataSourceJSONSchema.html" title="DataSourceJSONSchema">DataSourceJSONSchema</a></li> |
|
|
217 |
<li class=""><a href="DataSourceTextSchema.html" title="DataSourceTextSchema">DataSourceTextSchema</a></li> |
|
|
218 |
<li class=""><a href="DataSourceXMLSchema.html" title="DataSourceXMLSchema">DataSourceXMLSchema</a></li> |
|
|
219 |
<li class=""><a href="Pollable.html" title="Pollable">Pollable</a></li> |
|
|
220 |
</ul> |
|
|
221 |
</div> |
|
|
222 |
|
|
|
223 |
<div id="fileList" class="module"> |
|
|
224 |
<h4>Files</h4> |
|
|
225 |
<ul class="content"> |
|
|
226 |
<li class=""><a href="datasource-arrayschema.js.html" title="datasource-arrayschema.js">datasource-arrayschema.js</a></li> |
|
|
227 |
<li class=""><a href="datasource-cache.js.html" title="datasource-cache.js">datasource-cache.js</a></li> |
|
|
228 |
<li class="selected"><a href="datasource-function.js.html" title="datasource-function.js">datasource-function.js</a></li> |
|
|
229 |
<li class=""><a href="datasource-get.js.html" title="datasource-get.js">datasource-get.js</a></li> |
|
|
230 |
<li class=""><a href="datasource-io.js.html" title="datasource-io.js">datasource-io.js</a></li> |
|
|
231 |
<li class=""><a href="datasource-jsonschema.js.html" title="datasource-jsonschema.js">datasource-jsonschema.js</a></li> |
|
|
232 |
<li class=""><a href="datasource-local.js.html" title="datasource-local.js">datasource-local.js</a></li> |
|
|
233 |
<li class=""><a href="datasource-polling.js.html" title="datasource-polling.js">datasource-polling.js</a></li> |
|
|
234 |
<li class=""><a href="datasource-textschema.js.html" title="datasource-textschema.js">datasource-textschema.js</a></li> |
|
|
235 |
<li class=""><a href="datasource-xmlschema.js.html" title="datasource-xmlschema.js">datasource-xmlschema.js</a></li> |
|
|
236 |
</ul> |
|
|
237 |
</div> |
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
</div> |
|
|
244 |
</div> |
|
|
245 |
</div> |
|
|
246 |
<div id="ft"> |
|
|
247 |
<hr /> |
|
|
248 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
249 |
</div> |
|
|
250 |
</div> |
|
|
251 |
<script type="text/javascript"> |
|
|
252 |
ALL_YUI_PROPS = [{"access": "", "host": "DataSource.Get", "name": "asyncMode", "url": "DataSource.Get.html#config_asyncMode", "type": "config"}, {"access": "", "host": "DataSource.Get", "name": "asyncModeChange", "url": "DataSource.Get.html#event_asyncModeChange", "type": "event"}, {"access": "protected", "host": "DataSourceArraySchema", "name": "_beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "url": "DataSourceArraySchema.html#method__beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "type": "method"}, {"access": "protected", "host": "DataSourceXMLSchema", "name": "_beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "url": "DataSourceXMLSchema.html#method__beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "type": "method"}, {"access": "protected", "host": "DataSourceJSONSchema", "name": "_beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "url": "DataSourceJSONSchema.html#method__beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "type": "method"}, {"access": "protected", "host": "DataSourceTextSchema", "name": "_beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "url": "DataSourceTextSchema.html#method__beforeDefDataFn\n<dl>\n<dt>tId (Number)</dt> <dd>Unique transaction ID.</dd>\n<dt>request (Object)</dt> <dd>The request.</dd>\n<dt>callback (Object)</dt> <dd>The callback object with the following properties:\n<dl>\n<dt>success (Function)</dt> <dd>Success handler.</dd>\n<dt>failure (Function)</dt> <dd>Failure handler.</dd>\n</dl>\n</dd>\n<dt>data (Object)</dt> <dd>Raw data.</dd>\n</dl>", "type": "method"}, {"access": "protected", "host": "DataSourceCache", "name": "_beforeDefRequestFn", "url": "DataSourceCache.html#method__beforeDefRequestFn", "type": "method"}, {"access": "protected", "host": "DataSourceCache", "name": "_beforeDefResponseFn", "url": "DataSourceCache.html#method__beforeDefResponseFn", "type": "method"}, {"access": "", "host": "DataSource.Get", "name": "callbacks", "url": "DataSource.Get.html#property_callbacks", "type": "property"}, {"access": "", "host": "Pollable", "name": "clearAllIntervals", "url": "Pollable.html#method_clearAllIntervals", "type": "method"}, {"access": "", "host": "Pollable", "name": "clearInterval", "url": "Pollable.html#method_clearInterval", "type": "method"}, {"access": "", "host": "DataSource.Local", "name": "data", "url": "DataSource.Local.html#event_data", "type": "event"}, {"access": "", "host": "DataSource.Local", "name": "DataSource.issueCallback", "url": "DataSource.Local.html#method_DataSource.issueCallback", "type": "method"}, {"access": "private", "host": "DataSource.Local", "name": "DataSource._tId", "url": "DataSource.Local.html#property_DataSource._tId", "type": "property"}, {"access": "protected", "host": "DataSource.Local", "name": "_defDataFn", "url": "DataSource.Local.html#method__defDataFn", "type": "method"}, {"access": "protected", "host": "DataSource.Get", "name": "_defRequestFn", "url": "DataSource.Get.html#method__defRequestFn", "type": "method"}, {"access": "protected", "host": "DataSource.Function", "name": "_defRequestFn", "url": "DataSource.Function.html#method__defRequestFn", "type": "method"}, {"access": "protected", "host": "DataSource.IO", "name": "_defRequestFn", "url": "DataSource.IO.html#method__defRequestFn", "type": "method"}, {"access": "protected", "host": "DataSource.Local", "name": "_defRequestFn", "url": "DataSource.Local.html#method__defRequestFn", "type": "method"}, {"access": "protected", "host": "DataSource.Local", "name": "_defResponseFn", "url": "DataSource.Local.html#method__defResponseFn", "type": "method"}, {"access": "", "host": "DataSource.Local", "name": "error", "url": "DataSource.Local.html#event_error", "type": "event"}, {"access": "", "host": "DataSource.Get", "name": "generateRequestCallback", "url": "DataSource.Get.html#config_generateRequestCallback", "type": "config"}, {"access": "", "host": "DataSource.Get", "name": "generateRequestCallbackChange", "url": "DataSource.Get.html#event_generateRequestCallbackChange", "type": "event"}, {"access": "", "host": "DataSource.Get", "name": "get", "url": "DataSource.Get.html#config_get", "type": "config"}, {"access": "", "host": "DataSource.Get", "name": "getChange", "url": "DataSource.Get.html#event_getChange", "type": "event"}, {"access": "private", "host": "DataSource.Local", "name": "_initEvents", "url": "DataSource.Local.html#method__initEvents", "type": "method"}, {"access": "private", "host": "DataSourceArraySchema", "name": "initializer", "url": "DataSourceArraySchema.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSourceXMLSchema", "name": "initializer", "url": "DataSourceXMLSchema.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSourceJSONSchema", "name": "initializer", "url": "DataSourceJSONSchema.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSource.IO", "name": "initializer", "url": "DataSource.IO.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSource.Local", "name": "initializer", "url": "DataSource.Local.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSourceCache", "name": "initializer", "url": "DataSourceCache.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataSourceTextSchema", "name": "initializer", "url": "DataSourceTextSchema.html#method_initializer", "type": "method"}, {"access": "private", "host": "Pollable", "name": "_intervals", "url": "Pollable.html#property__intervals", "type": "property"}, {"access": "", "host": "DataSource.IO", "name": "io", "url": "DataSource.IO.html#config_io", "type": "config"}, {"access": "", "host": "DataSource.IO", "name": "ioChange", "url": "DataSource.IO.html#event_ioChange", "type": "event"}, {"access": "", "host": "DataSource.Get", "name": "NAME", "url": "DataSource.Get.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSource.Function", "name": "NAME", "url": "DataSource.Function.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceArraySchema", "name": "NAME", "url": "DataSourceArraySchema.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceXMLSchema", "name": "NAME", "url": "DataSourceXMLSchema.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceJSONSchema", "name": "NAME", "url": "DataSourceJSONSchema.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSource.IO", "name": "NAME", "url": "DataSource.IO.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSource.Local", "name": "NAME", "url": "DataSource.Local.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceCache", "name": "NAME", "url": "DataSourceCache.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceTextSchema", "name": "NAME", "url": "DataSourceTextSchema.html#property_NAME", "type": "property"}, {"access": "", "host": "DataSourceArraySchema", "name": "NS", "url": "DataSourceArraySchema.html#property_NS", "type": "property"}, {"access": "", "host": "DataSourceXMLSchema", "name": "NS", "url": "DataSourceXMLSchema.html#property_NS", "type": "property"}, {"access": "", "host": "DataSourceJSONSchema", "name": "NS", "url": "DataSourceJSONSchema.html#property_NS", "type": "property"}, {"access": "", "host": "DataSourceCache", "name": "NS", "url": "DataSourceCache.html#property_NS", "type": "property"}, {"access": "", "host": "DataSourceTextSchema", "name": "NS", "url": "DataSourceTextSchema.html#property_NS", "type": "property"}, {"access": "private", "host": "DataSource.IO", "name": "_queue", "url": "DataSource.IO.html#property__queue", "type": "property"}, {"access": "", "host": "DataSource.Local", "name": "request", "url": "DataSource.Local.html#event_request", "type": "event"}, {"access": "", "host": "DataSource.Local", "name": "response", "url": "DataSource.Local.html#event_response", "type": "event"}, {"access": "", "host": "DataSource.Get", "name": "scriptCallbackParam", "url": "DataSource.Get.html#config_scriptCallbackParam", "type": "config"}, {"access": "", "host": "DataSource.Get", "name": "scriptCallbackParamChange", "url": "DataSource.Get.html#event_scriptCallbackParamChange", "type": "event"}, {"access": "", "host": "DataSource.Local", "name": "sendRequest", "url": "DataSource.Local.html#method_sendRequest", "type": "method"}, {"access": "", "host": "Pollable", "name": "setInterval", "url": "Pollable.html#method_setInterval", "type": "method"}, {"access": "", "host": "DataSource.Function", "name": "source", "url": "DataSource.Function.html#config_source", "type": "config"}, {"access": "", "host": "DataSource.Local", "name": "source", "url": "DataSource.Local.html#config_source", "type": "config"}, {"access": "", "host": "DataSource.Function", "name": "sourceChange", "url": "DataSource.Function.html#event_sourceChange", "type": "event"}, {"access": "", "host": "DataSource.Local", "name": "sourceChange", "url": "DataSource.Local.html#event_sourceChange", "type": "event"}, {"access": "private", "host": "DataSource.Get", "name": "_tId", "url": "DataSource.Get.html#property__tId", "type": "property"}]; |
|
|
253 |
</script> |
|
|
254 |
</body> |
|
|
255 |
</html> |