source: trunk/tools/triggers_list.php @ 28166

Last change on this file since 28166 was 28166, checked in by flop25, 10 years ago

loc_end_no_photo_yet & loc_end_help added

File size: 31.5 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', 'Combinable', '$combinable'),
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' => '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),
241array(
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),
248array(
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),
254array(
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),
261array(
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),
267array(
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),
273array(
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),
279array(
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),
285array(
286  'name' => 'loc_after_page_header',
287  'type' => 'trigger_action',
288  'vars' => array(),
289  'files' => array('include\page_header.php'),
290),
291array(
292  'name' => 'loc_begin_about',
293  'type' => 'trigger_action',
294  'vars' => array(),
295  'files' => array('about.php'),
296),
297array(
298  'name' => 'loc_begin_admin',
299  'type' => 'trigger_action',
300  'vars' => array(),
301  'files' => array('admin.php'),
302),
303array(
304  'name' => 'loc_begin_admin_page',
305  'type' => 'trigger_action',
306  'vars' => array(),
307  'files' => array('admin.php'),
308),
309array(
310  'name' => 'loc_begin_cat_list',
311  'type' => 'trigger_action',
312  'vars' => array(),
313  'files' => array('admin\cat_list.php'),
314),
315array(
316  'name' => 'loc_begin_cat_modify',
317  'type' => 'trigger_action',
318  'vars' => array(),
319  'files' => array('admin\cat_modify.php'),
320),
321array(
322  'name' => 'loc_begin_element_set_global',
323  'type' => 'trigger_action',
324  'vars' => array(),
325  'files' => array('admin\batch_manager_global.php'),
326),
327array(
328  'name' => 'loc_begin_element_set_unit',
329  'type' => 'trigger_action',
330  'vars' => array(),
331  'files' => array('admin\batch_manager_unit.php'),
332),
333array(
334  'name' => 'loc_begin_index',
335  'type' => 'trigger_action',
336  'vars' => array(),
337  'files' => array('index.php'),
338),
339array(
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),
345array(
346  'name' => 'loc_begin_index_thumbnails',
347  'type' => 'trigger_action',
348  'vars' => array('array', 'pictures'),
349  'files' => array('include\category_default.inc.php'),
350),
351array(
352  'name' => 'loc_begin_page_header',
353  'type' => 'trigger_action',
354  'vars' => array(),
355  'files' => array('include\page_header.php'),
356),
357array(
358  'name' => 'loc_begin_page_tail',
359  'type' => 'trigger_action',
360  'vars' => array(),
361  'files' => array('include\page_tail.php'),
362),
363array(
364  'name' => 'loc_begin_picture',
365  'type' => 'trigger_action',
366  'vars' => array(),
367  'files' => array('picture.php'),
368),
369array(
370  'name' => 'loc_begin_profile',
371  'type' => 'trigger_action',
372  'vars' => array(),
373  'files' => array('profile.php'),
374),
375array(
376  'name' => 'loc_begin_password',
377  'type' => 'trigger_action',
378  'vars' => array(),
379  'files' => array('password.php'),
380  'infos' => 'New in 2.5',
381),
382array(
383  'name' => 'loc_begin_register',
384  'type' => 'trigger_action',
385  'vars' => array(),
386  'files' => array('register.php'),
387  'infos' => 'New in 2.5',
388),
389array(
390  'name' => 'loc_begin_search',
391  'type' => 'trigger_action',
392  'vars' => array(),
393  'files' => array('search.php'),
394  'infos' => 'New in 2.5',
395),
396array(
397  'name' => 'loc_begin_tags',
398  'type' => 'trigger_action',
399  'vars' => array(),
400  'files' => array('tags.php'),
401  'infos' => 'New in 2.5',
402),
403array(
404  'name' => 'loc_begin_comments',
405  'type' => 'trigger_action',
406  'vars' => array(),
407  'files' => array('comments.php'),
408  'infos' => 'New in 2.5',
409),
410array(
411  'name' => 'loc_begin_identification',
412  'type' => 'trigger_action',
413  'vars' => array(),
414  'files' => array('identification.php'),
415  'infos' => 'New in 2.5',
416),
417array(
418  'name' => 'loc_begin_notification',
419  'type' => 'trigger_action',
420  'vars' => array(),
421  'files' => array('notification.php'),
422  'infos' => 'New in 2.5',
423),
424array(
425  'name' => 'loc_end_password',
426  'type' => 'trigger_action',
427  'vars' => array(),
428  'files' => array('password.php'),
429  'infos' => 'New in 2.5',
430),
431array(
432  'name' => 'loc_end_register',
433  'type' => 'trigger_action',
434  'vars' => array(),
435  'files' => array('register.php'),
436  'infos' => 'New in 2.5',
437),
438array(
439  'name' => 'loc_end_search',
440  'type' => 'trigger_action',
441  'vars' => array(),
442  'files' => array('search.php'),
443  'infos' => 'New in 2.5',
444),
445array(
446  'name' => 'loc_end_tags',
447  'type' => 'trigger_action',
448  'vars' => array(),
449  'files' => array('tags.php'),
450  'infos' => 'New in 2.5',
451),
452array(
453  'name' => 'loc_end_comments',
454  'type' => 'trigger_action',
455  'vars' => array(),
456  'files' => array('comments.php'),
457  'infos' => 'New in 2.5',
458),
459array(
460  'name' => 'loc_end_identification',
461  'type' => 'trigger_action',
462  'vars' => array(),
463  'files' => array('identification.php'),
464  'infos' => 'New in 2.5',
465),
466array(
467  'name' => 'loc_end_notification',
468  'type' => 'trigger_action',
469  'vars' => array(),
470  'files' => array('notification.php'),
471  'infos' => 'New in 2.5',
472),
473array(
474  'name' => 'loc_end_admin',
475  'type' => 'trigger_action',
476  'vars' => array(),
477  'files' => array('admin.php'),
478),
479array(
480  'name' => 'loc_end_cat_list',
481  'type' => 'trigger_action',
482  'vars' => array(),
483  'files' => array('admin\cat_list.php'),
484),
485array(
486  'name' => 'loc_end_cat_modify',
487  'type' => 'trigger_action',
488  'vars' => array(),
489  'files' => array('admin\cat_modify.php'),
490),
491array(
492  'name' => 'loc_end_element_set_global',
493  'type' => 'trigger_action',
494  'vars' => array(),
495  'files' => array('admin\batch_manager_global.php'),
496),
497array(
498  'name' => 'loc_end_element_set_unit',
499  'type' => 'trigger_action',
500  'vars' => array(),
501  'files' => array('admin\batch_manager_unit.php'),
502),
503array(
504  'name' => 'loc_end_help',
505  'type' => 'trigger_action',
506  'vars' => array(),
507  'files' => array('admin\help.php'),
508),
509array(
510  'name' => 'loc_end_index',
511  'type' => 'trigger_action',
512  'vars' => array(),
513  'files' => array('index.php'),
514),
515array(
516  'name' => 'loc_end_index_category_thumbnails',
517  'type' => 'trigger_event',
518  'vars' => array('array', 'tpl_thumbnails_var'),
519  'files' => array('include\category_cats.inc.php'),
520),
521array(
522  'name' => 'loc_end_index_thumbnails',
523  'type' => 'trigger_event',
524  'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'),
525  'files' => array('include\category_default.inc.php'),
526),
527array(
528  'name' => 'loc_end_no_photo_yet',
529  'type' => 'trigger_action',
530  'vars' => array(),
531  'files' => array('include\no_photo_yet.inc.php'),
532),
533array(
534  'name' => 'loc_end_page_header',
535  'type' => 'trigger_action',
536  'vars' => array(),
537  'files' => array('include\page_header.php'),
538),
539array(
540  'name' => 'loc_end_page_tail',
541  'type' => 'trigger_action',
542  'vars' => array(),
543  'files' => array('include\page_tail.php'),
544),
545array(
546  'name' => 'loc_end_picture',
547  'type' => 'trigger_action',
548  'vars' => array(),
549  'files' => array('picture.php'),
550),
551array(
552  'name' => 'loc_end_picture_modify',
553  'type' => 'trigger_action',
554  'vars' => array(),
555  'files' => array('admin\picture_modify.php'),
556  'infos' => 'New in 2.6.3',
557),
558array(
559  'name' => 'loc_end_profile',
560  'type' => 'trigger_action',
561  'vars' => array(),
562  'files' => array('profile.php'),
563),
564array(
565  'name' => 'loc_end_section_init',
566  'type' => 'trigger_action',
567  'vars' => array(),
568  'files' => array('include\section_init.inc.php'),
569  'infos' => 'this action is called after section initilization, $page variable is fully defined',
570),
571array(
572  'name' => 'loc_end_themes_installed',
573  'type' => 'trigger_action',
574  'vars' => array(),
575  'files' => array('admin\themes_installed.php'),
576  'infos' => 'New in 2.6.3',
577),
578array(
579  'name' => 'loc_visible_user_list',
580  'type' => 'trigger_event',
581  'vars' => array('array', 'visible_user_list'),
582  'files' => array('admin\user_list.php'),
583),
584array(
585  'name' => 'login_failure',
586  'type' => 'trigger_action',
587  'vars' => array('string', 'username'),
588  'files' => array('include\functions_user.inc.php (try_log_user)'),
589),
590array(
591  'name' => 'login_success',
592  'type' => 'trigger_action',
593  'vars' => array('string', 'username'),
594  'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'),
595),
596array(
597  'name' => 'nbm_event_handler_added',
598  'type' => 'trigger_action',
599  'vars' => array(),
600  'files' => array('admin\notification_by_mail.php'),
601),
602array(
603  'name' => 'nbm_render_global_customize_mail_content',
604  'type' => 'trigger_event',
605  'vars' => array('string', 'customize_mail_content'),
606  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
607),
608array(
609  'name' => 'nbm_render_user_customize_mail_content',
610  'type' => 'trigger_event',
611  'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'),
612  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
613),
614array(
615  'name' => 'perform_batch_manager_prefilters',
616  'type' => 'trigger_event',
617  'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'),
618  'files' => array('admin\batch_manager.php'),
619),
620array(
621  'name' => 'picture_pictures_data',
622  'type' => 'trigger_event',
623  'vars' => array('array', 'picture'),
624  'files' => array('picture.php'),
625),
626array(
627  'name' => 'plugins_loaded',
628  'type' => 'trigger_action',
629  'vars' => array(),
630  'files' => array('include\functions_plugins.inc.php (load_plugins)'),
631),
632array(
633  'name' => 'pwg_log_allowed',
634  'type' => 'trigger_event',
635  'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'),
636  'files' => array('include\functions.inc.php (pwg_log)'),
637),
638array(
639  'name' => 'register_user',
640  'type' => 'trigger_action',
641  'vars' => array('array', 'user'),
642  'files' => array('include\functions_user.inc.php (register_user)'),
643),
644array(
645  'name' => 'register_user_check',
646  'type' => 'trigger_event',
647  'vars' => array('array', 'errors', 'array', 'user'),
648  'files' => array('include\functions_user.inc.php (register_user)'),
649),
650array(
651  'name' => 'render_category_description',
652  'type' => 'trigger_event',
653  'vars' => array('string', 'category_description', 'string', 'action'),
654  'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'),
655),
656array(
657  'name' => 'render_category_literal_description',
658  'type' => 'trigger_event',
659  'vars' => array('string', 'category_description'),
660  'files' => array('include\category_cats.inc.php'),
661),
662array(
663  'name' => 'render_category_name',
664  'type' => 'trigger_event',
665  'vars' => array('string', 'category_name', 'string', 'location'),
666  'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'),
667),
668array(
669  'name' => 'render_comment_author',
670  'type' => 'trigger_event',
671  'vars' => array('string', 'comment_author'),
672  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
673),
674array(
675  'name' => 'render_comment_content',
676  'type' => 'trigger_event',
677  'vars' => array('string', 'comment_content'),
678  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
679),
680array(
681  'name' => 'render_element_content',
682  'type' => 'trigger_event',
683  'vars' => array('string', 'content', 'array', 'current_picture'),
684  'files' => array('picture.php'),
685),
686array(
687  'name' => 'render_element_name',
688  'type' => 'trigger_event',
689  'vars' => array('string', 'element_name'),
690  'files' => array('include\functions_html.inc.php (render_element_name)'),
691),
692array(
693  'name' => 'render_element_description',
694  'type' => 'trigger_event',
695  'vars' => array('string', 'element_description', 'string', 'action'),
696  'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'),
697),
698array(
699  'name' => 'render_lost_password_mail_content',
700  'type' => 'trigger_event',
701  'vars' => array('string', 'message'),
702  'files' => array('password.php (process_password_request)'),
703),
704array(
705  'name' => 'render_page_banner',
706  'type' => 'trigger_event',
707  'vars' => array('string', 'gallery_title'),
708  'files' => array('include\page_header.php'),
709),
710array(
711  'name' => 'render_tag_name',
712  'type' => 'trigger_event',
713  'vars' => array('string', 'tag_name', 'array', 'tag'),
714  '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)'),
715),
716array(
717  'name' => 'render_tag_url',
718  'type' => 'trigger_event',
719  'vars' => array('string', 'tag_name'),
720  'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'),
721),
722array(
723  'name' => 'save_profile_from_post',
724  'type' => 'trigger_action',
725  'vars' => array('int', 'user_id'),
726  'files' => array('profile.php (save_profile_from_post)'),
727),
728array(
729  'name' => 'before_send_mail',
730  'type' => 'trigger_event',
731  'vars' => array('bool', 'result', 'mixed', 'to', 'array', 'arguments', 'PHPMailer', 'mail'),
732  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
733),
734array(
735  'name' => 'before_parse_mail_template',
736  'type' => 'trigger_action',
737  'vars' => array('string', 'cache_key', 'string', 'content_type'),
738  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
739),
740array(
741  'name' => 'sendResponse',
742  'type' => 'trigger_action',
743  'vars' => array('string', 'encodedResponse'),
744  'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'),
745),
746array(
747  'name' => 'set_status_header',
748  'type' => 'trigger_action',
749  'vars' => array('int', 'code', 'string', 'text'),
750  'files' => array('include\functions_html.inc.php (set_status_header)'),
751),
752array(
753  'name' => 'tabsheet_before_select',
754  'type' => 'trigger_event',
755  'vars' => array('array', 'sheets', 'string', 'tabsheet_id'),
756  'files' => array('include\tabsheet.class.php (tabsheet::select)'),
757  'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets',
758),
759array(
760  'name' => 'trigger',
761  'type' => 'trigger_action',
762  'vars' => array('array', null),
763  'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'),
764),
765array(
766  'name' => 'user_comment_check',
767  'type' => 'trigger_event',
768  'vars' => array('string', 'comment_action', 'array', 'comm'),
769  'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'),
770  'infos' => 'use this trigger to add conditions on comment validation',
771),
772array(
773  'name' => 'user_comment_deletion',
774  'type' => 'trigger_action',
775  'vars' => array('mixed', 'comment_id'),
776  'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
777  'infos' => '$comment_id is and int or an array of int',
778),
779array(
780  'name' => 'user_comment_insertion',
781  'type' => 'trigger_action',
782  'vars' => array('array', 'comm'),
783  'files' => array('include\picture_comment.inc.php'),
784),
785array(
786  'name' => 'user_comment_validation',
787  'type' => 'trigger_action',
788  'vars' => array('mixed', 'comment_id'),
789  'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
790  'infos' => '$comment_id is and int or an array of int',
791),
792array(
793  'name' => 'user_init',
794  'type' => 'trigger_action',
795  'vars' => array('array', 'user'),
796  'files' => array('include\user.inc.php'),
797),
798array(
799  'name' => 'ws_add_methods',
800  'type' => 'trigger_action',
801  'vars' => array('object', 'this'),
802  'files' => array('include\ws_core.inc.php (PwgServer::run)'),
803),
804array(
805  'name' => 'ws_invoke_allowed',
806  'type' => 'trigger_event',
807  'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'),
808  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
809),
810array(
811  'name' => 'user_logout',
812  'type' => 'trigger_action',
813  'vars' => array('int', 'user_id'),
814  'files' => array('include\functions_user.inc.php (logout_user)'),
815  'infos' => 'New in 2.5',
816),
817array(
818  'name' => 'user_login',
819  'type' => 'trigger_action',
820  'vars' => array('int', 'user_id'),
821  'files' => array('include\functions_user.inc.php (log_user)'),
822  'infos' => 'New in 2.5',
823),
824array(
825  'name' => 'try_log_user',
826  'type' => 'trigger_event',
827  'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'),
828  'files' => array('include\functions_user.inc.php (try_log_user)'),
829  '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.',
830),
831array(
832  'name' => 'combinable_preparse',
833  'type' => 'trigger_action',
834  'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'),
835  'files' => array('include\template.class.php (FileCombiner::process_combinable)'),
836  'infos' => 'New in 2.6.',
837),
838array(
839  'name' => 'user_list_columns',
840  'type' => 'trigger_event',
841  'vars' => array('string[]', 'aColumns'),
842  'files' => array('admin\user_list_backend.php'),
843  'infos' => 'New in 2.6.',
844),
845array(
846  'name' => 'after_render_user_list',
847  'type' => 'trigger_event',
848  'vars' => array('array', 'output'),
849  'files' => array('admin\user_list_backend.php'),
850  'infos' => 'New in 2.6.',
851),
852array(
853  'name' => 'update_rating_score',
854  'type' => 'trigger_event',
855  'vars' => array('boolean', 'done', 'int', 'element_id'),
856  'files' => array('include\functions_rate.inc.php'),
857  'infos' => 'New in 2.6.',
858),
859array(
860  'name' => 'picture_modify_before_update',
861  'type' => 'trigger_event',
862  'vars' => array('array', 'data'),
863  'files' => array('admin\picture_modify.php'),
864  'infos' => 'New in 2.6.2.',
865),
866array(
867  'name' => 'ws_users_getList',
868  'type' => 'trigger_event',
869  'vars' => array('array', 'users'),
870  'files' => array('include\ws_functions\pwg.users.php'),
871  'infos' => 'New in 2.6.2.',
872),
873);
874?>
875<!DOCTYPE html>
876<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
877<head>
878  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
879  <title>Piwigo Core Triggers</title>
880 
881  <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
882  <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css">
883 
884  <style type="text/css">
885  /* BEGIN CSS RESET
886    http://meyerweb.com/eric/tools/css/reset
887    v2.0 | 20110126 | License: none (public domain) */
888  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
889  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,
890  fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
891  figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
892  {margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;}
893
894  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;}
895  body {line-height:1.1;}
896  blockquote, q {quotes:none;}
897  blockquote:before, blockquote:after, q:before, q:after {content:'';content:none;}
898  table {border-collapse:collapse;border-spacing:0;}
899  /* END CSS RESET */
900 
901  html {font-family:"Corbel","Lucida Grande","Verdana",sans-serif;color:#222;font-size:13px;}
902
903  a {color:#247EBF;text-decoration:none;}
904  a:hover {color:#EB9C39;border-bottom-width:1px;border-style:dotted;text-shadow:1px 1px 0 #ddd;}
905
906  h1 {color:#fff;font-size:26px;padding:10px 15px;text-shadow:1px 1px 0 #999;
907    background:#45484d;background:linear-gradient(to bottom, #45484d 0%,#333333 100%);
908  }
909
910  #the_header {border-bottom:1px solid #cdcdcd;margin-bottom:1px;}
911  #the_footer {background:#EAEAEA;border-top:1px solid #cdcdcd;padding:10px;clear:both;}
912
913  #the_page {padding:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAH0lEQVQImSXHMQEAMAwCMOrfK0jIjuVL2gLBzyHJtgd7wBdU3Vt/7AAAAABJRU5ErkJggg==);}
914 
915  tfoot input {width:80%;}
916  tfoot .search_input {color:#999;}
917  tfoot select.search_input option:not(:first-child) {color:#222;}
918  </style>
919</head>
920
921<body>
922
923<div id="the_header">
924  <h1>Piwigo Core Triggers</h1>
925</div> <!-- the_header -->
926
927<div id="the_page">
928  <table id="list">
929  <thead>
930    <tr>
931      <th>Name</th>
932      <th>Type</th>
933      <th>Variables</th>
934      <th>Usage in the core</th>
935      <th>Commentary</th>
936    </tr>
937  </thead>
938  <tbody>
939
940  <?php 
941    foreach ($core as $trigger)
942    {
943      echo '
944    <tr>
945      <td>'.$trigger['name'].'</td>
946      <td>'.$trigger['type'].'</td>
947      <td>';
948      for ($i=0; $i<count($trigger['vars']); $i+=2)
949      {
950        if ($i>0) echo ', ';
951        echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null);
952      }
953      echo '
954      </td>
955      <td>';
956      $f=1;
957      foreach ($trigger['files'] as $file)
958      {
959        if (!$f) echo '<br>'; $f=0;
960        echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file);
961      }
962      echo '
963      </td>
964      <td>'.@$trigger['infos'].'</td>
965    </tr>';
966    }
967  ?>
968
969  </tbody>
970  <tfoot>
971    <tr>
972      <td><input type="text" value="Name" class="search_input"></td>
973      <td>
974        <select class="search_input">
975          <option value="">Type</option>
976          <option value="trigger_action">trigger_action</option>
977          <option value="trigger_event">trigger_event</option>
978        </select>
979      </td>
980      <td><input type="text" value="Variables" class="search_input"></td>
981      <td><input type="text" value="Usage" class="search_input"></td>
982      <td><input type="text" value="Commentary" class="search_input"></td>
983    </tr>
984  </tfoot>
985  </table>
986</div> <!-- the_page -->
987
988<div id="the_footer">
989  Copyright &copy; 2002-2013 <a href="http://piwigo.org">Piwigo Team</a>
990</div> <!-- the_footer -->
991
992
993<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
994<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
995 
996<script type="text/javascript">
997var oTable = $('#list').dataTable({
998  "bJQueryUI": true,
999  "aaSorting": [ [0,'asc'] ],
1000  "sPaginationType": "full_numbers",
1001  "aLengthMenu": [[10, 30, 50, 70, 90, -1], [10, 30, 50, 70, 90, "All"]],
1002  "iDisplayLength": 30,
1003  "oLanguage": {
1004      "sSearch": "Search all columns :"
1005  }
1006});
1007
1008// search input
1009$("tfoot td").each(function (i) {
1010  $('select', this).change(function () {
1011    oTable.fnFilter($(this).val(), i);
1012  });
1013  $('input', this).keyup(function () {
1014    oTable.fnFilter($(this).val(), i);
1015  });
1016});
1017
1018// search helpers
1019var asInitVals = new Array();
1020$("tfoot input").each(function (i) {
1021  asInitVals[i] = $(this).val();
1022});
1023 
1024$("tfoot input").focus(function () {
1025  if (this.className == "search_input") {
1026    $(this).removeClass("search_input");
1027    $(this).val("");
1028  }
1029});
1030 
1031$("tfoot input").blur(function (i) {
1032  if ($(this).val() == "") {
1033    $(this).addClass("search_input");
1034    $(this).val(asInitVals[$("tfoot input").index(this)]);
1035  }
1036});
1037
1038$("tfoot select").change(function () {
1039  if ($(this).val() == "") {
1040    $(this).addClass("search_input");
1041  }
1042  else {
1043    $(this).removeClass("search_input");
1044  }
1045});
1046</script>
1047
1048</body>
1049</html>
Note: See TracBrowser for help on using the repository browser.