source: trunk/tools/triggers_list.php @ 29598

Last change on this file since 29598 was 29598, checked in by mistic100, 10 years ago

featur 3130: change batch_manager_register_filters to trigger_change

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