source: trunk/tools/triggers_list.php @ 30144

Last change on this file since 30144 was 29598, checked in by mistic100, 10 years ago

featur 3130: change batch_manager_register_filters to trigger_change

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