Plugins
This page is a draft version, we apologize for that! Please ask in the forum for further information. You can also have a look into the API of the file /system/classes/core/Hooks.php.
BIGACE 2.5 introduced a brand new Plugin framework, which gives you the abbility to create your own CMS extensions - to hook into the core system without code modification.
There are two different ways of hooking into the system, one is to modify data (by a so called Filter), which is there to manipulate the results. The other way is to register an Action, which is executed when the system sends the signal.
We will provide you with more information soon, in the meanwhile, we give you a list of all available signals you can hook on.
Register your Plugin methods at the static class “Hooks” by calling:
Hooks::add_filter('event_name_to_hook_on', 'function_name_to_execute', importance, params_count); Hooks::add_action('event_name_to_hook_on', 'function_name_to_execute', importance, params_count);
If you need further events or filter, let us know in the feature request forum. We will add it to the BIGACE core.
Plugin files
Create a new PHP file below the /plugins/ directory and add this minimal code to it:
<?php /* Plugin Name: My plugin Plugin URI: http://www.example.com/plugin Description: This plugins does something useful. Author: Developer name Version: 0.1 Author URI: http://www.example.com/ */ ?>
After you added this header, your plugin will be available in the plugins tab of your extension administration. Activate it and it will be loaded on BIGACE startup.
Hook into the system with the filters and events given below and execute any code you like!
Filter
- apply_filter('admin_menu', $menu);
- apply_filters('edit_item_meta', array(), $item)
- apply_filters('credits', $allCredits)
- apply_filters('metatags', $values, $item);
- apply_filters('metatags_more', array(), $item);
- apply_filters('create_item_meta', array(), $itemtype)
- apply_filters('dialog_setting_images', $vars, $id)
- apply_filters('dialog_setting_links', $vars, $id)
Actions
- do_action('smarty_tpl_header', $MENU)
- do_action('smarty_tpl_footer', $MENU)
- do_action('page_header', $MENU)
- do_action('update_item', $itemtype, $id, $langid, $val, $timestamp)
- do_action('admin_header')
- do_action('admin_footer')
