action plugins
This patch adds events and a third plugin type, "action" plugins, to DokuWiki. The patch doesn't include any event signalling, that will be added in later patches. Action plugins are loaded before most Dokuwiki processing takes place and at the same time are given the opportunity to register handlers (or hooks) to receive specific dokuwiki events. Other parts of Dokuwiki (e.g. templates and syntax plugins) can also register handlers to receive events. Any part of Dokuwiki can create and signal events, including templates and plugins. This patch also revises the admin plugin class by making it an extension of a new class, DokuWiki_Plugin. The DokuWiki_Plugin_Action class also extends this new class. Further details of events, their signalling and handling, and of action plugins will be added to wiki.splitbrain.org in due course :-) darcs-hash:20060414193737-9b6ab-f23d3d9b93e4c50a3ad97ced03eabc6c0363650b.gz
Showing
- doku.php 1 addition, 0 deletionsdoku.php
- inc/events.php 162 additions, 0 deletionsinc/events.php
- inc/pluginutils.php 1 addition, 1 deletioninc/pluginutils.php
- lib/plugins/action.php 24 additions, 0 deletionslib/plugins/action.php
- lib/plugins/admin.php 2 additions, 174 deletionslib/plugins/admin.php
- lib/plugins/base.php 190 additions, 0 deletionslib/plugins/base.php
inc/events.php
0 → 100644
lib/plugins/action.php
0 → 100644
lib/plugins/base.php
0 → 100644
Please register or sign in to comment