Ben Coburn wrote:
Or you can trigger your own event - which the action plugin will have already registered for. e.g.
If you want to call a method on the plugin object, it becomes a little more complicated. This will give the method access to the plugin object's members through the $this keyword. To call a plugin method you could do the following:
$ret = false; $obj =& plugin_load('action', 'example'); // plugin type, plugin name if ($obj!==NULL) { $ret = $obj->method_name($arg1, $arg2); }
(the last two parameters are optional)
Chris -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist