1 | <?php |
---|
2 | $core = array( |
---|
3 | array( |
---|
4 | 'name' => 'allow_increment_element_hit_count', |
---|
5 | 'type' => 'trigger_event', |
---|
6 | 'vars' => array('bool', 'content_not_set'), |
---|
7 | 'files' => array('picture.php'), |
---|
8 | ), |
---|
9 | array( |
---|
10 | 'name' => 'begin_delete_elements', |
---|
11 | 'type' => 'trigger_action', |
---|
12 | 'vars' => array('array', 'ids'), |
---|
13 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
14 | ), |
---|
15 | array( |
---|
16 | 'name' => 'blockmanager_apply', |
---|
17 | 'type' => 'trigger_action', |
---|
18 | 'vars' => array('object', 'menublock'), |
---|
19 | 'files' => array('include\block.class.php (BlockManager::apply)'), |
---|
20 | 'infos' => 'use this trigger to modify existing menu blocks', |
---|
21 | ), |
---|
22 | array( |
---|
23 | 'name' => 'blockmanager_prepare_display', |
---|
24 | 'type' => 'trigger_action', |
---|
25 | 'vars' => array('object', 'this'), |
---|
26 | 'files' => array('include\block.class.php (BlockManager::prepare_display)'), |
---|
27 | ), |
---|
28 | array( |
---|
29 | 'name' => 'blockmanager_register_blocks', |
---|
30 | 'type' => 'trigger_action', |
---|
31 | 'vars' => array('object', 'menu'), |
---|
32 | 'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'), |
---|
33 | 'infos' => 'use this trigger to add menu block', |
---|
34 | ), |
---|
35 | array( |
---|
36 | 'name' => 'clean_iptc_value', |
---|
37 | 'type' => 'trigger_event', |
---|
38 | 'vars' => array('string', 'value'), |
---|
39 | 'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'), |
---|
40 | ), |
---|
41 | array( |
---|
42 | 'name' => 'combined_css', |
---|
43 | 'type' => 'trigger_event', |
---|
44 | 'vars' => array('string', 'href', 'Combinable', '$combinable'), |
---|
45 | 'files' => array('include\template.class.php (Template::flush)'), |
---|
46 | ), |
---|
47 | array( |
---|
48 | 'name' => 'combined_css_postfilter', |
---|
49 | 'type' => 'trigger_event', |
---|
50 | 'vars' => array('string', 'css'), |
---|
51 | 'files' => array('include\template.class.php (Template::process_css)'), |
---|
52 | ), |
---|
53 | array( |
---|
54 | 'name' => 'combined_script', |
---|
55 | 'type' => 'trigger_event', |
---|
56 | 'vars' => array('string', 'ret', 'string', 'script'), |
---|
57 | 'files' => array('include\template.class.php (Template::make_script_src)'), |
---|
58 | ), |
---|
59 | array( |
---|
60 | 'name' => 'delete_categories', |
---|
61 | 'type' => 'trigger_action', |
---|
62 | 'vars' => array('array', 'ids'), |
---|
63 | 'files' => array('admin\include\functions.inc.php (delete_categories)'), |
---|
64 | ), |
---|
65 | array( |
---|
66 | 'name' => 'delete_elements', |
---|
67 | 'type' => 'trigger_action', |
---|
68 | 'vars' => array('array', 'ids'), |
---|
69 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
70 | ), |
---|
71 | array( |
---|
72 | 'name' => 'delete_user', |
---|
73 | 'type' => 'trigger_action', |
---|
74 | 'vars' => array('int', 'user_id'), |
---|
75 | 'files' => array('admin\include\functions.inc.php (delete_user)'), |
---|
76 | ), |
---|
77 | array( |
---|
78 | 'name' => 'element_set_global_action', |
---|
79 | 'type' => 'trigger_action', |
---|
80 | 'vars' => array('string', 'action', 'array', 'collection'), |
---|
81 | 'files' => array('admin\batch_manager_global.php'), |
---|
82 | ), |
---|
83 | array( |
---|
84 | 'name' => 'format_exif_data', |
---|
85 | 'type' => 'trigger_event', |
---|
86 | 'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'), |
---|
87 | 'files' => array('include\functions_metadata.inc.php (get_exif_data)'), |
---|
88 | ), |
---|
89 | array( |
---|
90 | 'name' => 'functions_history_included', |
---|
91 | 'type' => 'trigger_action', |
---|
92 | 'vars' => array(), |
---|
93 | 'files' => array('admin\include\functions_history.inc.php'), |
---|
94 | ), |
---|
95 | array( |
---|
96 | 'name' => 'functions_mail_included', |
---|
97 | 'type' => 'trigger_action', |
---|
98 | 'vars' => array(), |
---|
99 | 'files' => array('include\functions_mail.inc.php'), |
---|
100 | ), |
---|
101 | array( |
---|
102 | 'name' => 'get_admin_advanced_features_links', |
---|
103 | 'type' => 'trigger_event', |
---|
104 | 'vars' => array('array', 'advanced_features'), |
---|
105 | 'files' => array('admin\maintenance.php'), |
---|
106 | ), |
---|
107 | array( |
---|
108 | 'name' => 'get_admin_plugin_menu_links', |
---|
109 | 'type' => 'trigger_event', |
---|
110 | 'vars' => array('array', null), |
---|
111 | 'files' => array('admin.php'), |
---|
112 | 'infos' => 'use this trigger to add links into admin plugins menu', |
---|
113 | ), |
---|
114 | array( |
---|
115 | 'name' => 'get_admins_site_links', |
---|
116 | 'type' => 'trigger_event', |
---|
117 | 'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'), |
---|
118 | 'files' => array('admin\site_manager.php'), |
---|
119 | ), |
---|
120 | array( |
---|
121 | 'name' => 'get_batch_manager_prefilters', |
---|
122 | 'type' => 'trigger_event', |
---|
123 | 'vars' => array('array', 'prefilters'), |
---|
124 | 'files' => array('admin\batch_manager_global.php'), |
---|
125 | 'infos' => 'use this trigger to add prefilters into batch manager global', |
---|
126 | ), |
---|
127 | array( |
---|
128 | 'name' => 'get_categories_menu_sql_where', |
---|
129 | 'type' => 'trigger_event', |
---|
130 | 'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'), |
---|
131 | 'files' => array('include\functions_category.inc.php (get_categories_menu)'), |
---|
132 | ), |
---|
133 | array( |
---|
134 | 'name' => 'get_category_preferred_image_orders', |
---|
135 | 'type' => 'trigger_event', |
---|
136 | 'vars' => array('array', null), |
---|
137 | 'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'), |
---|
138 | ), |
---|
139 | array( |
---|
140 | 'name' => 'get_download_url', |
---|
141 | 'type' => 'trigger_event', |
---|
142 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
143 | 'files' => array('include\functions_picture.inc.php (get_download_url)'), |
---|
144 | ), |
---|
145 | array( |
---|
146 | 'name' => 'get_element_metadata_available', |
---|
147 | 'type' => 'trigger_event', |
---|
148 | 'vars' => array('bool', null, 'string', 'element_path'), |
---|
149 | 'files' => array('picture.php'), |
---|
150 | ), |
---|
151 | array( |
---|
152 | 'name' => 'get_element_url', |
---|
153 | 'type' => 'trigger_event', |
---|
154 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
155 | 'files' => array('include\functions_picture.inc.php (get_element_url)'), |
---|
156 | ), |
---|
157 | array( |
---|
158 | 'name' => 'get_high_location', |
---|
159 | 'type' => 'trigger_event', |
---|
160 | 'vars' => array('string', 'location', 'array', 'element_info'), |
---|
161 | 'files' => array('include\functions_picture.inc.php (get_high_location)'), |
---|
162 | ), |
---|
163 | array( |
---|
164 | 'name' => 'get_high_url', |
---|
165 | 'type' => 'trigger_event', |
---|
166 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
167 | 'files' => array('include\functions_picture.inc.php (get_high_url)'), |
---|
168 | ), |
---|
169 | array( |
---|
170 | 'name' => 'get_history', |
---|
171 | 'type' => 'trigger_event', |
---|
172 | 'vars' => array('array', null, 'array', 'page_search', 'array', 'types'), |
---|
173 | 'files' => array('admin\history.php'), |
---|
174 | ), |
---|
175 | array( |
---|
176 | 'name' => 'get_image_location', |
---|
177 | 'type' => 'trigger_event', |
---|
178 | 'vars' => array('string', 'path', 'array', 'element_info'), |
---|
179 | 'files' => array('include\functions_picture.inc.php (get_image_location)'), |
---|
180 | ), |
---|
181 | array( |
---|
182 | 'name' => 'get_popup_help_content', |
---|
183 | 'type' => 'trigger_event', |
---|
184 | 'vars' => array('string', 'help_content', 'string', 'page'), |
---|
185 | 'files' => array('admin\popuphelp.php', 'popuphelp.php'), |
---|
186 | ), |
---|
187 | array( |
---|
188 | 'name' => 'get_pwg_themes', |
---|
189 | 'type' => 'trigger_event', |
---|
190 | 'vars' => array('array', 'themes'), |
---|
191 | 'files' => array('include\functions.inc.php (get_pwg_themes)'), |
---|
192 | ), |
---|
193 | array( |
---|
194 | 'name' => 'get_thumbnail_title', |
---|
195 | 'type' => 'trigger_event', |
---|
196 | 'vars' => array('string', 'title', 'array', 'info'), |
---|
197 | 'files' => array('include\functions.inc.php (get_thumbnail_title)'), |
---|
198 | ), |
---|
199 | array( |
---|
200 | 'name' => 'get_comments_derivative_params', |
---|
201 | 'type' => 'trigger_event', |
---|
202 | 'vars' => array('ImageStdParams', null), |
---|
203 | 'files' => array('comments.php'), |
---|
204 | 'infos' => 'New in 2.4', |
---|
205 | ), |
---|
206 | array( |
---|
207 | 'name' => 'get_index_album_derivative_params', |
---|
208 | 'type' => 'trigger_event', |
---|
209 | 'vars' => array('ImageStdParams', null), |
---|
210 | 'files' => array('includecategory_cats.php', 'include\category_default.inc.php'), |
---|
211 | 'infos' => 'New in 2.4', |
---|
212 | ), |
---|
213 | array( |
---|
214 | 'name' => 'get_src_image_url', |
---|
215 | 'type' => 'trigger_event', |
---|
216 | 'vars' => array('string', 'url', 'SrcImage', 'this'), |
---|
217 | 'files' => array('include\derivative.inc.php (SrcImage::__construct)'), |
---|
218 | 'infos' => 'New in 2.4', |
---|
219 | ), |
---|
220 | array( |
---|
221 | 'name' => 'get_derivative_url', |
---|
222 | 'type' => 'trigger_event', |
---|
223 | 'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'), |
---|
224 | 'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'), |
---|
225 | 'infos' => 'New in 2.4', |
---|
226 | ), |
---|
227 | array( |
---|
228 | 'name' => 'get_tag_alt_names', |
---|
229 | 'type' => 'trigger_event', |
---|
230 | 'vars' => array('array', null, 'array', 'raw_name'), |
---|
231 | 'files' => array('admin\tags.php', 'admin\include\functions.php (get_taglist)'), |
---|
232 | 'infos' => 'New in 2.4', |
---|
233 | ), |
---|
234 | array( |
---|
235 | 'name' => 'get_webmaster_mail_address', |
---|
236 | 'type' => 'trigger_event', |
---|
237 | 'vars' => array('string', 'email'), |
---|
238 | 'files' => array('include\functions.inc.php (get_webmaster_mail_address)'), |
---|
239 | 'infos' => 'New in 2.6', |
---|
240 | ), |
---|
241 | array( |
---|
242 | 'name' => 'init', |
---|
243 | 'type' => 'trigger_action', |
---|
244 | 'vars' => array(), |
---|
245 | 'files' => array('include\common.inc.php'), |
---|
246 | 'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables', |
---|
247 | ), |
---|
248 | array( |
---|
249 | 'name' => 'invalidate_user_cache', |
---|
250 | 'type' => 'trigger_action', |
---|
251 | 'vars' => array('bool', 'full'), |
---|
252 | 'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'), |
---|
253 | ), |
---|
254 | array( |
---|
255 | 'name' => 'load_conf', |
---|
256 | 'type' => 'trigger_action', |
---|
257 | 'vars' => array('string', 'condition'), |
---|
258 | 'files' => array('include\functions.inc.php (load_conf_from_db)'), |
---|
259 | 'infos' => 'New in 2.6. <b>Warning:</b> you can\'t trigger the first call done une common.inc.php. Use <i>init</i> instead.', |
---|
260 | ), |
---|
261 | array( |
---|
262 | 'name' => 'list_check_integrity', |
---|
263 | 'type' => 'trigger_action', |
---|
264 | 'vars' => array('object', 'this'), |
---|
265 | 'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'), |
---|
266 | ), |
---|
267 | array( |
---|
268 | 'name' => 'load_image_library', |
---|
269 | 'type' => 'trigger_action', |
---|
270 | 'vars' => array('object', 'this'), |
---|
271 | 'files' => array('admin\include\image.class.php (pwg_image::__construct)'), |
---|
272 | ), |
---|
273 | array( |
---|
274 | 'name' => 'load_profile_in_template', |
---|
275 | 'type' => 'trigger_action', |
---|
276 | 'vars' => array('array', 'userdata'), |
---|
277 | 'files' => array('profile.php (load_profile_in_template)'), |
---|
278 | ), |
---|
279 | array( |
---|
280 | 'name' => 'loading_lang', |
---|
281 | 'type' => 'trigger_action', |
---|
282 | 'vars' => array(), |
---|
283 | 'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'), |
---|
284 | ), |
---|
285 | array( |
---|
286 | 'name' => 'loc_after_page_header', |
---|
287 | 'type' => 'trigger_action', |
---|
288 | 'vars' => array(), |
---|
289 | 'files' => array('include\page_header.php'), |
---|
290 | ), |
---|
291 | array( |
---|
292 | 'name' => 'loc_begin_about', |
---|
293 | 'type' => 'trigger_action', |
---|
294 | 'vars' => array(), |
---|
295 | 'files' => array('about.php'), |
---|
296 | ), |
---|
297 | array( |
---|
298 | 'name' => 'loc_begin_admin', |
---|
299 | 'type' => 'trigger_action', |
---|
300 | 'vars' => array(), |
---|
301 | 'files' => array('admin.php'), |
---|
302 | ), |
---|
303 | array( |
---|
304 | 'name' => 'loc_begin_admin_page', |
---|
305 | 'type' => 'trigger_action', |
---|
306 | 'vars' => array(), |
---|
307 | 'files' => array('admin.php'), |
---|
308 | ), |
---|
309 | array( |
---|
310 | 'name' => 'loc_begin_cat_list', |
---|
311 | 'type' => 'trigger_action', |
---|
312 | 'vars' => array(), |
---|
313 | 'files' => array('admin\cat_list.php'), |
---|
314 | ), |
---|
315 | array( |
---|
316 | 'name' => 'loc_begin_cat_modify', |
---|
317 | 'type' => 'trigger_action', |
---|
318 | 'vars' => array(), |
---|
319 | 'files' => array('admin\cat_modify.php'), |
---|
320 | ), |
---|
321 | array( |
---|
322 | 'name' => 'loc_begin_element_set_global', |
---|
323 | 'type' => 'trigger_action', |
---|
324 | 'vars' => array(), |
---|
325 | 'files' => array('admin\batch_manager_global.php'), |
---|
326 | ), |
---|
327 | array( |
---|
328 | 'name' => 'loc_begin_element_set_unit', |
---|
329 | 'type' => 'trigger_action', |
---|
330 | 'vars' => array(), |
---|
331 | 'files' => array('admin\batch_manager_unit.php'), |
---|
332 | ), |
---|
333 | array( |
---|
334 | 'name' => 'loc_begin_index', |
---|
335 | 'type' => 'trigger_action', |
---|
336 | 'vars' => array(), |
---|
337 | 'files' => array('index.php'), |
---|
338 | ), |
---|
339 | array( |
---|
340 | 'name' => 'loc_begin_index_category_thumbnails', |
---|
341 | 'type' => 'trigger_action', |
---|
342 | 'vars' => array('array', 'categories'), |
---|
343 | 'files' => array('include\category_cats.inc.php'), |
---|
344 | ), |
---|
345 | array( |
---|
346 | 'name' => 'loc_begin_index_thumbnails', |
---|
347 | 'type' => 'trigger_action', |
---|
348 | 'vars' => array('array', 'pictures'), |
---|
349 | 'files' => array('include\category_default.inc.php'), |
---|
350 | ), |
---|
351 | array( |
---|
352 | 'name' => 'loc_begin_page_header', |
---|
353 | 'type' => 'trigger_action', |
---|
354 | 'vars' => array(), |
---|
355 | 'files' => array('include\page_header.php'), |
---|
356 | ), |
---|
357 | array( |
---|
358 | 'name' => 'loc_begin_page_tail', |
---|
359 | 'type' => 'trigger_action', |
---|
360 | 'vars' => array(), |
---|
361 | 'files' => array('include\page_tail.php'), |
---|
362 | ), |
---|
363 | array( |
---|
364 | 'name' => 'loc_begin_picture', |
---|
365 | 'type' => 'trigger_action', |
---|
366 | 'vars' => array(), |
---|
367 | 'files' => array('picture.php'), |
---|
368 | ), |
---|
369 | array( |
---|
370 | 'name' => 'loc_begin_profile', |
---|
371 | 'type' => 'trigger_action', |
---|
372 | 'vars' => array(), |
---|
373 | 'files' => array('profile.php'), |
---|
374 | ), |
---|
375 | array( |
---|
376 | 'name' => 'loc_begin_password', |
---|
377 | 'type' => 'trigger_action', |
---|
378 | 'vars' => array(), |
---|
379 | 'files' => array('password.php'), |
---|
380 | 'infos' => 'New in 2.5', |
---|
381 | ), |
---|
382 | array( |
---|
383 | 'name' => 'loc_begin_register', |
---|
384 | 'type' => 'trigger_action', |
---|
385 | 'vars' => array(), |
---|
386 | 'files' => array('register.php'), |
---|
387 | 'infos' => 'New in 2.5', |
---|
388 | ), |
---|
389 | array( |
---|
390 | 'name' => 'loc_begin_search', |
---|
391 | 'type' => 'trigger_action', |
---|
392 | 'vars' => array(), |
---|
393 | 'files' => array('search.php'), |
---|
394 | 'infos' => 'New in 2.5', |
---|
395 | ), |
---|
396 | array( |
---|
397 | 'name' => 'loc_begin_tags', |
---|
398 | 'type' => 'trigger_action', |
---|
399 | 'vars' => array(), |
---|
400 | 'files' => array('tags.php'), |
---|
401 | 'infos' => 'New in 2.5', |
---|
402 | ), |
---|
403 | array( |
---|
404 | 'name' => 'loc_begin_comments', |
---|
405 | 'type' => 'trigger_action', |
---|
406 | 'vars' => array(), |
---|
407 | 'files' => array('comments.php'), |
---|
408 | 'infos' => 'New in 2.5', |
---|
409 | ), |
---|
410 | array( |
---|
411 | 'name' => 'loc_begin_identification', |
---|
412 | 'type' => 'trigger_action', |
---|
413 | 'vars' => array(), |
---|
414 | 'files' => array('identification.php'), |
---|
415 | 'infos' => 'New in 2.5', |
---|
416 | ), |
---|
417 | array( |
---|
418 | 'name' => 'loc_begin_notification', |
---|
419 | 'type' => 'trigger_action', |
---|
420 | 'vars' => array(), |
---|
421 | 'files' => array('notification.php'), |
---|
422 | 'infos' => 'New in 2.5', |
---|
423 | ), |
---|
424 | array( |
---|
425 | 'name' => 'loc_end_password', |
---|
426 | 'type' => 'trigger_action', |
---|
427 | 'vars' => array(), |
---|
428 | 'files' => array('password.php'), |
---|
429 | 'infos' => 'New in 2.5', |
---|
430 | ), |
---|
431 | array( |
---|
432 | 'name' => 'loc_end_register', |
---|
433 | 'type' => 'trigger_action', |
---|
434 | 'vars' => array(), |
---|
435 | 'files' => array('register.php'), |
---|
436 | 'infos' => 'New in 2.5', |
---|
437 | ), |
---|
438 | array( |
---|
439 | 'name' => 'loc_end_search', |
---|
440 | 'type' => 'trigger_action', |
---|
441 | 'vars' => array(), |
---|
442 | 'files' => array('search.php'), |
---|
443 | 'infos' => 'New in 2.5', |
---|
444 | ), |
---|
445 | array( |
---|
446 | 'name' => 'loc_end_tags', |
---|
447 | 'type' => 'trigger_action', |
---|
448 | 'vars' => array(), |
---|
449 | 'files' => array('tags.php'), |
---|
450 | 'infos' => 'New in 2.5', |
---|
451 | ), |
---|
452 | array( |
---|
453 | 'name' => 'loc_end_comments', |
---|
454 | 'type' => 'trigger_action', |
---|
455 | 'vars' => array(), |
---|
456 | 'files' => array('comments.php'), |
---|
457 | 'infos' => 'New in 2.5', |
---|
458 | ), |
---|
459 | array( |
---|
460 | 'name' => 'loc_end_identification', |
---|
461 | 'type' => 'trigger_action', |
---|
462 | 'vars' => array(), |
---|
463 | 'files' => array('identification.php'), |
---|
464 | 'infos' => 'New in 2.5', |
---|
465 | ), |
---|
466 | array( |
---|
467 | 'name' => 'loc_end_notification', |
---|
468 | 'type' => 'trigger_action', |
---|
469 | 'vars' => array(), |
---|
470 | 'files' => array('notification.php'), |
---|
471 | 'infos' => 'New in 2.5', |
---|
472 | ), |
---|
473 | array( |
---|
474 | 'name' => 'loc_end_admin', |
---|
475 | 'type' => 'trigger_action', |
---|
476 | 'vars' => array(), |
---|
477 | 'files' => array('admin.php'), |
---|
478 | ), |
---|
479 | array( |
---|
480 | 'name' => 'loc_end_cat_list', |
---|
481 | 'type' => 'trigger_action', |
---|
482 | 'vars' => array(), |
---|
483 | 'files' => array('admin\cat_list.php'), |
---|
484 | ), |
---|
485 | array( |
---|
486 | 'name' => 'loc_end_cat_modify', |
---|
487 | 'type' => 'trigger_action', |
---|
488 | 'vars' => array(), |
---|
489 | 'files' => array('admin\cat_modify.php'), |
---|
490 | ), |
---|
491 | array( |
---|
492 | 'name' => 'loc_end_element_set_global', |
---|
493 | 'type' => 'trigger_action', |
---|
494 | 'vars' => array(), |
---|
495 | 'files' => array('admin\batch_manager_global.php'), |
---|
496 | ), |
---|
497 | array( |
---|
498 | 'name' => 'loc_end_element_set_unit', |
---|
499 | 'type' => 'trigger_action', |
---|
500 | 'vars' => array(), |
---|
501 | 'files' => array('admin\batch_manager_unit.php'), |
---|
502 | ), |
---|
503 | array( |
---|
504 | 'name' => 'loc_end_index', |
---|
505 | 'type' => 'trigger_action', |
---|
506 | 'vars' => array(), |
---|
507 | 'files' => array('index.php'), |
---|
508 | ), |
---|
509 | array( |
---|
510 | 'name' => 'loc_end_index_category_thumbnails', |
---|
511 | 'type' => 'trigger_event', |
---|
512 | 'vars' => array('array', 'tpl_thumbnails_var'), |
---|
513 | 'files' => array('include\category_cats.inc.php'), |
---|
514 | ), |
---|
515 | array( |
---|
516 | 'name' => 'loc_end_index_thumbnails', |
---|
517 | 'type' => 'trigger_event', |
---|
518 | 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'), |
---|
519 | 'files' => array('include\category_default.inc.php'), |
---|
520 | ), |
---|
521 | array( |
---|
522 | 'name' => 'loc_end_page_header', |
---|
523 | 'type' => 'trigger_action', |
---|
524 | 'vars' => array(), |
---|
525 | 'files' => array('include\page_header.php'), |
---|
526 | ), |
---|
527 | array( |
---|
528 | 'name' => 'loc_end_page_tail', |
---|
529 | 'type' => 'trigger_action', |
---|
530 | 'vars' => array(), |
---|
531 | 'files' => array('include\page_tail.php'), |
---|
532 | ), |
---|
533 | array( |
---|
534 | 'name' => 'loc_end_picture', |
---|
535 | 'type' => 'trigger_action', |
---|
536 | 'vars' => array(), |
---|
537 | 'files' => array('picture.php'), |
---|
538 | ), |
---|
539 | array( |
---|
540 | 'name' => 'loc_end_profile', |
---|
541 | 'type' => 'trigger_action', |
---|
542 | 'vars' => array(), |
---|
543 | 'files' => array('profile.php'), |
---|
544 | ), |
---|
545 | array( |
---|
546 | 'name' => 'loc_end_section_init', |
---|
547 | 'type' => 'trigger_action', |
---|
548 | 'vars' => array(), |
---|
549 | 'files' => array('include\section_init.inc.php'), |
---|
550 | 'infos' => 'this action is called after section initilization, $page variable is fully defined', |
---|
551 | ), |
---|
552 | array( |
---|
553 | 'name' => 'loc_visible_user_list', |
---|
554 | 'type' => 'trigger_event', |
---|
555 | 'vars' => array('array', 'visible_user_list'), |
---|
556 | 'files' => array('admin\user_list.php'), |
---|
557 | ), |
---|
558 | array( |
---|
559 | 'name' => 'login_failure', |
---|
560 | 'type' => 'trigger_action', |
---|
561 | 'vars' => array('string', 'username'), |
---|
562 | 'files' => array('include\functions_user.inc.php (try_log_user)'), |
---|
563 | ), |
---|
564 | array( |
---|
565 | 'name' => 'login_success', |
---|
566 | 'type' => 'trigger_action', |
---|
567 | 'vars' => array('string', 'username'), |
---|
568 | 'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'), |
---|
569 | ), |
---|
570 | array( |
---|
571 | 'name' => 'nbm_event_handler_added', |
---|
572 | 'type' => 'trigger_action', |
---|
573 | 'vars' => array(), |
---|
574 | 'files' => array('admin\notification_by_mail.php'), |
---|
575 | ), |
---|
576 | array( |
---|
577 | 'name' => 'nbm_render_global_customize_mail_content', |
---|
578 | 'type' => 'trigger_event', |
---|
579 | 'vars' => array('string', 'customize_mail_content'), |
---|
580 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
581 | ), |
---|
582 | array( |
---|
583 | 'name' => 'nbm_render_user_customize_mail_content', |
---|
584 | 'type' => 'trigger_event', |
---|
585 | 'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'), |
---|
586 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
587 | ), |
---|
588 | array( |
---|
589 | 'name' => 'perform_batch_manager_prefilters', |
---|
590 | 'type' => 'trigger_event', |
---|
591 | 'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'), |
---|
592 | 'files' => array('admin\batch_manager.php'), |
---|
593 | ), |
---|
594 | array( |
---|
595 | 'name' => 'picture_pictures_data', |
---|
596 | 'type' => 'trigger_event', |
---|
597 | 'vars' => array('array', 'picture'), |
---|
598 | 'files' => array('picture.php'), |
---|
599 | ), |
---|
600 | array( |
---|
601 | 'name' => 'plugins_loaded', |
---|
602 | 'type' => 'trigger_action', |
---|
603 | 'vars' => array(), |
---|
604 | 'files' => array('include\functions_plugins.inc.php (load_plugins)'), |
---|
605 | ), |
---|
606 | array( |
---|
607 | 'name' => 'pwg_log_allowed', |
---|
608 | 'type' => 'trigger_event', |
---|
609 | 'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'), |
---|
610 | 'files' => array('include\functions.inc.php (pwg_log)'), |
---|
611 | ), |
---|
612 | array( |
---|
613 | 'name' => 'register_user', |
---|
614 | 'type' => 'trigger_action', |
---|
615 | 'vars' => array('array', 'user'), |
---|
616 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
617 | ), |
---|
618 | array( |
---|
619 | 'name' => 'register_user_check', |
---|
620 | 'type' => 'trigger_event', |
---|
621 | 'vars' => array('array', 'errors', 'array', 'user'), |
---|
622 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
623 | ), |
---|
624 | array( |
---|
625 | 'name' => 'render_category_description', |
---|
626 | 'type' => 'trigger_event', |
---|
627 | 'vars' => array('string', 'category_description', 'string', 'action'), |
---|
628 | 'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'), |
---|
629 | ), |
---|
630 | array( |
---|
631 | 'name' => 'render_category_literal_description', |
---|
632 | 'type' => 'trigger_event', |
---|
633 | 'vars' => array('string', 'category_description'), |
---|
634 | 'files' => array('include\category_cats.inc.php'), |
---|
635 | ), |
---|
636 | array( |
---|
637 | 'name' => 'render_category_name', |
---|
638 | 'type' => 'trigger_event', |
---|
639 | 'vars' => array('string', 'category_name', 'string', 'location'), |
---|
640 | 'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'), |
---|
641 | ), |
---|
642 | array( |
---|
643 | 'name' => 'render_comment_author', |
---|
644 | 'type' => 'trigger_event', |
---|
645 | 'vars' => array('string', 'comment_author'), |
---|
646 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
647 | ), |
---|
648 | array( |
---|
649 | 'name' => 'render_comment_content', |
---|
650 | 'type' => 'trigger_event', |
---|
651 | 'vars' => array('string', 'comment_content'), |
---|
652 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
653 | ), |
---|
654 | array( |
---|
655 | 'name' => 'render_element_content', |
---|
656 | 'type' => 'trigger_event', |
---|
657 | 'vars' => array('string', 'content', 'array', 'current_picture'), |
---|
658 | 'files' => array('picture.php'), |
---|
659 | ), |
---|
660 | array( |
---|
661 | 'name' => 'render_element_name', |
---|
662 | 'type' => 'trigger_event', |
---|
663 | 'vars' => array('string', 'element_name'), |
---|
664 | 'files' => array('include\functions_html.inc.php (render_element_name)'), |
---|
665 | ), |
---|
666 | array( |
---|
667 | 'name' => 'render_element_description', |
---|
668 | 'type' => 'trigger_event', |
---|
669 | 'vars' => array('string', 'element_description', 'string', 'action'), |
---|
670 | 'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'), |
---|
671 | ), |
---|
672 | array( |
---|
673 | 'name' => 'render_lost_password_mail_content', |
---|
674 | 'type' => 'trigger_event', |
---|
675 | 'vars' => array('string', 'message'), |
---|
676 | 'files' => array('password.php (process_password_request)'), |
---|
677 | ), |
---|
678 | array( |
---|
679 | 'name' => 'render_page_banner', |
---|
680 | 'type' => 'trigger_event', |
---|
681 | 'vars' => array('string', 'gallery_title'), |
---|
682 | 'files' => array('include\page_header.php'), |
---|
683 | ), |
---|
684 | array( |
---|
685 | 'name' => 'render_tag_name', |
---|
686 | 'type' => 'trigger_event', |
---|
687 | 'vars' => array('string', 'tag_name', 'array', 'tag'), |
---|
688 | 'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'admin\history.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'include\functions_html.inc.php (get_tags_content_title)', 'include\functions_search.inc.php (get_qsearch_tags)'), |
---|
689 | ), |
---|
690 | array( |
---|
691 | 'name' => 'render_tag_url', |
---|
692 | 'type' => 'trigger_event', |
---|
693 | 'vars' => array('string', 'tag_name'), |
---|
694 | 'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), |
---|
695 | ), |
---|
696 | array( |
---|
697 | 'name' => 'save_profile_from_post', |
---|
698 | 'type' => 'trigger_action', |
---|
699 | 'vars' => array('int', 'user_id'), |
---|
700 | 'files' => array('profile.php (save_profile_from_post)'), |
---|
701 | ), |
---|
702 | array( |
---|
703 | 'name' => 'before_send_mail', |
---|
704 | 'type' => 'trigger_event', |
---|
705 | 'vars' => array('bool', 'result', 'mixed', 'to', 'array', 'arguments', 'PHPMailer', 'mail'), |
---|
706 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
707 | ), |
---|
708 | array( |
---|
709 | 'name' => 'before_parse_mail_template', |
---|
710 | 'type' => 'trigger_action', |
---|
711 | 'vars' => array('string', 'cache_key', 'string', 'content_type'), |
---|
712 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
713 | ), |
---|
714 | array( |
---|
715 | 'name' => 'sendResponse', |
---|
716 | 'type' => 'trigger_action', |
---|
717 | 'vars' => array('string', 'encodedResponse'), |
---|
718 | 'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'), |
---|
719 | ), |
---|
720 | array( |
---|
721 | 'name' => 'set_status_header', |
---|
722 | 'type' => 'trigger_action', |
---|
723 | 'vars' => array('int', 'code', 'string', 'text'), |
---|
724 | 'files' => array('include\functions_html.inc.php (set_status_header)'), |
---|
725 | ), |
---|
726 | array( |
---|
727 | 'name' => 'tabsheet_before_select', |
---|
728 | 'type' => 'trigger_event', |
---|
729 | 'vars' => array('array', 'sheets', 'string', 'tabsheet_id'), |
---|
730 | 'files' => array('include\tabsheet.class.php (tabsheet::select)'), |
---|
731 | 'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets', |
---|
732 | ), |
---|
733 | array( |
---|
734 | 'name' => 'trigger', |
---|
735 | 'type' => 'trigger_action', |
---|
736 | 'vars' => array('array', null), |
---|
737 | 'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'), |
---|
738 | ), |
---|
739 | array( |
---|
740 | 'name' => 'user_comment_check', |
---|
741 | 'type' => 'trigger_event', |
---|
742 | 'vars' => array('string', 'comment_action', 'array', 'comm'), |
---|
743 | 'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'), |
---|
744 | 'infos' => 'use this trigger to add conditions on comment validation', |
---|
745 | ), |
---|
746 | array( |
---|
747 | 'name' => 'user_comment_deletion', |
---|
748 | 'type' => 'trigger_action', |
---|
749 | 'vars' => array('mixed', 'comment_id'), |
---|
750 | 'files' => array('include\functions_comment.inc.php (delete_user_comment)'), |
---|
751 | 'infos' => '$comment_id is and int or an array of int', |
---|
752 | ), |
---|
753 | array( |
---|
754 | 'name' => 'user_comment_insertion', |
---|
755 | 'type' => 'trigger_action', |
---|
756 | 'vars' => array('array', 'comm'), |
---|
757 | 'files' => array('include\picture_comment.inc.php'), |
---|
758 | ), |
---|
759 | array( |
---|
760 | 'name' => 'user_comment_validation', |
---|
761 | 'type' => 'trigger_action', |
---|
762 | 'vars' => array('mixed', 'comment_id'), |
---|
763 | 'files' => array('include\functions_comment.inc.php (validate_user_comment)'), |
---|
764 | 'infos' => '$comment_id is and int or an array of int', |
---|
765 | ), |
---|
766 | array( |
---|
767 | 'name' => 'user_init', |
---|
768 | 'type' => 'trigger_action', |
---|
769 | 'vars' => array('array', 'user'), |
---|
770 | 'files' => array('include\user.inc.php'), |
---|
771 | ), |
---|
772 | array( |
---|
773 | 'name' => 'ws_add_methods', |
---|
774 | 'type' => 'trigger_action', |
---|
775 | 'vars' => array('object', 'this'), |
---|
776 | 'files' => array('include\ws_core.inc.php (PwgServer::run)'), |
---|
777 | ), |
---|
778 | array( |
---|
779 | 'name' => 'ws_invoke_allowed', |
---|
780 | 'type' => 'trigger_event', |
---|
781 | 'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'), |
---|
782 | 'files' => array('include\ws_core.inc.php (PwgServer::invoke)'), |
---|
783 | ), |
---|
784 | array( |
---|
785 | 'name' => 'user_logout', |
---|
786 | 'type' => 'trigger_action', |
---|
787 | 'vars' => array('int', 'user_id'), |
---|
788 | 'files' => array('include\functions_user.inc.php (logout_user)'), |
---|
789 | 'infos' => 'New in 2.5', |
---|
790 | ), |
---|
791 | array( |
---|
792 | 'name' => 'user_login', |
---|
793 | 'type' => 'trigger_action', |
---|
794 | 'vars' => array('int', 'user_id'), |
---|
795 | 'files' => array('include\functions_user.inc.php (log_user)'), |
---|
796 | 'infos' => 'New in 2.5', |
---|
797 | ), |
---|
798 | array( |
---|
799 | 'name' => 'try_log_user', |
---|
800 | 'type' => 'trigger_event', |
---|
801 | 'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'), |
---|
802 | 'files' => array('include\functions_user.inc.php (try_log_user)'), |
---|
803 | 'infos' => 'New in 2.5. Used by identification form to check user credentials and log user. If <i>success</i> is <i>true</i>, another login method already succeed. Return <i>true</i> if your method succeed.', |
---|
804 | ), |
---|
805 | array( |
---|
806 | 'name' => 'combinable_preparse', |
---|
807 | 'type' => 'trigger_action', |
---|
808 | 'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'), |
---|
809 | 'files' => array('include\template.class.php (FileCombiner::process_combinable)'), |
---|
810 | 'infos' => 'New in 2.6.', |
---|
811 | ), |
---|
812 | array( |
---|
813 | 'name' => 'user_list_columns', |
---|
814 | 'type' => 'trigger_event', |
---|
815 | 'vars' => array('string[]', 'aColumns'), |
---|
816 | 'files' => array('admin\user_list_backend.php'), |
---|
817 | 'infos' => 'New in 2.6.', |
---|
818 | ), |
---|
819 | array( |
---|
820 | 'name' => 'after_render_user_list', |
---|
821 | 'type' => 'trigger_event', |
---|
822 | 'vars' => array('array', 'output'), |
---|
823 | 'files' => array('admin\user_list_backend.php'), |
---|
824 | 'infos' => 'New in 2.6.', |
---|
825 | ), |
---|
826 | ); |
---|
827 | ?> |
---|
828 | <!DOCTYPE html> |
---|
829 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> |
---|
830 | <head> |
---|
831 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
832 | <title>Piwigo Core Triggers</title> |
---|
833 | |
---|
834 | <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"> |
---|
835 | <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css"> |
---|
836 | |
---|
837 | <style type="text/css"> |
---|
838 | /* BEGIN CSS RESET |
---|
839 | http://meyerweb.com/eric/tools/css/reset |
---|
840 | v2.0 | 20110126 | License: none (public domain) */ |
---|
841 | html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, |
---|
842 | del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, |
---|
843 | fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, |
---|
844 | figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video |
---|
845 | {margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;} |
---|
846 | |
---|
847 | article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;} |
---|
848 | body {line-height:1.1;} |
---|
849 | blockquote, q {quotes:none;} |
---|
850 | blockquote:before, blockquote:after, q:before, q:after {content:'';content:none;} |
---|
851 | table {border-collapse:collapse;border-spacing:0;} |
---|
852 | /* END CSS RESET */ |
---|
853 | |
---|
854 | html {font-family:"Corbel","Lucida Grande","Verdana",sans-serif;color:#222;font-size:13px;} |
---|
855 | |
---|
856 | a {color:#247EBF;text-decoration:none;} |
---|
857 | a:hover {color:#EB9C39;border-bottom-width:1px;border-style:dotted;text-shadow:1px 1px 0 #ddd;} |
---|
858 | |
---|
859 | h1 {color:#fff;font-size:26px;padding:10px 15px;text-shadow:1px 1px 0 #999; |
---|
860 | background:#45484d;background:linear-gradient(to bottom, #45484d 0%,#333333 100%); |
---|
861 | } |
---|
862 | |
---|
863 | #the_header {border-bottom:1px solid #cdcdcd;margin-bottom:1px;} |
---|
864 | #the_footer {background:#EAEAEA;border-top:1px solid #cdcdcd;padding:10px;clear:both;} |
---|
865 | |
---|
866 | #the_page {padding:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAH0lEQVQImSXHMQEAMAwCMOrfK0jIjuVL2gLBzyHJtgd7wBdU3Vt/7AAAAABJRU5ErkJggg==);} |
---|
867 | |
---|
868 | tfoot input {width:80%;} |
---|
869 | tfoot .search_input {color:#999;} |
---|
870 | tfoot select.search_input option:not(:first-child) {color:#222;} |
---|
871 | </style> |
---|
872 | </head> |
---|
873 | |
---|
874 | <body> |
---|
875 | |
---|
876 | <div id="the_header"> |
---|
877 | <h1>Piwigo Core Triggers</h1> |
---|
878 | </div> <!-- the_header --> |
---|
879 | |
---|
880 | <div id="the_page"> |
---|
881 | <table id="list"> |
---|
882 | <thead> |
---|
883 | <tr> |
---|
884 | <th>Name</th> |
---|
885 | <th>Type</th> |
---|
886 | <th>Variables</th> |
---|
887 | <th>Usage in the core</th> |
---|
888 | <th>Commentary</th> |
---|
889 | </tr> |
---|
890 | </thead> |
---|
891 | <tbody> |
---|
892 | |
---|
893 | <?php |
---|
894 | foreach ($core as $trigger) |
---|
895 | { |
---|
896 | echo ' |
---|
897 | <tr> |
---|
898 | <td>'.$trigger['name'].'</td> |
---|
899 | <td>'.$trigger['type'].'</td> |
---|
900 | <td>'; |
---|
901 | for ($i=0; $i<count($trigger['vars']); $i+=2) |
---|
902 | { |
---|
903 | if ($i>0) echo ', '; |
---|
904 | echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null); |
---|
905 | } |
---|
906 | echo ' |
---|
907 | </td> |
---|
908 | <td>'; |
---|
909 | $f=1; |
---|
910 | foreach ($trigger['files'] as $file) |
---|
911 | { |
---|
912 | if (!$f) echo '<br>'; $f=0; |
---|
913 | echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file); |
---|
914 | } |
---|
915 | echo ' |
---|
916 | </td> |
---|
917 | <td>'.@$trigger['infos'].'</td> |
---|
918 | </tr>'; |
---|
919 | } |
---|
920 | ?> |
---|
921 | |
---|
922 | </tbody> |
---|
923 | <tfoot> |
---|
924 | <tr> |
---|
925 | <td><input type="text" value="Name" class="search_input"></td> |
---|
926 | <td> |
---|
927 | <select class="search_input"> |
---|
928 | <option value="">Type</option> |
---|
929 | <option value="trigger_action">trigger_action</option> |
---|
930 | <option value="trigger_event">trigger_event</option> |
---|
931 | </select> |
---|
932 | </td> |
---|
933 | <td><input type="text" value="Variables" class="search_input"></td> |
---|
934 | <td><input type="text" value="Usage" class="search_input"></td> |
---|
935 | <td><input type="text" value="Commentary" class="search_input"></td> |
---|
936 | </tr> |
---|
937 | </tfoot> |
---|
938 | </table> |
---|
939 | </div> <!-- the_page --> |
---|
940 | |
---|
941 | <div id="the_footer"> |
---|
942 | Copyright © 2002-2013 <a href="http://piwigo.org">Piwigo Team</a> |
---|
943 | </div> <!-- the_footer --> |
---|
944 | |
---|
945 | |
---|
946 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
---|
947 | <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script> |
---|
948 | |
---|
949 | <script type="text/javascript"> |
---|
950 | var oTable = $('#list').dataTable({ |
---|
951 | "bJQueryUI": true, |
---|
952 | "aaSorting": [ [0,'asc'] ], |
---|
953 | "sPaginationType": "full_numbers", |
---|
954 | "aLengthMenu": [[10, 30, 50, 70, 90, -1], [10, 30, 50, 70, 90, "All"]], |
---|
955 | "iDisplayLength": 30, |
---|
956 | "oLanguage": { |
---|
957 | "sSearch": "Search all columns :" |
---|
958 | } |
---|
959 | }); |
---|
960 | |
---|
961 | // search input |
---|
962 | $("tfoot td").each(function (i) { |
---|
963 | $('select', this).change(function () { |
---|
964 | oTable.fnFilter($(this).val(), i); |
---|
965 | }); |
---|
966 | $('input', this).keyup(function () { |
---|
967 | oTable.fnFilter($(this).val(), i); |
---|
968 | }); |
---|
969 | }); |
---|
970 | |
---|
971 | // search helpers |
---|
972 | var asInitVals = new Array(); |
---|
973 | $("tfoot input").each(function (i) { |
---|
974 | asInitVals[i] = $(this).val(); |
---|
975 | }); |
---|
976 | |
---|
977 | $("tfoot input").focus(function () { |
---|
978 | if (this.className == "search_input") { |
---|
979 | $(this).removeClass("search_input"); |
---|
980 | $(this).val(""); |
---|
981 | } |
---|
982 | }); |
---|
983 | |
---|
984 | $("tfoot input").blur(function (i) { |
---|
985 | if ($(this).val() == "") { |
---|
986 | $(this).addClass("search_input"); |
---|
987 | $(this).val(asInitVals[$("tfoot input").index(this)]); |
---|
988 | } |
---|
989 | }); |
---|
990 | |
---|
991 | $("tfoot select").change(function () { |
---|
992 | if ($(this).val() == "") { |
---|
993 | $(this).addClass("search_input"); |
---|
994 | } |
---|
995 | else { |
---|
996 | $(this).removeClass("search_input"); |
---|
997 | } |
---|
998 | }); |
---|
999 | </script> |
---|
1000 | |
---|
1001 | </body> |
---|
1002 | </html> |
---|