Changeset 16968
- Timestamp:
- Jul 24, 2012, 11:43:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/tools/triggers_list.php
r15536 r16968 26 26 'name' => 'allow_increment_element_hit_count', 27 27 'type' => 'trigger_event', 28 'vars' => array('bool' =>'content_not_set'),28 'vars' => array('bool', 'content_not_set'), 29 29 'files' => array('picture.php'), 30 30 ), … … 32 32 'name' => 'begin_delete_elements', 33 33 'type' => 'trigger_action', 34 'vars' => array('array' =>'ids'),34 'vars' => array('array', 'ids'), 35 35 'files' => array('admin\include\functions.inc.php (delete_elements)'), 36 36 ), … … 38 38 'name' => 'blockmanager_apply', 39 39 'type' => 'trigger_action', 40 'vars' => array('object' =>'menublock'),40 'vars' => array('object', 'menublock'), 41 41 'files' => array('include\block.class.php (BlockManager::apply)'), 42 42 'infos' => 'use this trigger to modify existing menu blocks', … … 45 45 'name' => 'blockmanager_prepare_display', 46 46 'type' => 'trigger_action', 47 'vars' => array('object' =>'this'),47 'vars' => array('object', 'this'), 48 48 'files' => array('include\block.class.php (BlockManager::prepare_display)'), 49 49 ), … … 51 51 'name' => 'blockmanager_register_blocks', 52 52 'type' => 'trigger_action', 53 'vars' => array('object' =>'menu'),53 'vars' => array('object', 'menu'), 54 54 'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'), 55 55 'infos' => 'use this trigger to add menu block', … … 58 58 'name' => 'clean_iptc_value', 59 59 'type' => 'trigger_event', 60 'vars' => array('string' =>'value'),60 'vars' => array('string', 'value'), 61 61 'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'), 62 62 ), … … 64 64 'name' => 'combined_css', 65 65 'type' => 'trigger_event', 66 'vars' => array('string' => 'href', 'int' => 'file_ver0', 'int' =>'file_ver1'),66 'vars' => array('string', 'href', 'int', 'file_ver0', 'int', 'file_ver1'), 67 67 'files' => array('include\template.class.php (Template::flush)'), 68 68 ), … … 70 70 'name' => 'combined_css_postfilter', 71 71 'type' => 'trigger_event', 72 'vars' => array('string' =>'css'),72 'vars' => array('string', 'css'), 73 73 'files' => array('include\template.class.php (Template::process_css)'), 74 74 ), … … 76 76 'name' => 'combined_script', 77 77 'type' => 'trigger_event', 78 'vars' => array('string' => 'ret', 'string' =>'script'),78 'vars' => array('string', 'ret', 'string', 'script'), 79 79 'files' => array('include\template.class.php (Template::make_script_src)'), 80 80 ), … … 82 82 'name' => 'delete_categories', 83 83 'type' => 'trigger_action', 84 'vars' => array('array' =>'ids'),84 'vars' => array('array', 'ids'), 85 85 'files' => array('admin\include\functions.inc.php (delete_categories)'), 86 86 ), … … 88 88 'name' => 'delete_elements', 89 89 'type' => 'trigger_action', 90 'vars' => array('array' =>'ids'),90 'vars' => array('array', 'ids'), 91 91 'files' => array('admin\include\functions.inc.php (delete_elements)'), 92 92 ), … … 94 94 'name' => 'delete_user', 95 95 'type' => 'trigger_action', 96 'vars' => array('int' =>'user_id'),96 'vars' => array('int', 'user_id'), 97 97 'files' => array('admin\include\functions.inc.php (delete_user)'), 98 98 ), … … 100 100 'name' => 'element_set_global_action', 101 101 'type' => 'trigger_action', 102 'vars' => array('string' => 'action', 'array' =>'collection'),102 'vars' => array('string', 'action', 'array', 'collection'), 103 103 'files' => array('admin\batch_manager_global.php'), 104 104 ), … … 106 106 'name' => 'format_exif_data', 107 107 'type' => 'trigger_event', 108 'vars' => array('array' => 'exif', 'string' => 'filename', 'array' =>'map'),108 'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'), 109 109 'files' => array('include\functions_metadata.inc.php (get_exif_data)'), 110 110 ), … … 124 124 'name' => 'get_admin_advanced_features_links', 125 125 'type' => 'trigger_event', 126 'vars' => array('array' =>'advanced_features'),126 'vars' => array('array', 'advanced_features'), 127 127 'files' => array('admin\maintenance.php'), 128 128 ), … … 130 130 'name' => 'get_admin_plugin_menu_links', 131 131 'type' => 'trigger_event', 132 'vars' => array('array' => ''),132 'vars' => array('array', null), 133 133 'files' => array('admin.php'), 134 134 'infos' => 'use this trigger to add links into admin plugins menu', … … 137 137 'name' => 'get_admins_site_links', 138 138 'type' => 'trigger_event', 139 'vars' => array('array' => 'plugin_links', 'int' => 'site_id', 'bool' =>'is_remote'),139 'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'), 140 140 'files' => array('admin\site_manager.php'), 141 141 ), … … 143 143 'name' => 'get_batch_manager_prefilters', 144 144 'type' => 'trigger_event', 145 'vars' => array('array' =>'prefilters'),145 'vars' => array('array', 'prefilters'), 146 146 'files' => array('admin\batch_manager_global.php'), 147 147 'infos' => 'use this trigger to add prefilters into batch manager global', … … 150 150 'name' => 'get_categories_menu_sql_where', 151 151 'type' => 'trigger_event', 152 'vars' => array('string' => 'where', 'bool' => 'user_expand', 'bool' =>'filter_enabled'),152 'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'), 153 153 'files' => array('include\functions_category.inc.php (get_categories_menu)'), 154 154 ), … … 156 156 'name' => 'get_category_preferred_image_orders', 157 157 'type' => 'trigger_event', 158 'vars' => array('array' => ''),158 'vars' => array('array', null), 159 159 'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'), 160 160 ), … … 162 162 'name' => 'get_download_url', 163 163 'type' => 'trigger_event', 164 'vars' => array('string' => 'url', 'array' =>'element_info'),164 'vars' => array('string', 'url', 'array', 'element_info'), 165 165 'files' => array('include\functions_picture.inc.php (get_download_url'), 166 166 ), … … 168 168 'name' => 'get_element_metadata_available', 169 169 'type' => 'trigger_event', 170 'vars' => array('bool' => '', 'string' =>'element_path'),170 'vars' => array('bool', null, 'string', 'element_path'), 171 171 'files' => array('picture.php'), 172 172 ), … … 174 174 'name' => 'get_element_url', 175 175 'type' => 'trigger_event', 176 'vars' => array('string' => 'url', 'array' =>'element_info'),176 'vars' => array('string', 'url', 'array', 'element_info'), 177 177 'files' => array('include\functions_picture.inc.php (get_element_url)'), 178 178 ), … … 180 180 'name' => 'get_high_location', 181 181 'type' => 'trigger_event', 182 'vars' => array('string' => 'location', 'array' =>'element_info'),182 'vars' => array('string', 'location', 'array', 'element_info'), 183 183 'files' => array('include\functions_picture.inc.php (get_high_location)'), 184 184 ), … … 186 186 'name' => 'get_high_url', 187 187 'type' => 'trigger_event', 188 'vars' => array('string' => 'url', 'array' =>'element_info'),188 'vars' => array('string', 'url', 'array', 'element_info'), 189 189 'files' => array('include\functions_picture.inc.php (get_high_url)'), 190 190 ), … … 192 192 'name' => 'get_history', 193 193 'type' => 'trigger_event', 194 'vars' => array('array' => '', 'array' => 'page_search', 'array' =>'types'),194 'vars' => array('array', null, 'array', 'page_search', 'array', 'types'), 195 195 'files' => array('admin\history.php'), 196 196 ), … … 198 198 'name' => 'get_image_location', 199 199 'type' => 'trigger_event', 200 'vars' => array('string' => 'path', 'array' =>'element_info'),200 'vars' => array('string', 'path', 'array', 'element_info'), 201 201 'files' => array('include\functions_picture.inc.php (get_image_location)'), 202 202 ), … … 204 204 'name' => 'get_popup_help_content', 205 205 'type' => 'trigger_event', 206 'vars' => array('string' => 'help_content', 'string' =>'page'),206 'vars' => array('string', 'help_content', 'string', 'page'), 207 207 'files' => array('admin\popuphelp.php', 'popuphelp.php'), 208 208 ), … … 210 210 'name' => 'get_pwg_themes', 211 211 'type' => 'trigger_event', 212 'vars' => array('array' =>'themes'),212 'vars' => array('array', 'themes'), 213 213 'files' => array('include\functions.inc.php (get_pwg_themes)'), 214 214 ), … … 216 216 'name' => 'get_thumbnail_title', 217 217 'type' => 'trigger_event', 218 'vars' => array('string' => 'title', 'array' =>'info'),218 'vars' => array('string', 'title', 'array', 'info'), 219 219 'files' => array('include\functions.inc.php (get_thumbnail_title)'), 220 220 ), … … 222 222 'name' => 'get_comments_derivative_params', 223 223 'type' => 'trigger_event', 224 'vars' => array('ImageStdParams' =>null),224 'vars' => array('ImageStdParams', null), 225 225 'files' => array('comments.php'), 226 226 'infos' => 'New in 2.4', … … 229 229 'name' => 'get_index_album_derivative_params', 230 230 'type' => 'trigger_event', 231 'vars' => array('ImageStdParams' =>null),231 'vars' => array('ImageStdParams', null), 232 232 'files' => array('includecategory_cats.php', 'include\category_default.inc.php'), 233 233 'infos' => 'New in 2.4', … … 236 236 'name' => 'get_src_image_url', 237 237 'type' => 'trigger_event', 238 'vars' => array('string' => 'url', 'SrcImage' =>'this'),238 'vars' => array('string', 'url', 'SrcImage', 'this'), 239 239 'files' => array('include\derivative.inc.php (SrcImage::__construct)'), 240 240 'infos' => 'New in 2.4', … … 243 243 'name' => 'get_derivative_url', 244 244 'type' => 'trigger_event', 245 'vars' => array('string' => 'url', 'ImageStdParams' => null, 'SrcImage' => 'this', 'string' =>'rel_url'),245 'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'), 246 246 'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'), 247 247 'infos' => 'New in 2.4', … … 257 257 'name' => 'invalidate_user_cache', 258 258 'type' => 'trigger_action', 259 'vars' => array('bool' =>'full'),259 'vars' => array('bool', 'full'), 260 260 'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'), 261 261 ), … … 263 263 'name' => 'list_check_integrity', 264 264 'type' => 'trigger_action', 265 'vars' => array('object' =>'this'),265 'vars' => array('object', 'this'), 266 266 'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'), 267 267 ), … … 269 269 'name' => 'load_image_library', 270 270 'type' => 'trigger_action', 271 'vars' => array('object' =>'this'),271 'vars' => array('object', 'this'), 272 272 'files' => array('admin\include\image.class.php (pwg_image::__construct)'), 273 273 ), … … 275 275 'name' => 'load_profile_in_template', 276 276 'type' => 'trigger_action', 277 'vars' => array('array' =>'userdata'),277 'vars' => array('array', 'userdata'), 278 278 'files' => array('profile.php (load_profile_in_template)'), 279 279 ), … … 341 341 'name' => 'loc_begin_index_category_thumbnails', 342 342 'type' => 'trigger_action', 343 'vars' => array('array' =>'categories'),343 'vars' => array('array', 'categories'), 344 344 'files' => array('include\category_cats.inc.php'), 345 345 ), … … 347 347 'name' => 'loc_begin_index_thumbnails', 348 348 'type' => 'trigger_action', 349 'vars' => array('array' =>'pictures'),349 'vars' => array('array', 'pictures'), 350 350 'files' => array('include\category_default.inc.php'), 351 351 ), … … 413 413 'name' => 'loc_end_index_category_thumbnails', 414 414 'type' => 'trigger_event', 415 'vars' => array('array' => 'tpl_thumbnails_var', 'array' =>'categories'),415 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'categories'), 416 416 'files' => array('include\category_cats.inc.php'), 417 417 ), … … 419 419 'name' => 'loc_end_index_thumbnails', 420 420 'type' => 'trigger_event', 421 'vars' => array('array' => 'tpl_thumbnails_var', 'array' =>'pictures'),421 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'), 422 422 'files' => array('include\category_default.inc.php'), 423 423 ), … … 456 456 'name' => 'loc_visible_user_list', 457 457 'type' => 'trigger_event', 458 'vars' => array('array' =>'visible_user_list'),458 'vars' => array('array', 'visible_user_list'), 459 459 'files' => array('admin\user_list.php'), 460 460 ), … … 462 462 'name' => 'login_failure', 463 463 'type' => 'trigger_action', 464 'vars' => array('string' =>'username'),464 'vars' => array('string', 'username'), 465 465 'files' => array('include\functions_user.inc.php (try_log_user)'), 466 466 ), … … 468 468 'name' => 'login_success', 469 469 'type' => 'trigger_action', 470 'vars' => array('string' =>'username'),470 'vars' => array('string', 'username'), 471 471 'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'), 472 472 ), … … 474 474 'name' => 'mail_group_assign_vars', 475 475 'type' => 'trigger_event', 476 'vars' => array('array' =>'assign_vars'),476 'vars' => array('array', 'assign_vars'), 477 477 'files' => array('include\functions_mail.inc.php (pwg_mail_group)'), 478 478 ), … … 486 486 'name' => 'nbm_render_global_customize_mail_content', 487 487 'type' => 'trigger_event', 488 'vars' => array('string' =>'customize_mail_content'),488 'vars' => array('string', 'customize_mail_content'), 489 489 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), 490 490 ), … … 492 492 'name' => 'nbm_render_user_customize_mail_content', 493 493 'type' => 'trigger_event', 494 'vars' => array('string' => 'customize_mail_content', 'string' =>'nbm_user'),494 'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'), 495 495 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), 496 496 ), … … 498 498 'name' => 'perform_batch_manager_prefilters', 499 499 'type' => 'trigger_event', 500 'vars' => array('array' => 'filter_sets', 'string' =>'session_prefilter'),500 'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'), 501 501 'files' => array('admin\batch_manager.php'), 502 502 ), … … 504 504 'name' => 'picture_pictures_data', 505 505 'type' => 'trigger_event', 506 'vars' => array('array' =>'picture'),506 'vars' => array('array', 'picture'), 507 507 'files' => array('picture.php'), 508 508 ), … … 516 516 'name' => 'pwg_log_allowed', 517 517 'type' => 'trigger_event', 518 'vars' => array('bool' => 'do_log', 'int' => 'image_id', 'string' =>'image_type'),518 'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'), 519 519 'files' => array('include\functions.inc.php (pwg_log)'), 520 520 ), … … 522 522 'name' => 'register_user', 523 523 'type' => 'trigger_action', 524 'vars' => array('array' =>'user'),524 'vars' => array('array', 'user'), 525 525 'files' => array('include\functions_user.inc.php (register_user)'), 526 526 ), … … 528 528 'name' => 'register_user_check', 529 529 'type' => 'trigger_event', 530 'vars' => array('array' => 'errors', 'array' =>'user'),530 'vars' => array('array', 'errors', 'array', 'user'), 531 531 'files' => array('include\functions_user.inc.php (register_user)'), 532 532 ), … … 534 534 'name' => 'render_category_description', 535 535 'type' => 'trigger_event', 536 'vars' => array('string' => 'category_description', 'string' =>'action'),536 'vars' => array('string', 'category_description', 'string', 'action'), 537 537 'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'), 538 538 ), … … 540 540 'name' => 'render_category_literal_description', 541 541 'type' => 'trigger_event', 542 'vars' => array('string' =>'category_description'),542 'vars' => array('string', 'category_description'), 543 543 'files' => array('include\category_cats.inc.php'), 544 544 ), … … 546 546 'name' => 'render_category_name', 547 547 'type' => 'trigger_event', 548 'vars' => array('string' => 'category_name', 'string' =>'location'),548 'vars' => array('string', 'category_name', 'string', 'location'), 549 549 'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'), 550 550 ), … … 552 552 'name' => 'render_comment_author', 553 553 'type' => 'trigger_event', 554 'vars' => array('string' =>'comment_author'),554 'vars' => array('string', 'comment_author'), 555 555 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), 556 556 ), … … 558 558 'name' => 'render_comment_content', 559 559 'type' => 'trigger_event', 560 'vars' => array('string' =>'comment_content'),560 'vars' => array('string', 'comment_content'), 561 561 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), 562 562 ), … … 564 564 'name' => 'render_element_content', 565 565 'type' => 'trigger_event', 566 'vars' => array('string' => 'content', 'array' =>'current_picture'),566 'vars' => array('string', 'content', 'array', 'current_picture'), 567 567 'files' => array('picture.php'), 568 568 ), … … 570 570 'name' => 'render_element_description', 571 571 'type' => 'trigger_event', 572 'vars' => array('string' =>'element_name'),572 'vars' => array('string', 'element_name'), 573 573 'files' => array('include\functions.inc.php (get_picture_title)', 'picture.php'), 574 574 ), … … 576 576 'name' => 'render_lost_password_mail_content', 577 577 'type' => 'trigger_event', 578 'vars' => array('string' =>'message'),578 'vars' => array('string', 'message'), 579 579 'files' => array('password.php (process_password_request)'), 580 580 ), … … 582 582 'name' => 'render_page_banner', 583 583 'type' => 'trigger_event', 584 'vars' => array('string' =>'gallery_title'),584 'vars' => array('string', 'gallery_title'), 585 585 'files' => array('include\page_header.php'), 586 586 ), … … 588 588 'name' => 'render_tag_name', 589 589 'type' => 'trigger_event', 590 'vars' => array('string' =>'tag_name'),590 'vars' => array('string', 'tag_name'), 591 591 'files' => array('include\functions.php (get_taglist)', 'admin\tags.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'index.php'), 592 592 ), … … 594 594 'name' => 'render_tag_url', 595 595 'type' => 'trigger_event', 596 'vars' => array('string' =>'tag_name'),596 'vars' => array('string', 'tag_name'), 597 597 'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), 598 598 ), … … 600 600 'name' => 'save_profile_from_post', 601 601 'type' => 'trigger_action', 602 'vars' => array('int' =>'user_id'),602 'vars' => array('int', 'user_id'), 603 603 'files' => array('profile.php (save_profile_from_post)'), 604 604 ), … … 606 606 'name' => 'send_mail', 607 607 'type' => 'trigger_event', 608 'vars' => array('bool' => 'result', 'string' => 'mail_to', 'string' => 'mail_subject', 'string' => 'mail_content', 'array' =>'mail_headers'),608 'vars' => array('bool', 'result', 'string', 'mail_to', 'string', 'mail_subject', 'string', 'mail_content', 'array', 'mail_headers'), 609 609 'files' => array('include\functions_mail.inc.php (pwg_mail)'), 610 610 ), … … 612 612 'name' => 'send_mail_content', 613 613 'type' => 'trigger_event', 614 'vars' => array('string' =>'content'),614 'vars' => array('string', 'content'), 615 615 'files' => array('include\functions_mail.inc.php (pwg_mail)'), 616 616 ), … … 618 618 'name' => 'send_mail_headers', 619 619 'type' => 'trigger_event', 620 'vars' => array('array' =>'headers'),620 'vars' => array('array', 'headers'), 621 621 'files' => array('include\functions_mail.inc.php (pwg_mail)'), 622 622 ), … … 624 624 'name' => 'send_mail_subject', 625 625 'type' => 'trigger_event', 626 'vars' => array('string' =>'cvt_subject'),626 'vars' => array('string', 'cvt_subject'), 627 627 'files' => array('include\functions_mail.inc.php (pwg_mail)'), 628 628 ), … … 630 630 'name' => 'send_mail_to', 631 631 'type' => 'trigger_event', 632 'vars' => array('string' =>'to'),632 'vars' => array('string', 'to'), 633 633 'files' => array('include\functions_mail.inc.php (pwg_mail)'), 634 634 ), … … 636 636 'name' => 'sendResponse', 637 637 'type' => 'trigger_action', 638 'vars' => array('string' =>'encodedResponse'),638 'vars' => array('string', 'encodedResponse'), 639 639 'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'), 640 640 ), … … 642 642 'name' => 'set_status_header', 643 643 'type' => 'trigger_action', 644 'vars' => array('int' => 'code', 'string' =>'text'),644 'vars' => array('int', 'code', 'string', 'text'), 645 645 'files' => array('include\functions_html.inc.php (set_status_header)'), 646 646 ), 647 647 array( 648 'name' => 'tabsheet_before_select', 649 'type' => 'trigger_event', 650 'vars' => array('array', 'sheets', 'string', 'tabsheet_id'), 651 'files' => array('include\tabsheet.class.php (tabsheet::select)'), 652 'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets', 653 ), 654 array( 648 655 'name' => 'trigger', 649 656 'type' => 'trigger_action', 650 'vars' => array('array' => ''),657 'vars' => array('array', null), 651 658 'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'), 652 659 ), … … 654 661 'name' => 'user_comment_check', 655 662 'type' => 'trigger_event', 656 'vars' => array('string' => 'comment_action', 'array' =>'comm'),663 'vars' => array('string', 'comment_action', 'array', 'comm'), 657 664 'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'), 658 665 'infos' => 'use this trigger to add conditions on comment validation', … … 661 668 'name' => 'user_comment_deletion', 662 669 'type' => 'trigger_action', 663 'vars' => array('mixed' =>'comment_id'),670 'vars' => array('mixed', 'comment_id'), 664 671 'files' => array('include\functions_comment.inc.php (delete_user_comment)'), 665 672 'infos' => '$comment_id is and int or an array of int', … … 668 675 'name' => 'user_comment_insertion', 669 676 'type' => 'trigger_action', 670 'vars' => array('array' =>'comm'),677 'vars' => array('array', 'comm'), 671 678 'files' => array('include\picture_comment.inc.php'), 672 679 ), … … 674 681 'name' => 'user_comment_validation', 675 682 'type' => 'trigger_action', 676 'vars' => array('mixed' =>'comment_id'),683 'vars' => array('mixed', 'comment_id'), 677 684 'files' => array('include\functions_comment.inc.php (validate_user_comment)'), 678 685 'infos' => '$comment_id is and int or an array of int', … … 681 688 'name' => 'user_init', 682 689 'type' => 'trigger_action', 683 'vars' => array('array' =>'user'),690 'vars' => array('array', 'user'), 684 691 'files' => array('include\user.inc.php'), 685 692 ), … … 687 694 'name' => 'ws_add_methods', 688 695 'type' => 'trigger_action', 689 'vars' => array('object' =>'this'),696 'vars' => array('object', 'this'), 690 697 'files' => array('include\ws_core.inc.php (PwgServer::run)'), 691 698 ), … … 693 700 'name' => 'ws_invoke_allowed', 694 701 'type' => 'trigger_event', 695 'vars' => array('bool' => '', 'string' => 'methodName', 'array' =>'params'),702 'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'), 696 703 'files' => array('include\ws_core.inc.php (PwgServer::invoke)'), 697 704 ), … … 744 751 <td>'.$trigger['type'].'</td> 745 752 <td>'; 746 $f=1; 747 foreach ($trigger['vars'] as $type => $name) 753 for ($i=0; $i<count($trigger['vars']); $i+=2) 748 754 { 749 if ( !$f) echo ', '; $f=0;750 echo $t ype.' '.(!empty($name)?'<i>$'.$name.'</i>':'');755 if ($i>0) echo ', '; 756 echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null); 751 757 } 752 758 echo '
Note: See TracChangeset
for help on using the changeset viewer.