source: trunk/tools/triggers_list.php @ 20192

Last change on this file since 20192 was 20192, checked in by mistic100, 11 years ago

update triggers_list, use DataTables and same design as Webservices explorer

File size: 29.4 KB
Line 
1<?php
2$core = array(
3array(
4  'name' => 'allow_increment_element_hit_count',
5  'type' => 'trigger_event',
6  'vars' => array('bool', 'content_not_set'),
7  'files' => array('picture.php'),
8),
9array(
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),
15array(
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),
22array(
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),
28array(
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),
35array(
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),
41array(
42  'name' => 'combined_css',
43  'type' => 'trigger_event',
44  'vars' => array('string', 'href', 'int', 'file_ver0', 'int', 'file_ver1'),
45  'files' => array('include\template.class.php (Template::flush)'),
46),
47array(
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),
53array(
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),
59array(
60  'name' => 'delete_categories',
61  'type' => 'trigger_action',
62  'vars' => array('array', 'ids'),
63  'files' => array('admin\include\functions.inc.php (delete_categories)'),
64),
65array(
66  'name' => 'delete_elements',
67  'type' => 'trigger_action',
68  'vars' => array('array', 'ids'),
69  'files' => array('admin\include\functions.inc.php (delete_elements)'),
70),
71array(
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),
77array(
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),
83array(
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),
89array(
90  'name' => 'functions_history_included',
91  'type' => 'trigger_action',
92  'vars' => array(),
93  'files' => array('admin\include\functions_history.inc.php'),
94),
95array(
96  'name' => 'functions_mail_included',
97  'type' => 'trigger_action',
98  'vars' => array(),
99  'files' => array('include\functions_mail.inc.php'),
100),
101array(
102  'name' => 'get_admin_advanced_features_links',
103  'type' => 'trigger_event',
104  'vars' => array('array', 'advanced_features'),
105  'files' => array('admin\maintenance.php'),
106),
107array(
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),
114array(
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),
120array(
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),
127array(
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),
133array(
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),
139array(
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),
145array(
146  'name' => 'get_element_metadata_available',
147  'type' => 'trigger_event',
148  'vars' => array('bool', null, 'string', 'element_path'),
149  'files' => array('picture.php'),
150),
151array(
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),
157array(
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),
163array(
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),
169array(
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),
175array(
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),
181array(
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),
187array(
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),
193array(
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),
199array(
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),
206array(
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),
213array(
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),
220array(
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),
227array(
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),
234array(
235  'name' => 'init',
236  'type' => 'trigger_action',
237  'vars' => array(),
238  'files' => array('include\common.inc.php'),
239  'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables',
240),
241array(
242  'name' => 'invalidate_user_cache',
243  'type' => 'trigger_action',
244  'vars' => array('bool', 'full'),
245  'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
246),
247array(
248  'name' => 'list_check_integrity',
249  'type' => 'trigger_action',
250  'vars' => array('object', 'this'),
251  'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'),
252),
253array(
254  'name' => 'load_image_library',
255  'type' => 'trigger_action',
256  'vars' => array('object', 'this'),
257  'files' => array('admin\include\image.class.php (pwg_image::__construct)'),
258),
259array(
260  'name' => 'load_profile_in_template',
261  'type' => 'trigger_action',
262  'vars' => array('array', 'userdata'),
263  'files' => array('profile.php (load_profile_in_template)'),
264),
265array(
266  'name' => 'loading_lang',
267  'type' => 'trigger_action',
268  'vars' => array(),
269  'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'),
270),
271array(
272  'name' => 'loc_after_page_header',
273  'type' => 'trigger_action',
274  'vars' => array(),
275  'files' => array('include\page_header.php'),
276),
277array(
278  'name' => 'loc_begin_about',
279  'type' => 'trigger_action',
280  'vars' => array(),
281  'files' => array('about.php'),
282),
283array(
284  'name' => 'loc_begin_admin',
285  'type' => 'trigger_action',
286  'vars' => array(),
287  'files' => array('admin.php'),
288),
289array(
290  'name' => 'loc_begin_admin_page',
291  'type' => 'trigger_action',
292  'vars' => array(),
293  'files' => array('admin.php'),
294),
295array(
296  'name' => 'loc_begin_cat_list',
297  'type' => 'trigger_action',
298  'vars' => array(),
299  'files' => array('admin\cat_list.php'),
300),
301array(
302  'name' => 'loc_begin_cat_modify',
303  'type' => 'trigger_action',
304  'vars' => array(),
305  'files' => array('admin\cat_modify.php'),
306),
307array(
308  'name' => 'loc_begin_element_set_global',
309  'type' => 'trigger_action',
310  'vars' => array(),
311  'files' => array('admin\batch_manager_global.php'),
312),
313array(
314  'name' => 'loc_begin_element_set_unit',
315  'type' => 'trigger_action',
316  'vars' => array(),
317  'files' => array('admin\batch_manager_unit.php'),
318),
319array(
320  'name' => 'loc_begin_index',
321  'type' => 'trigger_action',
322  'vars' => array(),
323  'files' => array('index.php'),
324),
325array(
326  'name' => 'loc_begin_index_category_thumbnails',
327  'type' => 'trigger_action',
328  'vars' => array('array', 'categories'),
329  'files' => array('include\category_cats.inc.php'),
330),
331array(
332  'name' => 'loc_begin_index_thumbnails',
333  'type' => 'trigger_action',
334  'vars' => array('array', 'pictures'),
335  'files' => array('include\category_default.inc.php'),
336),
337array(
338  'name' => 'loc_begin_page_header',
339  'type' => 'trigger_action',
340  'vars' => array(),
341  'files' => array('include\page_header.php'),
342),
343array(
344  'name' => 'loc_begin_page_tail',
345  'type' => 'trigger_action',
346  'vars' => array(),
347  'files' => array('include\page_tail.php'),
348),
349array(
350  'name' => 'loc_begin_picture',
351  'type' => 'trigger_action',
352  'vars' => array(),
353  'files' => array('picture.php'),
354),
355array(
356  'name' => 'loc_begin_profile',
357  'type' => 'trigger_action',
358  'vars' => array(),
359  'files' => array('profile.php'),
360),
361array(
362  'name' => 'loc_begin_password',
363  'type' => 'trigger_action',
364  'vars' => array(),
365  'files' => array('password.php'),
366  'infos' => 'New in 2.5',
367),
368array(
369  'name' => 'loc_begin_register',
370  'type' => 'trigger_action',
371  'vars' => array(),
372  'files' => array('register.php'),
373  'infos' => 'New in 2.5',
374),
375array(
376  'name' => 'loc_begin_search',
377  'type' => 'trigger_action',
378  'vars' => array(),
379  'files' => array('search.php'),
380  'infos' => 'New in 2.5',
381),
382array(
383  'name' => 'loc_begin_tags',
384  'type' => 'trigger_action',
385  'vars' => array(),
386  'files' => array('tags.php'),
387  'infos' => 'New in 2.5',
388),
389array(
390  'name' => 'loc_begin_comments',
391  'type' => 'trigger_action',
392  'vars' => array(),
393  'files' => array('comments.php'),
394  'infos' => 'New in 2.5',
395),
396array(
397  'name' => 'loc_begin_identification',
398  'type' => 'trigger_action',
399  'vars' => array(),
400  'files' => array('identification.php'),
401  'infos' => 'New in 2.5',
402),
403array(
404  'name' => 'loc_begin_notification',
405  'type' => 'trigger_action',
406  'vars' => array(),
407  'files' => array('notification.php'),
408  'infos' => 'New in 2.5',
409),
410array(
411  'name' => 'loc_end_password',
412  'type' => 'trigger_action',
413  'vars' => array(),
414  'files' => array('password.php'),
415  'infos' => 'New in 2.5',
416),
417array(
418  'name' => 'loc_end_register',
419  'type' => 'trigger_action',
420  'vars' => array(),
421  'files' => array('register.php'),
422  'infos' => 'New in 2.5',
423),
424array(
425  'name' => 'loc_end_search',
426  'type' => 'trigger_action',
427  'vars' => array(),
428  'files' => array('search.php'),
429  'infos' => 'New in 2.5',
430),
431array(
432  'name' => 'loc_end_tags',
433  'type' => 'trigger_action',
434  'vars' => array(),
435  'files' => array('tags.php'),
436  'infos' => 'New in 2.5',
437),
438array(
439  'name' => 'loc_end_comments',
440  'type' => 'trigger_action',
441  'vars' => array(),
442  'files' => array('comments.php'),
443  'infos' => 'New in 2.5',
444),
445array(
446  'name' => 'loc_end_identification',
447  'type' => 'trigger_action',
448  'vars' => array(),
449  'files' => array('identification.php'),
450  'infos' => 'New in 2.5',
451),
452array(
453  'name' => 'loc_end_notification',
454  'type' => 'trigger_action',
455  'vars' => array(),
456  'files' => array('notification.php'),
457  'infos' => 'New in 2.5',
458),
459array(
460  'name' => 'loc_end_admin',
461  'type' => 'trigger_action',
462  'vars' => array(),
463  'files' => array('admin.php'),
464),
465array(
466  'name' => 'loc_end_cat_list',
467  'type' => 'trigger_action',
468  'vars' => array(),
469  'files' => array('admin\cat_list.php'),
470),
471array(
472  'name' => 'loc_end_cat_modify',
473  'type' => 'trigger_action',
474  'vars' => array(),
475  'files' => array('admin\cat_modify.php'),
476),
477array(
478  'name' => 'loc_end_element_set_global',
479  'type' => 'trigger_action',
480  'vars' => array(),
481  'files' => array('admin\batch_manager_global.php'),
482),
483array(
484  'name' => 'loc_end_element_set_unit',
485  'type' => 'trigger_action',
486  'vars' => array(),
487  'files' => array('admin\batch_manager_unit.php'),
488),
489array(
490  'name' => 'loc_end_index',
491  'type' => 'trigger_action',
492  'vars' => array(),
493  'files' => array('index.php'),
494),
495array(
496  'name' => 'loc_end_index_category_thumbnails',
497  'type' => 'trigger_event',
498  'vars' => array('array', 'tpl_thumbnails_var'),
499  'files' => array('include\category_cats.inc.php'),
500),
501array(
502  'name' => 'loc_end_index_thumbnails',
503  'type' => 'trigger_event',
504  'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'),
505  'files' => array('include\category_default.inc.php'),
506),
507array(
508  'name' => 'loc_end_page_header',
509  'type' => 'trigger_action',
510  'vars' => array(),
511  'files' => array('include\page_header.php'),
512),
513array(
514  'name' => 'loc_end_page_tail',
515  'type' => 'trigger_action',
516  'vars' => array(),
517  'files' => array('include\page_tail.php'),
518),
519array(
520  'name' => 'loc_end_picture',
521  'type' => 'trigger_action',
522  'vars' => array(),
523  'files' => array('picture.php'),
524),
525array(
526  'name' => 'loc_end_profile',
527  'type' => 'trigger_action',
528  'vars' => array(),
529  'files' => array('profile.php'),
530),
531array(
532  'name' => 'loc_end_section_init',
533  'type' => 'trigger_action',
534  'vars' => array(),
535  'files' => array('include\section_init.inc.php'),
536  'infos' => 'this action is called after section initilization, $page variable is fully defined',
537),
538array(
539  'name' => 'loc_visible_user_list',
540  'type' => 'trigger_event',
541  'vars' => array('array', 'visible_user_list'),
542  'files' => array('admin\user_list.php'),
543),
544array(
545  'name' => 'login_failure',
546  'type' => 'trigger_action',
547  'vars' => array('string', 'username'),
548  'files' => array('include\functions_user.inc.php (try_log_user)'),
549),
550array(
551  'name' => 'login_success',
552  'type' => 'trigger_action',
553  'vars' => array('string', 'username'),
554  'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'),
555),
556array(
557  'name' => 'mail_group_assign_vars',
558  'type' => 'trigger_event',
559  'vars' => array('array', 'assign_vars'),
560  'files' => array('include\functions_mail.inc.php (pwg_mail_group)'),
561),
562array(
563  'name' => 'nbm_event_handler_added',
564  'type' => 'trigger_action',
565  'vars' => array(),
566  'files' => array('admin\notification_by_mail.php'),
567),
568array(
569  'name' => 'nbm_render_global_customize_mail_content',
570  'type' => 'trigger_event',
571  'vars' => array('string', 'customize_mail_content'),
572  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
573),
574array(
575  'name' => 'nbm_render_user_customize_mail_content',
576  'type' => 'trigger_event',
577  'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'),
578  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
579),
580array(
581  'name' => 'perform_batch_manager_prefilters',
582  'type' => 'trigger_event',
583  'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'),
584  'files' => array('admin\batch_manager.php'),
585),
586array(
587  'name' => 'picture_pictures_data',
588  'type' => 'trigger_event',
589  'vars' => array('array', 'picture'),
590  'files' => array('picture.php'),
591),
592array(
593  'name' => 'plugins_loaded',
594  'type' => 'trigger_action',
595  'vars' => array(),
596  'files' => array('include\functions_plugins.inc.php (load_plugins)'),
597),
598array(
599  'name' => 'pwg_log_allowed',
600  'type' => 'trigger_event',
601  'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'),
602  'files' => array('include\functions.inc.php (pwg_log)'),
603),
604array(
605  'name' => 'register_user',
606  'type' => 'trigger_action',
607  'vars' => array('array', 'user'),
608  'files' => array('include\functions_user.inc.php (register_user)'),
609),
610array(
611  'name' => 'register_user_check',
612  'type' => 'trigger_event',
613  'vars' => array('array', 'errors', 'array', 'user'),
614  'files' => array('include\functions_user.inc.php (register_user)'),
615),
616array(
617  'name' => 'render_category_description',
618  'type' => 'trigger_event',
619  'vars' => array('string', 'category_description', 'string', 'action'),
620  'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'),
621),
622array(
623  'name' => 'render_category_literal_description',
624  'type' => 'trigger_event',
625  'vars' => array('string', 'category_description'),
626  'files' => array('include\category_cats.inc.php'),
627),
628array(
629  'name' => 'render_category_name',
630  'type' => 'trigger_event',
631  'vars' => array('string', 'category_name', 'string', 'location'),
632  'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'),
633),
634array(
635  'name' => 'render_comment_author',
636  'type' => 'trigger_event',
637  'vars' => array('string', 'comment_author'),
638  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
639),
640array(
641  'name' => 'render_comment_content',
642  'type' => 'trigger_event',
643  'vars' => array('string', 'comment_content'),
644  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
645),
646array(
647  'name' => 'render_element_content',
648  'type' => 'trigger_event',
649  'vars' => array('string', 'content', 'array', 'current_picture'),
650  'files' => array('picture.php'),
651),
652array(
653  'name' => 'render_element_name',
654  'type' => 'trigger_event',
655  'vars' => array('string', 'element_name'),
656  'files' => array('include\functions_html.inc.php (render_element_name)'),
657),
658array(
659  'name' => 'render_element_description',
660  'type' => 'trigger_event',
661  'vars' => array('string', 'element_secription'),
662  'files' => array('picture.php'),
663),
664array(
665  'name' => 'render_lost_password_mail_content',
666  'type' => 'trigger_event',
667  'vars' => array('string', 'message'),
668  'files' => array('password.php (process_password_request)'),
669),
670array(
671  'name' => 'render_page_banner',
672  'type' => 'trigger_event',
673  'vars' => array('string', 'gallery_title'),
674  'files' => array('include\page_header.php'),
675),
676array(
677  'name' => 'render_tag_name',
678  'type' => 'trigger_event',
679  'vars' => array('string', 'tag_name'),
680  'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'index.php'),
681),
682array(
683  'name' => 'render_tag_url',
684  'type' => 'trigger_event',
685  'vars' => array('string', 'tag_name'),
686  'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'),
687),
688array(
689  'name' => 'save_profile_from_post',
690  'type' => 'trigger_action',
691  'vars' => array('int', 'user_id'),
692  'files' => array('profile.php (save_profile_from_post)'),
693),
694array(
695  'name' => 'send_mail',
696  'type' => 'trigger_event',
697  'vars' => array('bool', 'result', 'string', 'mail_to', 'string', 'mail_subject', 'string', 'mail_content', 'array', 'mail_headers'),
698  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
699),
700array(
701  'name' => 'send_mail_content',
702  'type' => 'trigger_event',
703  'vars' => array('string', 'content'),
704  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
705),
706array(
707  'name' => 'send_mail_headers',
708  'type' => 'trigger_event',
709  'vars' => array('array', 'headers'),
710  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
711),
712array(
713  'name' => 'send_mail_subject',
714  'type' => 'trigger_event',
715  'vars' => array('string', 'cvt_subject'),
716  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
717),
718array(
719  'name' => 'send_mail_to',
720  'type' => 'trigger_event',
721  'vars' => array('string', 'to'),
722  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
723),
724array(
725  'name' => 'sendResponse',
726  'type' => 'trigger_action',
727  'vars' => array('string', 'encodedResponse'),
728  'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'),
729),
730array(
731  'name' => 'set_status_header',
732  'type' => 'trigger_action',
733  'vars' => array('int', 'code', 'string', 'text'),
734  'files' => array('include\functions_html.inc.php (set_status_header)'),
735),
736array(
737  'name' => 'tabsheet_before_select',
738  'type' => 'trigger_event',
739  'vars' => array('array', 'sheets', 'string', 'tabsheet_id'),
740  'files' => array('include\tabsheet.class.php (tabsheet::select)'),
741  'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets',
742),
743array(
744  'name' => 'trigger',
745  'type' => 'trigger_action',
746  'vars' => array('array', null),
747  'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'),
748),
749array(
750  'name' => 'user_comment_check',
751  'type' => 'trigger_event',
752  'vars' => array('string', 'comment_action', 'array', 'comm'),
753  'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'),
754  'infos' => 'use this trigger to add conditions on comment validation',
755),
756array(
757  'name' => 'user_comment_deletion',
758  'type' => 'trigger_action',
759  'vars' => array('mixed', 'comment_id'),
760  'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
761  'infos' => '$comment_id is and int or an array of int',
762),
763array(
764  'name' => 'user_comment_insertion',
765  'type' => 'trigger_action',
766  'vars' => array('array', 'comm'),
767  'files' => array('include\picture_comment.inc.php'),
768),
769array(
770  'name' => 'user_comment_validation',
771  'type' => 'trigger_action',
772  'vars' => array('mixed', 'comment_id'),
773  'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
774  'infos' => '$comment_id is and int or an array of int',
775),
776array(
777  'name' => 'user_init',
778  'type' => 'trigger_action',
779  'vars' => array('array', 'user'),
780  'files' => array('include\user.inc.php'),
781),
782array(
783  'name' => 'ws_add_methods',
784  'type' => 'trigger_action',
785  'vars' => array('object', 'this'),
786  'files' => array('include\ws_core.inc.php (PwgServer::run)'),
787),
788array(
789  'name' => 'ws_invoke_allowed',
790  'type' => 'trigger_event',
791  'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'),
792  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
793),
794);
795?>
796<!DOCTYPE html>
797<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
798<head>
799  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
800  <title>Piwigo Core Triggers</title>
801 
802  <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
803  <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css">
804  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
805  <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
806 
807  <style type="text/css">
808  /* BEGIN CSS RESET
809    http://meyerweb.com/eric/tools/css/reset
810    v2.0 | 20110126 | License: none (public domain) */
811  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
812  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,
813  fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
814  figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
815  {margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;}
816
817  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;}
818  body {line-height:1.1;}
819  blockquote, q {quotes:none;}
820  blockquote:before, blockquote:after, q:before, q:after {content:'';content:none;}
821  table {border-collapse:collapse;border-spacing:0;}
822  /* END CSS RESET */
823 
824  html {font-family:"Corbel","Lucida Grande","Verdana",sans-serif;color:#222;font-size:13px;}
825
826  a {color:#247EBF;text-decoration:none;}
827  a:hover {color:#EB9C39;border-bottom-width:1px;border-style:dotted;
828    text-shadow:1px 1px 0 #ddd;-moz-text-shadow:1px 1px 0 #ddd;-webkit-text-shadow:1px 1px 0 #ddd;
829  }
830
831  h1 {color:#fff;font-size:26px;padding:10px 15px;
832    text-shadow:1px 1px 0 #999;-moz-text-shadow:1px 1px 0 #999;-webkit-text-shadow:1px 1px 0 #999;
833    background:#45484d;background:-moz-linear-gradient(top, #45484d 0%, #333333 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#333333));background:-webkit-linear-gradient(top, #45484d 0%,#333333 100%);background:-o-linear-gradient(top, #45484d 0%,#333333 100%);background:-ms-linear-gradient(top, #45484d 0%,#333333 100%);background:linear-gradient(to bottom, #45484d 0%,#333333 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#333333',GradientType=0 );
834  }
835
836  #the_header {border-bottom:1px solid #cdcdcd;margin-bottom:1px;}
837  #the_footer {background:#EAEAEA;border-top:1px solid #cdcdcd;padding:10px;clear:both;}
838
839  #the_page {padding:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAH0lEQVQImSXHMQEAMAwCMOrfK0jIjuVL2gLBzyHJtgd7wBdU3Vt/7AAAAABJRU5ErkJggg==);}
840 
841  tfoot input {width:80%;}
842  tfoot .search_input {color:#999;}
843  tfoot select.search_input option:not(:first-child) {color:#222;}
844  </style>
845</head>
846
847<body>
848
849<div id="the_header">
850  <h1>Piwigo Core Triggers</h1>
851</div> <!-- the_header -->
852
853<div id="the_page">
854  <table id="list">
855  <thead>
856    <tr>
857      <th>Name</th>
858      <th>Type</th>
859      <th>Variables</th>
860      <th>Usage in the core</th>
861      <th>Commentary</th>
862    </tr>
863  </thead>
864  <tbody>
865
866  <?php 
867    foreach ($core as $trigger)
868    {
869      echo '
870    <tr>
871      <td>'.$trigger['name'].'</td>
872      <td>'.$trigger['type'].'</td>
873      <td>';
874      for ($i=0; $i<count($trigger['vars']); $i+=2)
875      {
876        if ($i>0) echo ', ';
877        echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null);
878      }
879      echo '
880      </td>
881      <td>';
882      $f=1;
883      foreach ($trigger['files'] as $file)
884      {
885        if (!$f) echo '<br>'; $f=0;
886        echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file);
887      }
888      echo '
889      </td>
890      <td>'.@$trigger['infos'].'</td>
891    </tr>';
892    }
893  ?>
894
895  </tbody>
896  <tfoot>
897    <tr>
898      <td><input type="text" value="Name" class="search_input"></td>
899      <td>
900        <select class="search_input">
901          <option value="">Type</option>
902          <option value="trigger_action">trigger_action</option>
903          <option value="trigger_event">trigger_event</option>
904        </select>
905      </td>
906      <td><input type="text" value="Variables" class="search_input"></td>
907      <td><input type="text" value="Usage" class="search_input"></td>
908      <td><input type="text" value="Commentary" class="search_input"></td>
909    </tr>
910  </tfoot>
911  </table>
912</div> <!-- the_page -->
913
914<div id="the_footer">
915  Copyright &copy; 2002-2013 <a href="http://piwigo.org">Piwigo Team</a>
916</div> <!-- the_footer -->
917
918 
919<script type="text/javascript">
920var oTable = $('#list').dataTable({
921  "bJQueryUI": true,
922  "aaSorting": [ [0,'asc'] ],
923  "sPaginationType": "full_numbers",
924  "aLengthMenu": [[10, 30, 50, 70, 90, -1], [10, 30, 50, 70, 90, "All"]],
925  "iDisplayLength": 30,
926  "oLanguage": {
927      "sSearch": "Search all columns :"
928  }
929});
930
931// search input
932$("tfoot td").each(function (i) {
933  $('select', this).change(function () {
934    oTable.fnFilter($(this).val(), i);
935  });
936  $('input', this).keyup(function () {
937    oTable.fnFilter($(this).val(), i);
938  });
939});
940
941// search helpers
942var asInitVals = new Array();
943$("tfoot input").each(function (i) {
944  asInitVals[i] = $(this).val();
945});
946 
947$("tfoot input").focus(function () {
948  if (this.className == "search_input") {
949    $(this).removeClass("search_input");
950    $(this).val("");
951  }
952});
953 
954$("tfoot input").blur(function (i) {
955  if ($(this).val() == "") {
956    $(this).addClass("search_input");
957    $(this).val(asInitVals[$("tfoot input").index(this)]);
958  }
959});
960
961$("tfoot select").change(function () {
962  if ($(this).val() == "") {
963    $(this).addClass("search_input");
964  }
965  else {
966    $(this).removeClass("search_input");
967  }
968});
969</script>
970
971</body>
972</html>
Note: See TracBrowser for help on using the repository browser.