1 | <?php |
||
54 | class TCallbackClientSide extends TClientSideOptions |
||
55 | { |
||
56 | /** |
||
57 | * Returns javascript statement enclosed within a javascript function. |
||
58 | * @param string $javascript javascript statement |
||
59 | * @return string javascript statement wrapped in a javascript function |
||
60 | */ |
||
61 | protected function ensureFunction($javascript) |
||
65 | |||
66 | /** |
||
67 | * @param string $javascript javascript code to be executed before a request is dispatched. |
||
68 | */ |
||
69 | public function setOnPreDispatch($javascript) |
||
73 | |||
74 | /** |
||
75 | * @return string javascript code to be executed before a request is dispatched. |
||
76 | */ |
||
77 | public function getOnPreDispatch() |
||
81 | |||
82 | /** |
||
83 | * @return string javascript code for client-side onUninitialized event |
||
84 | */ |
||
85 | public function getOnUninitialized() |
||
89 | |||
90 | /** |
||
91 | * @param string $javascript javascript code for client-side onUninitialized event. |
||
92 | */ |
||
93 | public function setOnUninitialized($javascript) |
||
97 | |||
98 | /** |
||
99 | * @return string javascript code for client-side onLoading event |
||
100 | */ |
||
101 | public function getOnLoading() |
||
105 | |||
106 | /** |
||
107 | * @param string $javascript javascript code for client-side onLoading event. |
||
108 | */ |
||
109 | public function setOnLoading($javascript) |
||
113 | |||
114 | /** |
||
115 | * @return string javascript code for client-side onLoaded event |
||
116 | */ |
||
117 | public function getOnLoaded() |
||
121 | |||
122 | /** |
||
123 | * @param string $javascript javascript code for client-side onLoaded event. |
||
124 | */ |
||
125 | public function setOnLoaded($javascript) |
||
129 | /** |
||
130 | * @return string javascript code for client-side onInteractive event |
||
131 | */ |
||
132 | public function getOnInteractive() |
||
136 | |||
137 | /** |
||
138 | * @param string $javascript javascript code for client-side onInteractive event. |
||
139 | */ |
||
140 | public function setOnInteractive($javascript) |
||
144 | /** |
||
145 | * @return string javascript code for client-side onComplete event |
||
146 | */ |
||
147 | public function getOnComplete() |
||
151 | |||
152 | /** |
||
153 | * @param string $javascript javascript code for client-side onComplete event. |
||
154 | */ |
||
155 | public function setOnComplete($javascript) |
||
159 | /** |
||
160 | * @return string javascript code for client-side onSuccess event |
||
161 | */ |
||
162 | public function getOnSuccess() |
||
166 | |||
167 | /** |
||
168 | * @param string $javascript javascript code for client-side onSuccess event. |
||
169 | */ |
||
170 | public function setOnSuccess($javascript) |
||
174 | |||
175 | /** |
||
176 | * @return string javascript code for client-side onFailure event |
||
177 | */ |
||
178 | public function getOnFailure() |
||
182 | |||
183 | /** |
||
184 | * @param string $javascript javascript code for client-side onFailure event. |
||
185 | */ |
||
186 | public function setOnFailure($javascript) |
||
190 | |||
191 | /** |
||
192 | * @return string javascript code for client-side onException event |
||
193 | */ |
||
194 | public function getOnException() |
||
198 | |||
199 | /** |
||
200 | * @param string $javascript javascript code for client-side onException event. |
||
201 | */ |
||
202 | public function setOnException($javascript) |
||
206 | |||
207 | /** |
||
208 | * @return bool true to post the inputs of the form on callback, default |
||
209 | * is post the inputs on callback. |
||
210 | */ |
||
211 | public function getPostState() |
||
215 | |||
216 | /** |
||
217 | * @param bool $value true to post the inputs of the form with callback |
||
218 | * requests. Default is to post the inputs. |
||
219 | */ |
||
220 | public function setPostState($value) |
||
224 | |||
225 | /** |
||
226 | * @return int callback request timeout. |
||
227 | */ |
||
228 | public function getRequestTimeOut() |
||
232 | |||
233 | /** |
||
234 | * @param int $value callback request timeout |
||
235 | */ |
||
236 | public function setRequestTimeOut($value) |
||
240 | |||
241 | /** |
||
242 | * Set to true to enable the callback response to enable the viewstate |
||
243 | * update. This will automatically set HasPrority to true. |
||
244 | * @param bool $value true enables the callback response to update the |
||
245 | * viewstate. |
||
246 | */ |
||
247 | public function setEnablePageStateUpdate($value) |
||
252 | |||
253 | /** |
||
254 | * @return bool client-side viewstate will be updated on callback |
||
255 | * response if true. Default is true. |
||
256 | */ |
||
257 | public function getEnablePageStateUpdate() |
||
262 | |||
263 | /** |
||
264 | * @return string post back target ID |
||
265 | */ |
||
266 | public function getPostBackTarget() |
||
270 | |||
271 | /** |
||
272 | * @param string $value post back target ID |
||
273 | */ |
||
274 | public function setPostBackTarget($value) |
||
281 | |||
282 | /** |
||
283 | * @return string post back event parameter. |
||
284 | */ |
||
285 | public function getPostBackParameter() |
||
289 | |||
290 | /** |
||
291 | * @param string $value post back event parameter. |
||
292 | */ |
||
293 | public function setPostBackParameter($value) |
||
297 | |||
298 | /** |
||
299 | * @return int number of retries before an ajax callback is considered failed |
||
300 | * @since 4.1 |
||
301 | */ |
||
302 | public function getRetryLimit() |
||
306 | |||
307 | /** |
||
308 | * @param bool $value number of retries before an ajax callback is considered failed. |
||
309 | * The request will be retried only when it fails for timeout. |
||
310 | * The default is 1 (do not retry). |
||
311 | * @since 4.1 |
||
312 | */ |
||
313 | public function setRetryLimit($value) |
||
317 | } |
||
318 |