source: trunk/tools/triggers_list.php @ 14440

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

add some info to tools/triggers_list.php

File size: 23.6 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_location',
217  'type' => 'trigger_event',
218  'vars' => array('string' => 'path', 'array' => 'element_info'),
219  'files' => array('include\functions.inc.php (get_thumbnail_location)'),
220),
221array(
222  'name' => 'get_thumbnail_title',
223  'type' => 'trigger_event',
224  'vars' => array('string' => 'title', 'array' => 'info'),
225  'files' => array('include\functions.inc.php (get_thumbnail_title)'),
226),
227array(
228  'name' => 'get_thumbnail_url',
229  'type' => 'trigger_event',
230  'vars' => array('string' => 'url', 'array' => 'element_info', 'string' => 'loc'),
231  'files' => array('include\functions.inc.php (get_thumbnail_url)'),
232),
233array(
234  'name' => 'init',
235  'type' => 'trigger_action',
236  'vars' => array(),
237  'files' => array('include\common.inc.php'),
238  'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables',
239),
240array(
241  'name' => 'invalidate_user_cache',
242  'type' => 'trigger_action',
243  'vars' => array('bool' => 'full'),
244  'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
245),
246array(
247  'name' => 'list_check_integrity',
248  'type' => 'trigger_action',
249  'vars' => array('object' => 'this'),
250  'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'),
251),
252array(
253  'name' => 'load_image_library',
254  'type' => 'trigger_action',
255  'vars' => array('object' => 'this'),
256  'files' => array('admin\include\image.class.php (pwg_image::__construct)'),
257),
258array(
259  'name' => 'load_profile_in_template',
260  'type' => 'trigger_action',
261  'vars' => array('array' => 'userdata'),
262  'files' => array('profile.php (load_profile_in_template)'),
263),
264array(
265  'name' => 'loading_lang',
266  'type' => 'trigger_action',
267  'vars' => array(),
268  'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'),
269),
270array(
271  'name' => 'loc_after_page_header',
272  'type' => 'trigger_action',
273  'vars' => array(),
274  'files' => array('include\page_header.php'),
275),
276array(
277  'name' => 'loc_begin_about',
278  'type' => 'trigger_action',
279  'vars' => array(),
280  'files' => array('about.php'),
281),
282array(
283  'name' => 'loc_begin_admin',
284  'type' => 'trigger_action',
285  'vars' => array(),
286  'files' => array('admin.php'),
287),
288array(
289  'name' => 'loc_begin_admin_page',
290  'type' => 'trigger_action',
291  'vars' => array(),
292  'files' => array('admin.php'),
293),
294array(
295  'name' => 'loc_begin_cat_list',
296  'type' => 'trigger_action',
297  'vars' => array(),
298  'files' => array('admin\cat_list.php'),
299),
300array(
301  'name' => 'loc_begin_cat_modify',
302  'type' => 'trigger_action',
303  'vars' => array(),
304  'files' => array('admin\cat_modify.php'),
305),
306array(
307  'name' => 'loc_begin_element_set_global',
308  'type' => 'trigger_action',
309  'vars' => array(),
310  'files' => array('admin\batch_manager_global.php'),
311),
312array(
313  'name' => 'loc_begin_element_set_unit',
314  'type' => 'trigger_action',
315  'vars' => array(),
316  'files' => array('admin\batch_manager_unit.php'),
317),
318array(
319  'name' => 'loc_begin_index',
320  'type' => 'trigger_action',
321  'vars' => array(),
322  'files' => array('index.php'),
323),
324array(
325  'name' => 'loc_begin_index_category_thumbnails',
326  'type' => 'trigger_action',
327  'vars' => array('array' => 'categories'),
328  'files' => array('include\category_cats.inc.php'),
329),
330array(
331  'name' => 'loc_begin_index_thumbnails',
332  'type' => 'trigger_action',
333  'vars' => array('array' => 'pictures'),
334  'files' => array('include\category_default.inc.php'),
335),
336array(
337  'name' => 'loc_begin_page_header',
338  'type' => 'trigger_action',
339  'vars' => array(),
340  'files' => array('include\page_header.php'),
341),
342array(
343  'name' => 'loc_begin_page_tail',
344  'type' => 'trigger_action',
345  'vars' => array(),
346  'files' => array('include\page_tail.php'),
347),
348array(
349  'name' => 'loc_begin_picture',
350  'type' => 'trigger_action',
351  'vars' => array(),
352  'files' => array('picture.php'),
353),
354array(
355  'name' => 'loc_begin_profile',
356  'type' => 'trigger_action',
357  'vars' => array(),
358  'files' => array('profile.php'),
359),
360array(
361  'name' => 'loc_end_admin',
362  'type' => 'trigger_action',
363  'vars' => array(),
364  'files' => array('admin.php'),
365),
366array(
367  'name' => 'loc_end_cat_list',
368  'type' => 'trigger_action',
369  'vars' => array(),
370  'files' => array('admin\cat_list.php'),
371),
372array(
373  'name' => 'loc_end_cat_modify',
374  'type' => 'trigger_action',
375  'vars' => array(),
376  'files' => array('admin\cat_modify.php'),
377),
378array(
379  'name' => 'loc_end_element_set_global',
380  'type' => 'trigger_action',
381  'vars' => array(),
382  'files' => array('admin\batch_manager_global.php'),
383),
384array(
385  'name' => 'loc_end_element_set_unit',
386  'type' => 'trigger_action',
387  'vars' => array(),
388  'files' => array('admin\batch_manager_unit.php'),
389),
390array(
391  'name' => 'loc_end_index',
392  'type' => 'trigger_action',
393  'vars' => array(),
394  'files' => array('index.php'),
395),
396array(
397  'name' => 'loc_end_index_category_thumbnails',
398  'type' => 'trigger_event',
399  'vars' => array('array' => 'tpl_thumbnails_var', 'array' => 'categories'),
400  'files' => array('include\category_cats.inc.php'),
401),
402array(
403  'name' => 'loc_end_index_thumbnails',
404  'type' => 'trigger_event',
405  'vars' => array('array' => 'tpl_thumbnails_var', 'array' => 'pictures'),
406  'files' => array('include\category_default.inc.php'),
407),
408array(
409  'name' => 'loc_end_page_header',
410  'type' => 'trigger_action',
411  'vars' => array(),
412  'files' => array('include\page_header.php'),
413),
414array(
415  'name' => 'loc_end_page_tail',
416  'type' => 'trigger_action',
417  'vars' => array(),
418  'files' => array('include\page_tail.php'),
419),
420array(
421  'name' => 'loc_end_picture',
422  'type' => 'trigger_action',
423  'vars' => array(),
424  'files' => array('picture.php'),
425),
426array(
427  'name' => 'loc_end_profile',
428  'type' => 'trigger_action',
429  'vars' => array(),
430  'files' => array('profile.php'),
431),
432array(
433  'name' => 'loc_end_section_init',
434  'type' => 'trigger_action',
435  'vars' => array(),
436  'files' => array('include\section_init.inc.php'),
437  'infos' => 'this action is called after section initilization, $page variable is fully defined',
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  'infos' => 'use this trigger to add conditions on comment validation',
643),
644array(
645  'name' => 'user_comment_deletion',
646  'type' => 'trigger_action',
647  'vars' => array('mixed' => 'comment_id'),
648  'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
649  'infos' => '$comment_id is and int or an array of int',
650),
651array(
652  'name' => 'user_comment_insertion',
653  'type' => 'trigger_action',
654  'vars' => array('array' => 'comm'),
655  'files' => array('include\picture_comment.inc.php'),
656),
657array(
658  'name' => 'user_comment_validation',
659  'type' => 'trigger_action',
660  'vars' => array('mixed' => 'comment_id'),
661  'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
662  'infos' => '$comment_id is and int or an array of int',
663),
664array(
665  'name' => 'user_init',
666  'type' => 'trigger_action',
667  'vars' => array('array' => 'user'),
668  'files' => array('include\user.inc.php'),
669),
670array(
671  'name' => 'ws_add_methods',
672  'type' => 'trigger_action',
673  'vars' => array('object' => 'this'),
674  'files' => array('include\ws_core.inc.php (PwgServer::run)'),
675),
676array(
677  'name' => 'ws_invoke_allowed',
678  'type' => 'trigger_event',
679  'vars' => array('bool' => '', 'string' => 'methodName', 'array' => 'params'),
680  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
681),
682);
683?>
684<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
685   "http://www.w3.org/TR/html4/strict.dtd">
686<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
687<head>
688  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
689  <title>Piwigo Core Triggers</title>
690 
691  <link type="text/css" rel="stylesheet" media="screen" href="tablesorter/jquery.tablesorter.css">
692  <script type="text/javascript" src="../themes/default/js/jquery.min.js"></script>
693  <script type="text/javascript" src="tablesorter/jquery.tablesorter.min.js"></script>
694
695 
696  <script type="text/javascript">
697  $(document).ready(function() {
698        $('#triggers').tablesorter({
699          sortList: [[0,0]]
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.