source: trunk/tools/triggers_list.php @ 15536

Last change on this file since 15536 was 15536, checked in by mistic100, 12 years ago

update triggers_list.php for 2.4 derivatives

File size: 24.1 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based photo gallery                                    |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
8// +-----------------------------------------------------------------------+
9// | This program is free software; you can redistribute it and/or modify  |
10// | it under the terms of the GNU General Public License as published by  |
11// | the Free Software Foundation                                          |
12// |                                                                       |
13// | This program is distributed in the hope that it will be useful, but   |
14// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
15// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
16// | General Public License for more details.                              |
17// |                                                                       |
18// | You should have received a copy of the GNU General Public License     |
19// | along with this program; if not, write to the Free Software           |
20// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
21// | USA.                                                                  |
22// +-----------------------------------------------------------------------+
23
24$core = array(
25array(
26  'name' => 'allow_increment_element_hit_count',
27  'type' => 'trigger_event',
28  'vars' => array('bool' => 'content_not_set'),
29  'files' => array('picture.php'),
30),
31array(
32  'name' => 'begin_delete_elements',
33  'type' => 'trigger_action',
34  'vars' => array('array' => 'ids'),
35  'files' => array('admin\include\functions.inc.php (delete_elements)'),
36),
37array(
38  'name' => 'blockmanager_apply',
39  'type' => 'trigger_action',
40  'vars' => array('object' => 'menublock'),
41  'files' => array('include\block.class.php (BlockManager::apply)'),
42  'infos' => 'use this trigger to modify existing menu blocks',
43),
44array(
45  'name' => 'blockmanager_prepare_display',
46  'type' => 'trigger_action',
47  'vars' => array('object' => 'this'),
48  'files' => array('include\block.class.php (BlockManager::prepare_display)'),
49),
50array(
51  'name' => 'blockmanager_register_blocks',
52  'type' => 'trigger_action',
53  'vars' => array('object' => 'menu'),
54  'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'),
55  'infos' => 'use this trigger to add menu block',
56),
57array(
58  'name' => 'clean_iptc_value',
59  'type' => 'trigger_event',
60  'vars' => array('string' => 'value'),
61  'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'),
62),
63array(
64  'name' => 'combined_css',
65  'type' => 'trigger_event',
66  'vars' => array('string' => 'href', 'int' => 'file_ver0', 'int' => 'file_ver1'),
67  'files' => array('include\template.class.php (Template::flush)'),
68),
69array(
70  'name' => 'combined_css_postfilter',
71  'type' => 'trigger_event',
72  'vars' => array('string' => 'css'),
73  'files' => array('include\template.class.php (Template::process_css)'),
74),
75array(
76  'name' => 'combined_script',
77  'type' => 'trigger_event',
78  'vars' => array('string' => 'ret', 'string' => 'script'),
79  'files' => array('include\template.class.php (Template::make_script_src)'),
80),
81array(
82  'name' => 'delete_categories',
83  'type' => 'trigger_action',
84  'vars' => array('array' => 'ids'),
85  'files' => array('admin\include\functions.inc.php (delete_categories)'),
86),
87array(
88  'name' => 'delete_elements',
89  'type' => 'trigger_action',
90  'vars' => array('array' => 'ids'),
91  'files' => array('admin\include\functions.inc.php (delete_elements)'),
92),
93array(
94  'name' => 'delete_user',
95  'type' => 'trigger_action',
96  'vars' => array('int' => 'user_id'),
97  'files' => array('admin\include\functions.inc.php (delete_user)'),
98),
99array(
100  'name' => 'element_set_global_action',
101  'type' => 'trigger_action',
102  'vars' => array('string' => 'action', 'array' => 'collection'),
103  'files' => array('admin\batch_manager_global.php'),
104),
105array(
106  'name' => 'format_exif_data',
107  'type' => 'trigger_event',
108  'vars' => array('array' => 'exif', 'string' => 'filename', 'array' => 'map'),
109  'files' => array('include\functions_metadata.inc.php (get_exif_data)'),
110),
111array(
112  'name' => 'functions_history_included',
113  'type' => 'trigger_action',
114  'vars' => array(),
115  'files' => array('admin\include\functions_history.inc.php'),
116),
117array(
118  'name' => 'functions_mail_included',
119  'type' => 'trigger_action',
120  'vars' => array(),
121  'files' => array('include\functions_mail.inc.php'),
122),
123array(
124  'name' => 'get_admin_advanced_features_links',
125  'type' => 'trigger_event',
126  'vars' => array('array' => 'advanced_features'),
127  'files' => array('admin\maintenance.php'),
128),
129array(
130  'name' => 'get_admin_plugin_menu_links',
131  'type' => 'trigger_event',
132  'vars' => array('array' => ''),
133  'files' => array('admin.php'),
134  'infos' => 'use this trigger to add links into admin plugins menu',
135),
136array(
137  'name' => 'get_admins_site_links',
138  'type' => 'trigger_event',
139  'vars' => array('array' => 'plugin_links', 'int' => 'site_id', 'bool' => 'is_remote'),
140  'files' => array('admin\site_manager.php'),
141),
142array(
143  'name' => 'get_batch_manager_prefilters',
144  'type' => 'trigger_event',
145  'vars' => array('array' => 'prefilters'),
146  'files' => array('admin\batch_manager_global.php'),
147  'infos' => 'use this trigger to add prefilters into batch manager global',
148),
149array(
150  'name' => 'get_categories_menu_sql_where',
151  'type' => 'trigger_event',
152  'vars' => array('string' => 'where', 'bool' => 'user_expand', 'bool' => 'filter_enabled'),
153  'files' => array('include\functions_category.inc.php (get_categories_menu)'),
154),
155array(
156  'name' => 'get_category_preferred_image_orders',
157  'type' => 'trigger_event',
158  'vars' => array('array' => ''),
159  'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'),
160),
161array(
162  'name' => 'get_download_url',
163  'type' => 'trigger_event',
164  'vars' => array('string' => 'url', 'array' => 'element_info'),
165  'files' => array('include\functions_picture.inc.php (get_download_url'),
166),
167array(
168  'name' => 'get_element_metadata_available',
169  'type' => 'trigger_event',
170  'vars' => array('bool' => '', 'string' => 'element_path'),
171  'files' => array('picture.php'),
172),
173array(
174  'name' => 'get_element_url',
175  'type' => 'trigger_event',
176  'vars' => array('string' => 'url', 'array' => 'element_info'),
177  'files' => array('include\functions_picture.inc.php (get_element_url)'),
178),
179array(
180  'name' => 'get_high_location',
181  'type' => 'trigger_event',
182  'vars' => array('string' => 'location', 'array' => 'element_info'),
183  'files' => array('include\functions_picture.inc.php (get_high_location)'),
184),
185array(
186  'name' => 'get_high_url',
187  'type' => 'trigger_event',
188  'vars' => array('string' => 'url', 'array' => 'element_info'),
189  'files' => array('include\functions_picture.inc.php (get_high_url)'),
190),
191array(
192  'name' => 'get_history',
193  'type' => 'trigger_event',
194  'vars' => array('array' => '', 'array' => 'page_search', 'array' => 'types'),
195  'files' => array('admin\history.php'),
196),
197array(
198  'name' => 'get_image_location',
199  'type' => 'trigger_event',
200  'vars' => array('string' => 'path', 'array' => 'element_info'),
201  'files' => array('include\functions_picture.inc.php (get_image_location)'),
202),
203array(
204  'name' => 'get_popup_help_content',
205  'type' => 'trigger_event',
206  'vars' => array('string' => 'help_content', 'string' => 'page'),
207  'files' => array('admin\popuphelp.php', 'popuphelp.php'),
208),
209array(
210  'name' => 'get_pwg_themes',
211  'type' => 'trigger_event',
212  'vars' => array('array' => 'themes'),
213  'files' => array('include\functions.inc.php (get_pwg_themes)'),
214),
215array(
216  'name' => 'get_thumbnail_title',
217  'type' => 'trigger_event',
218  'vars' => array('string' => 'title', 'array' => 'info'),
219  'files' => array('include\functions.inc.php (get_thumbnail_title)'),
220),
221array(
222  'name' => 'get_comments_derivative_params',
223  'type' => 'trigger_event',
224  'vars' => array('ImageStdParams' => null),
225  'files' => array('comments.php'),
226  'infos' => 'New in 2.4',
227),
228array(
229  'name' => 'get_index_album_derivative_params',
230  'type' => 'trigger_event',
231  'vars' => array('ImageStdParams' => null),
232  'files' => array('includecategory_cats.php', 'include\category_default.inc.php'),
233  'infos' => 'New in 2.4',
234),
235array(
236  'name' => 'get_src_image_url',
237  'type' => 'trigger_event',
238  'vars' => array('string' => 'url', 'SrcImage' => 'this'),
239  'files' => array('include\derivative.inc.php (SrcImage::__construct)'),
240  'infos' => 'New in 2.4',
241),
242array(
243  'name' => 'get_derivative_url',
244  'type' => 'trigger_event',
245  'vars' => array('string' => 'url', 'ImageStdParams' => null, 'SrcImage' => 'this', 'string' => 'rel_url'),
246  'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'),
247  'infos' => 'New in 2.4',
248),
249array(
250  'name' => 'init',
251  'type' => 'trigger_action',
252  'vars' => array(),
253  'files' => array('include\common.inc.php'),
254  'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables',
255),
256array(
257  'name' => 'invalidate_user_cache',
258  'type' => 'trigger_action',
259  'vars' => array('bool' => 'full'),
260  'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
261),
262array(
263  'name' => 'list_check_integrity',
264  'type' => 'trigger_action',
265  'vars' => array('object' => 'this'),
266  'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'),
267),
268array(
269  'name' => 'load_image_library',
270  'type' => 'trigger_action',
271  'vars' => array('object' => 'this'),
272  'files' => array('admin\include\image.class.php (pwg_image::__construct)'),
273),
274array(
275  'name' => 'load_profile_in_template',
276  'type' => 'trigger_action',
277  'vars' => array('array' => 'userdata'),
278  'files' => array('profile.php (load_profile_in_template)'),
279),
280array(
281  'name' => 'loading_lang',
282  'type' => 'trigger_action',
283  'vars' => array(),
284  'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'),
285),
286array(
287  'name' => 'loc_after_page_header',
288  'type' => 'trigger_action',
289  'vars' => array(),
290  'files' => array('include\page_header.php'),
291),
292array(
293  'name' => 'loc_begin_about',
294  'type' => 'trigger_action',
295  'vars' => array(),
296  'files' => array('about.php'),
297),
298array(
299  'name' => 'loc_begin_admin',
300  'type' => 'trigger_action',
301  'vars' => array(),
302  'files' => array('admin.php'),
303),
304array(
305  'name' => 'loc_begin_admin_page',
306  'type' => 'trigger_action',
307  'vars' => array(),
308  'files' => array('admin.php'),
309),
310array(
311  'name' => 'loc_begin_cat_list',
312  'type' => 'trigger_action',
313  'vars' => array(),
314  'files' => array('admin\cat_list.php'),
315),
316array(
317  'name' => 'loc_begin_cat_modify',
318  'type' => 'trigger_action',
319  'vars' => array(),
320  'files' => array('admin\cat_modify.php'),
321),
322array(
323  'name' => 'loc_begin_element_set_global',
324  'type' => 'trigger_action',
325  'vars' => array(),
326  'files' => array('admin\batch_manager_global.php'),
327),
328array(
329  'name' => 'loc_begin_element_set_unit',
330  'type' => 'trigger_action',
331  'vars' => array(),
332  'files' => array('admin\batch_manager_unit.php'),
333),
334array(
335  'name' => 'loc_begin_index',
336  'type' => 'trigger_action',
337  'vars' => array(),
338  'files' => array('index.php'),
339),
340array(
341  'name' => 'loc_begin_index_category_thumbnails',
342  'type' => 'trigger_action',
343  'vars' => array('array' => 'categories'),
344  'files' => array('include\category_cats.inc.php'),
345),
346array(
347  'name' => 'loc_begin_index_thumbnails',
348  'type' => 'trigger_action',
349  'vars' => array('array' => 'pictures'),
350  'files' => array('include\category_default.inc.php'),
351),
352array(
353  'name' => 'loc_begin_page_header',
354  'type' => 'trigger_action',
355  'vars' => array(),
356  'files' => array('include\page_header.php'),
357),
358array(
359  'name' => 'loc_begin_page_tail',
360  'type' => 'trigger_action',
361  'vars' => array(),
362  'files' => array('include\page_tail.php'),
363),
364array(
365  'name' => 'loc_begin_picture',
366  'type' => 'trigger_action',
367  'vars' => array(),
368  'files' => array('picture.php'),
369),
370array(
371  'name' => 'loc_begin_profile',
372  'type' => 'trigger_action',
373  'vars' => array(),
374  'files' => array('profile.php'),
375),
376array(
377  'name' => 'loc_end_admin',
378  'type' => 'trigger_action',
379  'vars' => array(),
380  'files' => array('admin.php'),
381),
382array(
383  'name' => 'loc_end_cat_list',
384  'type' => 'trigger_action',
385  'vars' => array(),
386  'files' => array('admin\cat_list.php'),
387),
388array(
389  'name' => 'loc_end_cat_modify',
390  'type' => 'trigger_action',
391  'vars' => array(),
392  'files' => array('admin\cat_modify.php'),
393),
394array(
395  'name' => 'loc_end_element_set_global',
396  'type' => 'trigger_action',
397  'vars' => array(),
398  'files' => array('admin\batch_manager_global.php'),
399),
400array(
401  'name' => 'loc_end_element_set_unit',
402  'type' => 'trigger_action',
403  'vars' => array(),
404  'files' => array('admin\batch_manager_unit.php'),
405),
406array(
407  'name' => 'loc_end_index',
408  'type' => 'trigger_action',
409  'vars' => array(),
410  'files' => array('index.php'),
411),
412array(
413  'name' => 'loc_end_index_category_thumbnails',
414  'type' => 'trigger_event',
415  'vars' => array('array' => 'tpl_thumbnails_var', 'array' => 'categories'),
416  'files' => array('include\category_cats.inc.php'),
417),
418array(
419  'name' => 'loc_end_index_thumbnails',
420  'type' => 'trigger_event',
421  'vars' => array('array' => 'tpl_thumbnails_var', 'array' => 'pictures'),
422  'files' => array('include\category_default.inc.php'),
423),
424array(
425  'name' => 'loc_end_page_header',
426  'type' => 'trigger_action',
427  'vars' => array(),
428  'files' => array('include\page_header.php'),
429),
430array(
431  'name' => 'loc_end_page_tail',
432  'type' => 'trigger_action',
433  'vars' => array(),
434  'files' => array('include\page_tail.php'),
435),
436array(
437  'name' => 'loc_end_picture',
438  'type' => 'trigger_action',
439  'vars' => array(),
440  'files' => array('picture.php'),
441),
442array(
443  'name' => 'loc_end_profile',
444  'type' => 'trigger_action',
445  'vars' => array(),
446  'files' => array('profile.php'),
447),
448array(
449  'name' => 'loc_end_section_init',
450  'type' => 'trigger_action',
451  'vars' => array(),
452  'files' => array('include\section_init.inc.php'),
453  'infos' => 'this action is called after section initilization, $page variable is fully defined',
454),
455array(
456  'name' => 'loc_visible_user_list',
457  'type' => 'trigger_event',
458  'vars' => array('array' => 'visible_user_list'),
459  'files' => array('admin\user_list.php'),
460),
461array(
462  'name' => 'login_failure',
463  'type' => 'trigger_action',
464  'vars' => array('string' => 'username'),
465  'files' => array('include\functions_user.inc.php (try_log_user)'),
466),
467array(
468  'name' => 'login_success',
469  'type' => 'trigger_action',
470  'vars' => array('string' => 'username'),
471  'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'),
472),
473array(
474  'name' => 'mail_group_assign_vars',
475  'type' => 'trigger_event',
476  'vars' => array('array' => 'assign_vars'),
477  'files' => array('include\functions_mail.inc.php (pwg_mail_group)'),
478),
479array(
480  'name' => 'nbm_event_handler_added',
481  'type' => 'trigger_action',
482  'vars' => array(),
483  'files' => array('admin\notification_by_mail.php'),
484),
485array(
486  'name' => 'nbm_render_global_customize_mail_content',
487  'type' => 'trigger_event',
488  'vars' => array('string' => 'customize_mail_content'),
489  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
490),
491array(
492  'name' => 'nbm_render_user_customize_mail_content',
493  'type' => 'trigger_event',
494  'vars' => array('string' => 'customize_mail_content', 'string' => 'nbm_user'),
495  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
496),
497array(
498  'name' => 'perform_batch_manager_prefilters',
499  'type' => 'trigger_event',
500  'vars' => array('array' => 'filter_sets', 'string' => 'session_prefilter'),
501  'files' => array('admin\batch_manager.php'),
502),
503array(
504  'name' => 'picture_pictures_data',
505  'type' => 'trigger_event',
506  'vars' => array('array' => 'picture'),
507  'files' => array('picture.php'),
508),
509array(
510  'name' => 'plugins_loaded',
511  'type' => 'trigger_action',
512  'vars' => array(),
513  'files' => array('include\functions_plugins.inc.php (load_plugins)'),
514),
515array(
516  'name' => 'pwg_log_allowed',
517  'type' => 'trigger_event',
518  'vars' => array('bool' => 'do_log', 'int' => 'image_id', 'string' => 'image_type'),
519  'files' => array('include\functions.inc.php (pwg_log)'),
520),
521array(
522  'name' => 'register_user',
523  'type' => 'trigger_action',
524  'vars' => array('array' => 'user'),
525  'files' => array('include\functions_user.inc.php (register_user)'),
526),
527array(
528  'name' => 'register_user_check',
529  'type' => 'trigger_event',
530  'vars' => array('array' => 'errors', 'array' => 'user'),
531  'files' => array('include\functions_user.inc.php (register_user)'),
532),
533array(
534  'name' => 'render_category_description',
535  'type' => 'trigger_event',
536  'vars' => array('string' => 'category_description', 'string' => 'action'),
537  'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'),
538),
539array(
540  'name' => 'render_category_literal_description',
541  'type' => 'trigger_event',
542  'vars' => array('string' => 'category_description'),
543  'files' => array('include\category_cats.inc.php'),
544),
545array(
546  'name' => 'render_category_name',
547  'type' => 'trigger_event',
548  'vars' => array('string' => 'category_name', 'string' => 'location'),
549  'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'),
550),
551array(
552  'name' => 'render_comment_author',
553  'type' => 'trigger_event',
554  'vars' => array('string' => 'comment_author'),
555  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
556),
557array(
558  'name' => 'render_comment_content',
559  'type' => 'trigger_event',
560  'vars' => array('string' => 'comment_content'),
561  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
562),
563array(
564  'name' => 'render_element_content',
565  'type' => 'trigger_event',
566  'vars' => array('string' => 'content', 'array' => 'current_picture'),
567  'files' => array('picture.php'),
568),
569array(
570  'name' => 'render_element_description',
571  'type' => 'trigger_event',
572  'vars' => array('string' => 'element_name'),
573  'files' => array('include\functions.inc.php (get_picture_title)', 'picture.php'),
574),
575array(
576  'name' => 'render_lost_password_mail_content',
577  'type' => 'trigger_event',
578  'vars' => array('string' => 'message'),
579  'files' => array('password.php (process_password_request)'),
580),
581array(
582  'name' => 'render_page_banner',
583  'type' => 'trigger_event',
584  'vars' => array('string' => 'gallery_title'),
585  'files' => array('include\page_header.php'),
586),
587array(
588  'name' => 'render_tag_name',
589  'type' => 'trigger_event',
590  'vars' => array('string' => 'tag_name'),
591  'files' => array('include\functions.php (get_taglist)', 'admin\tags.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'index.php'),
592),
593array(
594  'name' => 'render_tag_url',
595  'type' => 'trigger_event',
596  'vars' => array('string' => 'tag_name'),
597  'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'),
598),
599array(
600  'name' => 'save_profile_from_post',
601  'type' => 'trigger_action',
602  'vars' => array('int' => 'user_id'),
603  'files' => array('profile.php (save_profile_from_post)'),
604),
605array(
606  'name' => 'send_mail',
607  'type' => 'trigger_event',
608  'vars' => array('bool' => 'result', 'string' => 'mail_to', 'string' => 'mail_subject', 'string' => 'mail_content', 'array' => 'mail_headers'),
609  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
610),
611array(
612  'name' => 'send_mail_content',
613  'type' => 'trigger_event',
614  'vars' => array('string' => 'content'),
615  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
616),
617array(
618  'name' => 'send_mail_headers',
619  'type' => 'trigger_event',
620  'vars' => array('array' => 'headers'),
621  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
622),
623array(
624  'name' => 'send_mail_subject',
625  'type' => 'trigger_event',
626  'vars' => array('string' => 'cvt_subject'),
627  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
628),
629array(
630  'name' => 'send_mail_to',
631  'type' => 'trigger_event',
632  'vars' => array('string' => 'to'),
633  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
634),
635array(
636  'name' => 'sendResponse',
637  'type' => 'trigger_action',
638  'vars' => array('string' => 'encodedResponse'),
639  'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'),
640),
641array(
642  'name' => 'set_status_header',
643  'type' => 'trigger_action',
644  'vars' => array('int' => 'code', 'string' => 'text'),
645  'files' => array('include\functions_html.inc.php (set_status_header)'),
646),
647array(
648  'name' => 'trigger',
649  'type' => 'trigger_action',
650  'vars' => array('array' => ''),
651  'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'),
652),
653array(
654  'name' => 'user_comment_check',
655  'type' => 'trigger_event',
656  'vars' => array('string' => 'comment_action', 'array' => 'comm'),
657  'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'),
658  'infos' => 'use this trigger to add conditions on comment validation',
659),
660array(
661  'name' => 'user_comment_deletion',
662  'type' => 'trigger_action',
663  'vars' => array('mixed' => 'comment_id'),
664  'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
665  'infos' => '$comment_id is and int or an array of int',
666),
667array(
668  'name' => 'user_comment_insertion',
669  'type' => 'trigger_action',
670  'vars' => array('array' => 'comm'),
671  'files' => array('include\picture_comment.inc.php'),
672),
673array(
674  'name' => 'user_comment_validation',
675  'type' => 'trigger_action',
676  'vars' => array('mixed' => 'comment_id'),
677  'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
678  'infos' => '$comment_id is and int or an array of int',
679),
680array(
681  'name' => 'user_init',
682  'type' => 'trigger_action',
683  'vars' => array('array' => 'user'),
684  'files' => array('include\user.inc.php'),
685),
686array(
687  'name' => 'ws_add_methods',
688  'type' => 'trigger_action',
689  'vars' => array('object' => 'this'),
690  'files' => array('include\ws_core.inc.php (PwgServer::run)'),
691),
692array(
693  'name' => 'ws_invoke_allowed',
694  'type' => 'trigger_event',
695  'vars' => array('bool' => '', 'string' => 'methodName', 'array' => 'params'),
696  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
697),
698);
699?>
700<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
701   "http://www.w3.org/TR/html4/strict.dtd">
702<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
703<head>
704  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
705  <title>Piwigo Core Triggers</title>
706 
707  <link type="text/css" rel="stylesheet" media="screen" href="tablesorter/jquery.tablesorter.css">
708  <script type="text/javascript" src="../themes/default/js/jquery.min.js"></script>
709  <script type="text/javascript" src="tablesorter/jquery.tablesorter.min.js"></script>
710
711 
712  <script type="text/javascript">
713  $(document).ready(function() {
714        $('#triggers').tablesorter({
715          sortList: [[0,0]]
716        });
717  }); 
718  </script>
719</head>
720
721<body style="font-family:arial;">
722<h2>Piwigo Core Triggers</h2>
723
724<a href="http://piwigo.org/doc/doku.php?id=dev:plugins">For more infos about triggers</a>
725
726<table id="triggers" class="tablesorter">
727<thead> 
728<tr>
729  <th>Name</th>
730  <th>Type</th>
731  <th>Vars</th>
732  <th>Usage in the core <span style="font-weight:normal !important;">file (<i>function</i>)</span></th>
733  <th>Commentary</th>
734</tr>
735</thead>
736<tbody>
737
738<?php 
739  foreach ($core as $trigger)
740  {
741    echo '
742  <tr>
743    <td>'.$trigger['name'].'</td>
744    <td>'.$trigger['type'].'</td>
745    <td>';
746    $f=1;
747    foreach ($trigger['vars'] as $type => $name)
748    {
749      if (!$f) echo ', '; $f=0;
750      echo $type.' '.(!empty($name)?'<i>$'.$name.'</i>':'');
751    }
752    echo '
753    </td>
754    <td>';
755    $f=1;
756    foreach ($trigger['files'] as $file)
757    {
758      if (!$f) echo '<br>'; $f=0;
759      echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file);
760    }
761    echo '
762    </td>
763    <td>'.@$trigger['infos'].'</td>
764  </tr>';
765  }
766?>
767
768</tbody>
769</table>
770
771</body>
772</html>
Note: See TracBrowser for help on using the repository browser.