source: branches/2.6/tools/triggers_list.php @ 27715

Last change on this file since 27715 was 27715, checked in by plg, 10 years ago

feature 3054: new trigger ws_users_getList

File size: 30.7 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',
[25505]44  'vars' => array('string', 'href', 'Combinable', '$combinable'),
[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(
[23888]235  'name' => 'get_webmaster_mail_address',
236  'type' => 'trigger_event',
237  'vars' => array('string', 'email'),
238  'files' => array('include\functions.inc.php (get_webmaster_mail_address)'),
239  'infos' => 'New in 2.6',
240),
241array(
[12608]242  'name' => 'init',
243  'type' => 'trigger_action',
244  'vars' => array(),
245  'files' => array('include\common.inc.php'),
[12921]246  'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables',
[12608]247),
248array(
249  'name' => 'invalidate_user_cache',
250  'type' => 'trigger_action',
[16967]251  'vars' => array('bool', 'full'),
[12608]252  'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
253),
254array(
[23372]255  'name' => 'load_conf',
256  'type' => 'trigger_action',
257  'vars' => array('string', 'condition'),
258  'files' => array('include\functions.inc.php (load_conf_from_db)'),
259  '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.',
260),
261array(
[12608]262  'name' => 'list_check_integrity',
263  'type' => 'trigger_action',
[16967]264  'vars' => array('object', 'this'),
[12608]265  'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'),
266),
267array(
268  'name' => 'load_image_library',
269  'type' => 'trigger_action',
[16967]270  'vars' => array('object', 'this'),
[12608]271  'files' => array('admin\include\image.class.php (pwg_image::__construct)'),
272),
273array(
274  'name' => 'load_profile_in_template',
275  'type' => 'trigger_action',
[16967]276  'vars' => array('array', 'userdata'),
[12608]277  'files' => array('profile.php (load_profile_in_template)'),
278),
279array(
280  'name' => 'loading_lang',
281  'type' => 'trigger_action',
282  'vars' => array(),
283  'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'),
284),
285array(
286  'name' => 'loc_after_page_header',
287  'type' => 'trigger_action',
288  'vars' => array(),
289  'files' => array('include\page_header.php'),
290),
291array(
292  'name' => 'loc_begin_about',
293  'type' => 'trigger_action',
294  'vars' => array(),
295  'files' => array('about.php'),
296),
297array(
298  'name' => 'loc_begin_admin',
299  'type' => 'trigger_action',
300  'vars' => array(),
301  'files' => array('admin.php'),
302),
303array(
304  'name' => 'loc_begin_admin_page',
305  'type' => 'trigger_action',
306  'vars' => array(),
307  'files' => array('admin.php'),
308),
309array(
310  'name' => 'loc_begin_cat_list',
311  'type' => 'trigger_action',
312  'vars' => array(),
313  'files' => array('admin\cat_list.php'),
314),
315array(
316  'name' => 'loc_begin_cat_modify',
317  'type' => 'trigger_action',
318  'vars' => array(),
319  'files' => array('admin\cat_modify.php'),
320),
321array(
322  'name' => 'loc_begin_element_set_global',
323  'type' => 'trigger_action',
324  'vars' => array(),
325  'files' => array('admin\batch_manager_global.php'),
326),
327array(
328  'name' => 'loc_begin_element_set_unit',
329  'type' => 'trigger_action',
330  'vars' => array(),
331  'files' => array('admin\batch_manager_unit.php'),
332),
333array(
334  'name' => 'loc_begin_index',
335  'type' => 'trigger_action',
336  'vars' => array(),
337  'files' => array('index.php'),
338),
339array(
340  'name' => 'loc_begin_index_category_thumbnails',
341  'type' => 'trigger_action',
[16967]342  'vars' => array('array', 'categories'),
[12608]343  'files' => array('include\category_cats.inc.php'),
344),
345array(
346  'name' => 'loc_begin_index_thumbnails',
347  'type' => 'trigger_action',
[16967]348  'vars' => array('array', 'pictures'),
[12608]349  'files' => array('include\category_default.inc.php'),
350),
351array(
352  'name' => 'loc_begin_page_header',
353  'type' => 'trigger_action',
354  'vars' => array(),
355  'files' => array('include\page_header.php'),
356),
357array(
358  'name' => 'loc_begin_page_tail',
359  'type' => 'trigger_action',
360  'vars' => array(),
361  'files' => array('include\page_tail.php'),
362),
363array(
364  'name' => 'loc_begin_picture',
365  'type' => 'trigger_action',
366  'vars' => array(),
367  'files' => array('picture.php'),
368),
369array(
370  'name' => 'loc_begin_profile',
371  'type' => 'trigger_action',
372  'vars' => array(),
373  'files' => array('profile.php'),
374),
375array(
[18063]376  'name' => 'loc_begin_password',
377  'type' => 'trigger_action',
378  'vars' => array(),
379  'files' => array('password.php'),
380  'infos' => 'New in 2.5',
381),
382array(
383  'name' => 'loc_begin_register',
384  'type' => 'trigger_action',
385  'vars' => array(),
386  'files' => array('register.php'),
387  'infos' => 'New in 2.5',
388),
389array(
390  'name' => 'loc_begin_search',
391  'type' => 'trigger_action',
392  'vars' => array(),
393  'files' => array('search.php'),
394  'infos' => 'New in 2.5',
395),
396array(
397  'name' => 'loc_begin_tags',
398  'type' => 'trigger_action',
399  'vars' => array(),
400  'files' => array('tags.php'),
401  'infos' => 'New in 2.5',
402),
403array(
404  'name' => 'loc_begin_comments',
405  'type' => 'trigger_action',
406  'vars' => array(),
407  'files' => array('comments.php'),
408  'infos' => 'New in 2.5',
409),
410array(
411  'name' => 'loc_begin_identification',
412  'type' => 'trigger_action',
413  'vars' => array(),
414  'files' => array('identification.php'),
415  'infos' => 'New in 2.5',
416),
417array(
418  'name' => 'loc_begin_notification',
419  'type' => 'trigger_action',
420  'vars' => array(),
421  'files' => array('notification.php'),
422  'infos' => 'New in 2.5',
423),
424array(
425  'name' => 'loc_end_password',
426  'type' => 'trigger_action',
427  'vars' => array(),
428  'files' => array('password.php'),
429  'infos' => 'New in 2.5',
430),
431array(
432  'name' => 'loc_end_register',
433  'type' => 'trigger_action',
434  'vars' => array(),
435  'files' => array('register.php'),
436  'infos' => 'New in 2.5',
437),
438array(
439  'name' => 'loc_end_search',
440  'type' => 'trigger_action',
441  'vars' => array(),
442  'files' => array('search.php'),
443  'infos' => 'New in 2.5',
444),
445array(
446  'name' => 'loc_end_tags',
447  'type' => 'trigger_action',
448  'vars' => array(),
449  'files' => array('tags.php'),
450  'infos' => 'New in 2.5',
451),
452array(
453  'name' => 'loc_end_comments',
454  'type' => 'trigger_action',
455  'vars' => array(),
456  'files' => array('comments.php'),
457  'infos' => 'New in 2.5',
458),
459array(
460  'name' => 'loc_end_identification',
461  'type' => 'trigger_action',
462  'vars' => array(),
463  'files' => array('identification.php'),
464  'infos' => 'New in 2.5',
465),
466array(
467  'name' => 'loc_end_notification',
468  'type' => 'trigger_action',
469  'vars' => array(),
470  'files' => array('notification.php'),
471  'infos' => 'New in 2.5',
472),
473array(
[12608]474  'name' => 'loc_end_admin',
475  'type' => 'trigger_action',
476  'vars' => array(),
477  'files' => array('admin.php'),
478),
479array(
480  'name' => 'loc_end_cat_list',
481  'type' => 'trigger_action',
482  'vars' => array(),
483  'files' => array('admin\cat_list.php'),
484),
485array(
486  'name' => 'loc_end_cat_modify',
487  'type' => 'trigger_action',
488  'vars' => array(),
489  'files' => array('admin\cat_modify.php'),
490),
491array(
492  'name' => 'loc_end_element_set_global',
493  'type' => 'trigger_action',
494  'vars' => array(),
495  'files' => array('admin\batch_manager_global.php'),
496),
497array(
498  'name' => 'loc_end_element_set_unit',
499  'type' => 'trigger_action',
500  'vars' => array(),
501  'files' => array('admin\batch_manager_unit.php'),
502),
503array(
504  'name' => 'loc_end_index',
505  'type' => 'trigger_action',
506  'vars' => array(),
507  'files' => array('index.php'),
508),
509array(
510  'name' => 'loc_end_index_category_thumbnails',
511  'type' => 'trigger_event',
[18926]512  'vars' => array('array', 'tpl_thumbnails_var'),
[12608]513  'files' => array('include\category_cats.inc.php'),
514),
515array(
516  'name' => 'loc_end_index_thumbnails',
517  'type' => 'trigger_event',
[16967]518  'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'),
[12608]519  'files' => array('include\category_default.inc.php'),
520),
521array(
522  'name' => 'loc_end_page_header',
523  'type' => 'trigger_action',
524  'vars' => array(),
525  'files' => array('include\page_header.php'),
526),
527array(
528  'name' => 'loc_end_page_tail',
529  'type' => 'trigger_action',
530  'vars' => array(),
531  'files' => array('include\page_tail.php'),
532),
533array(
534  'name' => 'loc_end_picture',
535  'type' => 'trigger_action',
536  'vars' => array(),
537  'files' => array('picture.php'),
538),
539array(
540  'name' => 'loc_end_profile',
541  'type' => 'trigger_action',
542  'vars' => array(),
543  'files' => array('profile.php'),
544),
545array(
546  'name' => 'loc_end_section_init',
547  'type' => 'trigger_action',
548  'vars' => array(),
549  'files' => array('include\section_init.inc.php'),
[12921]550  'infos' => 'this action is called after section initilization, $page variable is fully defined',
[12608]551),
552array(
553  'name' => 'loc_visible_user_list',
554  'type' => 'trigger_event',
[16967]555  'vars' => array('array', 'visible_user_list'),
[12608]556  'files' => array('admin\user_list.php'),
557),
558array(
559  'name' => 'login_failure',
560  'type' => 'trigger_action',
[16967]561  'vars' => array('string', 'username'),
[12608]562  'files' => array('include\functions_user.inc.php (try_log_user)'),
563),
564array(
565  'name' => 'login_success',
566  'type' => 'trigger_action',
[16967]567  'vars' => array('string', 'username'),
[12608]568  'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'),
569),
570array(
571  'name' => 'nbm_event_handler_added',
572  'type' => 'trigger_action',
573  'vars' => array(),
574  'files' => array('admin\notification_by_mail.php'),
575),
576array(
577  'name' => 'nbm_render_global_customize_mail_content',
578  'type' => 'trigger_event',
[16967]579  'vars' => array('string', 'customize_mail_content'),
[12608]580  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
581),
582array(
583  'name' => 'nbm_render_user_customize_mail_content',
584  'type' => 'trigger_event',
[16967]585  'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'),
[12608]586  'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
587),
588array(
589  'name' => 'perform_batch_manager_prefilters',
590  'type' => 'trigger_event',
[16967]591  'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'),
[12608]592  'files' => array('admin\batch_manager.php'),
593),
594array(
595  'name' => 'picture_pictures_data',
596  'type' => 'trigger_event',
[16967]597  'vars' => array('array', 'picture'),
[12608]598  'files' => array('picture.php'),
599),
600array(
601  'name' => 'plugins_loaded',
602  'type' => 'trigger_action',
603  'vars' => array(),
604  'files' => array('include\functions_plugins.inc.php (load_plugins)'),
605),
606array(
607  'name' => 'pwg_log_allowed',
608  'type' => 'trigger_event',
[16967]609  'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'),
[12608]610  'files' => array('include\functions.inc.php (pwg_log)'),
611),
612array(
613  'name' => 'register_user',
614  'type' => 'trigger_action',
[16967]615  'vars' => array('array', 'user'),
[12608]616  'files' => array('include\functions_user.inc.php (register_user)'),
617),
618array(
619  'name' => 'register_user_check',
620  'type' => 'trigger_event',
[16967]621  'vars' => array('array', 'errors', 'array', 'user'),
[12608]622  'files' => array('include\functions_user.inc.php (register_user)'),
623),
624array(
625  'name' => 'render_category_description',
626  'type' => 'trigger_event',
[16967]627  'vars' => array('string', 'category_description', 'string', 'action'),
[12608]628  'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'),
629),
630array(
631  'name' => 'render_category_literal_description',
632  'type' => 'trigger_event',
[16967]633  'vars' => array('string', 'category_description'),
[12608]634  'files' => array('include\category_cats.inc.php'),
635),
636array(
637  'name' => 'render_category_name',
638  'type' => 'trigger_event',
[16967]639  'vars' => array('string', 'category_name', 'string', 'location'),
[12608]640  'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'),
641),
642array(
643  'name' => 'render_comment_author',
644  'type' => 'trigger_event',
[16967]645  'vars' => array('string', 'comment_author'),
[12608]646  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
647),
648array(
649  'name' => 'render_comment_content',
650  'type' => 'trigger_event',
[16967]651  'vars' => array('string', 'comment_content'),
[12608]652  'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
653),
654array(
655  'name' => 'render_element_content',
656  'type' => 'trigger_event',
[16967]657  'vars' => array('string', 'content', 'array', 'current_picture'),
[12608]658  'files' => array('picture.php'),
659),
660array(
[17977]661  'name' => 'render_element_name',
[12608]662  'type' => 'trigger_event',
[16967]663  'vars' => array('string', 'element_name'),
[17977]664  'files' => array('include\functions_html.inc.php (render_element_name)'),
[12608]665),
666array(
[17977]667  'name' => 'render_element_description',
668  'type' => 'trigger_event',
[25202]669  'vars' => array('string', 'element_description', 'string', 'action'),
670  'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'),
[17977]671),
672array(
[12608]673  'name' => 'render_lost_password_mail_content',
674  'type' => 'trigger_event',
[16967]675  'vars' => array('string', 'message'),
[12608]676  'files' => array('password.php (process_password_request)'),
677),
678array(
679  'name' => 'render_page_banner',
680  'type' => 'trigger_event',
[16967]681  'vars' => array('string', 'gallery_title'),
[12608]682  'files' => array('include\page_header.php'),
683),
684array(
685  'name' => 'render_tag_name',
686  'type' => 'trigger_event',
[26649]687  'vars' => array('string', 'tag_name', 'array', 'tag'),
688  '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]689),
690array(
691  'name' => 'render_tag_url',
692  'type' => 'trigger_event',
[16967]693  'vars' => array('string', 'tag_name'),
[26649]694  'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'),
[12608]695),
696array(
697  'name' => 'save_profile_from_post',
698  'type' => 'trigger_action',
[16967]699  'vars' => array('int', 'user_id'),
[12608]700  'files' => array('profile.php (save_profile_from_post)'),
701),
702array(
[25360]703  'name' => 'before_send_mail',
[12608]704  'type' => 'trigger_event',
[25360]705  'vars' => array('bool', 'result', 'mixed', 'to', 'array', 'arguments', 'PHPMailer', 'mail'),
[12608]706  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
707),
708array(
[25360]709  'name' => 'before_parse_mail_template',
710  'type' => 'trigger_action',
711  'vars' => array('string', 'cache_key', 'string', 'content_type'),
[12608]712  'files' => array('include\functions_mail.inc.php (pwg_mail)'),
713),
714array(
715  'name' => 'sendResponse',
716  'type' => 'trigger_action',
[16967]717  'vars' => array('string', 'encodedResponse'),
[12608]718  'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'),
719),
720array(
721  'name' => 'set_status_header',
722  'type' => 'trigger_action',
[16967]723  'vars' => array('int', 'code', 'string', 'text'),
[12608]724  'files' => array('include\functions_html.inc.php (set_status_header)'),
725),
726array(
[16967]727  'name' => 'tabsheet_before_select',
728  'type' => 'trigger_event',
729  'vars' => array('array', 'sheets', 'string', 'tabsheet_id'),
730  'files' => array('include\tabsheet.class.php (tabsheet::select)'),
731  'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets',
732),
733array(
[12608]734  'name' => 'trigger',
735  'type' => 'trigger_action',
[16967]736  'vars' => array('array', null),
[12608]737  'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'),
738),
739array(
740  'name' => 'user_comment_check',
741  'type' => 'trigger_event',
[16967]742  'vars' => array('string', 'comment_action', 'array', 'comm'),
[12608]743  'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'),
[12921]744  'infos' => 'use this trigger to add conditions on comment validation',
[12608]745),
746array(
747  'name' => 'user_comment_deletion',
748  'type' => 'trigger_action',
[16967]749  'vars' => array('mixed', 'comment_id'),
[12608]750  'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
751  'infos' => '$comment_id is and int or an array of int',
752),
753array(
754  'name' => 'user_comment_insertion',
755  'type' => 'trigger_action',
[16967]756  'vars' => array('array', 'comm'),
[12608]757  'files' => array('include\picture_comment.inc.php'),
758),
759array(
760  'name' => 'user_comment_validation',
761  'type' => 'trigger_action',
[16967]762  'vars' => array('mixed', 'comment_id'),
[12608]763  'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
764  'infos' => '$comment_id is and int or an array of int',
765),
766array(
767  'name' => 'user_init',
768  'type' => 'trigger_action',
[16967]769  'vars' => array('array', 'user'),
[12608]770  'files' => array('include\user.inc.php'),
771),
772array(
773  'name' => 'ws_add_methods',
774  'type' => 'trigger_action',
[16967]775  'vars' => array('object', 'this'),
[12608]776  'files' => array('include\ws_core.inc.php (PwgServer::run)'),
777),
778array(
779  'name' => 'ws_invoke_allowed',
780  'type' => 'trigger_event',
[16967]781  'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'),
[12608]782  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
783),
[20282]784array(
785  'name' => 'user_logout',
786  'type' => 'trigger_action',
787  'vars' => array('int', 'user_id'),
788  'files' => array('include\functions_user.inc.php (logout_user)'),
[23210]789  'infos' => 'New in 2.5',
[20282]790),
791array(
792  'name' => 'user_login',
793  'type' => 'trigger_action',
794  'vars' => array('int', 'user_id'),
795  'files' => array('include\functions_user.inc.php (log_user)'),
[23210]796  'infos' => 'New in 2.5',
[20282]797),
798array(
799  'name' => 'try_log_user',
800  'type' => 'trigger_event',
801  'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'),
802  'files' => array('include\functions_user.inc.php (try_log_user)'),
[23210]803  '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]804),
[25505]805array(
806  'name' => 'combinable_preparse',
807  'type' => 'trigger_action',
808  'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'),
809  'files' => array('include\template.class.php (FileCombiner::process_combinable)'),
810  'infos' => 'New in 2.6.',
811),
[26618]812array(
813  'name' => 'user_list_columns',
814  'type' => 'trigger_event',
815  'vars' => array('string[]', 'aColumns'),
816  'files' => array('admin\user_list_backend.php'),
817  'infos' => 'New in 2.6.',
818),
819array(
820  'name' => 'after_render_user_list',
821  'type' => 'trigger_event',
822  'vars' => array('array', 'output'),
823  'files' => array('admin\user_list_backend.php'),
824  'infos' => 'New in 2.6.',
825),
[27713]826array(
827  'name' => 'picture_modify_before_update',
828  'type' => 'trigger_event',
829  'vars' => array('array', 'data'),
830  'files' => array('admin\picture_modify.php'),
831  'infos' => 'New in 2.6.2.',
832),
[27715]833array(
834  'name' => 'ws_users_getList',
835  'type' => 'trigger_event',
836  'vars' => array('array', 'users'),
837  'files' => array('include\ws_functions\pwg.users.php'),
838  'infos' => 'New in 2.6.2.',
839),
[12608]840);
841?>
[20192]842<!DOCTYPE html>
[12608]843<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
844<head>
845  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
846  <title>Piwigo Core Triggers</title>
847 
[20192]848  <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
849  <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css">
850 
851  <style type="text/css">
852  /* BEGIN CSS RESET
853    http://meyerweb.com/eric/tools/css/reset
854    v2.0 | 20110126 | License: none (public domain) */
855  html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
856  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,
857  fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
858  figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
859  {margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;}
[12608]860
[20192]861  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;}
862  body {line-height:1.1;}
863  blockquote, q {quotes:none;}
864  blockquote:before, blockquote:after, q:before, q:after {content:'';content:none;}
865  table {border-collapse:collapse;border-spacing:0;}
866  /* END CSS RESET */
[12608]867 
[20192]868  html {font-family:"Corbel","Lucida Grande","Verdana",sans-serif;color:#222;font-size:13px;}
869
870  a {color:#247EBF;text-decoration:none;}
[23714]871  a:hover {color:#EB9C39;border-bottom-width:1px;border-style:dotted;text-shadow:1px 1px 0 #ddd;}
[20192]872
[23714]873  h1 {color:#fff;font-size:26px;padding:10px 15px;text-shadow:1px 1px 0 #999;
874    background:#45484d;background:linear-gradient(to bottom, #45484d 0%,#333333 100%);
[20192]875  }
876
877  #the_header {border-bottom:1px solid #cdcdcd;margin-bottom:1px;}
878  #the_footer {background:#EAEAEA;border-top:1px solid #cdcdcd;padding:10px;clear:both;}
879
880  #the_page {padding:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAH0lEQVQImSXHMQEAMAwCMOrfK0jIjuVL2gLBzyHJtgd7wBdU3Vt/7AAAAABJRU5ErkJggg==);}
881 
882  tfoot input {width:80%;}
883  tfoot .search_input {color:#999;}
884  tfoot select.search_input option:not(:first-child) {color:#222;}
885  </style>
[12608]886</head>
887
[20192]888<body>
[12608]889
[20192]890<div id="the_header">
891  <h1>Piwigo Core Triggers</h1>
892</div> <!-- the_header -->
[12608]893
[20192]894<div id="the_page">
895  <table id="list">
896  <thead>
897    <tr>
898      <th>Name</th>
899      <th>Type</th>
900      <th>Variables</th>
901      <th>Usage in the core</th>
902      <th>Commentary</th>
903    </tr>
904  </thead>
905  <tbody>
[12608]906
[20192]907  <?php 
908    foreach ($core as $trigger)
[12608]909    {
[20192]910      echo '
911    <tr>
912      <td>'.$trigger['name'].'</td>
913      <td>'.$trigger['type'].'</td>
914      <td>';
915      for ($i=0; $i<count($trigger['vars']); $i+=2)
916      {
917        if ($i>0) echo ', ';
918        echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null);
919      }
920      echo '
921      </td>
922      <td>';
923      $f=1;
924      foreach ($trigger['files'] as $file)
925      {
926        if (!$f) echo '<br>'; $f=0;
927        echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file);
928      }
929      echo '
930      </td>
931      <td>'.@$trigger['infos'].'</td>
932    </tr>';
[12608]933    }
[20192]934  ?>
935
936  </tbody>
937  <tfoot>
938    <tr>
939      <td><input type="text" value="Name" class="search_input"></td>
940      <td>
941        <select class="search_input">
942          <option value="">Type</option>
943          <option value="trigger_action">trigger_action</option>
944          <option value="trigger_event">trigger_event</option>
945        </select>
946      </td>
947      <td><input type="text" value="Variables" class="search_input"></td>
948      <td><input type="text" value="Usage" class="search_input"></td>
949      <td><input type="text" value="Commentary" class="search_input"></td>
950    </tr>
951  </tfoot>
952  </table>
953</div> <!-- the_page -->
954
955<div id="the_footer">
956  Copyright &copy; 2002-2013 <a href="http://piwigo.org">Piwigo Team</a>
957</div> <!-- the_footer -->
958
[23714]959
960<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
961<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
[20192]962 
963<script type="text/javascript">
964var oTable = $('#list').dataTable({
965  "bJQueryUI": true,
966  "aaSorting": [ [0,'asc'] ],
967  "sPaginationType": "full_numbers",
968  "aLengthMenu": [[10, 30, 50, 70, 90, -1], [10, 30, 50, 70, 90, "All"]],
969  "iDisplayLength": 30,
970  "oLanguage": {
971      "sSearch": "Search all columns :"
[12608]972  }
[20192]973});
[12608]974
[20192]975// search input
976$("tfoot td").each(function (i) {
977  $('select', this).change(function () {
978    oTable.fnFilter($(this).val(), i);
979  });
980  $('input', this).keyup(function () {
981    oTable.fnFilter($(this).val(), i);
982  });
983});
[12608]984
[20192]985// search helpers
986var asInitVals = new Array();
987$("tfoot input").each(function (i) {
988  asInitVals[i] = $(this).val();
989});
990 
991$("tfoot input").focus(function () {
992  if (this.className == "search_input") {
993    $(this).removeClass("search_input");
994    $(this).val("");
995  }
996});
997 
998$("tfoot input").blur(function (i) {
999  if ($(this).val() == "") {
1000    $(this).addClass("search_input");
1001    $(this).val(asInitVals[$("tfoot input").index(this)]);
1002  }
1003});
1004
1005$("tfoot select").change(function () {
1006  if ($(this).val() == "") {
1007    $(this).addClass("search_input");
1008  }
1009  else {
1010    $(this).removeClass("search_input");
1011  }
1012});
1013</script>
1014
[12608]1015</body>
1016</html>
Note: See TracBrowser for help on using the repository browser.