source: trunk/tools/triggers_list.php @ 23372

Last change on this file since 23372 was 23372, checked in by mistic100, 11 years ago

Add trigger "load_conf" at the end of load_conf_from_db()
not usable for the first call in common.inc.php (plugins not loaded)

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