source: trunk/tools/triggers_list.php @ 12608

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

add the file : tools/triggers_list.php

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