Trace: » inline-horizontal » leave-out » rolling-vertical » simple » sitemap-style » stacking-collapsing » styledlist » unlimited » veel_gestelde_vragen » observer_event_list
Translations of this page?:
General
Getting & Giving Support
Administration
Design
- Tut. - Layouts and Themes
- Tut. - Navigation cookbook
- Tut. - How To section
Reference Material
Plugin Development
- Tut. - Writing a plugin
- Ref. - List of Events
- Ref. - Enabling cron jobs
- Ref. - PHPDoc
Core Development
- Ref. - PHPDoc
Press information
Wolf CMS books section
Introduction
The Wolf CMS events system, also known as the observer system, has a number of events which will continue to expand in the future.
The know how to use the events listed here, see The Observer System Introduction
Here is the events list with their parameters, updated for Wolf CMS 0.8.0:
Observer::notify('admin_after_logout', $username); Observer::notify('admin_login_failed', $data['username']); Observer::notify('admin_login_success', $data['username']); Observer::notify('comment_after_add', $comment); Observer::notify('comment_after_approve', $comment); Observer::notify('comment_after_delete', $comment); Observer::notify('comment_after_edit', $comment); Observer::notify('comment_after_unapprove', $comment); Observer::notify('cron_run'); Observer::notify('csrf_token_invalid', AuthUser::getUserName()); // Since 0.7.0 Observer::notify('csrf_token_not_found', AuthUser::getUserName()); // Since 0.7.0 Observer::notify('dispatch_route_found', $uri); Observer::notify('layout_after_add', $layout); Observer::notify('layout_after_delete', $layout); Observer::notify('layout_after_edit', $layout); Observer::notify('login_requested', $redirect); // Since 0.7.5 Observer::notify('login_required', $redirect); // Since 0.7.5 Observer::notify('logout_requested'); // Since 0.7.0 Observer::notify('page_add_before_save', $page); // Added in Rev251 for 0.7.0 Observer::notify('page_add_after_save', $page); Observer::notify('page_before_execute_layout'); Observer::notify('page_delete', $page); Observer::notify('page_edit_before_save', $page); // Added in Rev251 for 0.7.0 Observer::notify('page_edit_after_save', $page); Observer::notify('page_found', $page); Observer::notify('page_not_found', $uri); // $uri parameter as of 0.8.0 Observer::notify('page_requested', $uri); Observer::notify('part_add_before_save', $part); // Since 0.7.0 Observer::notify('part_add_after_save', $part); // Since 0.7.0 Observer::notify('part_edit_after_save', $part); // Since 0.7.0 Observer::notify('part_edit_before_save', $part); // Since 0.7.0 Observer::notify('plugin_after_disable', $plugin); Observer::notify('plugin_after_enable', $plugin); Observer::notify('plugin_after_uninstall', $plugin); Observer::notify('snippet_after_add', $snippet); Observer::notify('snippet_after_delete', $snippet); Observer::notify('snippet_after_edit', $snippet); Observer::notify('user_after_add', $user->name); Observer::notify('user_after_delete', $user->name); Observer::notify('user_after_edit', $user->name); Observer::notify('user_edit_view_after_details', $user); // Since 0.7.0 Observer::notify('view_backend_list_plugin', $plugin_name, $plugin); Observer::notify('view_page_edit_plugins', $page); Observer::notify('view_page_edit_tab_links', $page); // Added in for 0.7.4 Observer::notify('view_page_edit_popup', $page); Observer::notify('view_page_edit_tabs', $page); Observer::notify('view_page_after_edit_tabs', $page);
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
