xref: /plugin/acknowledge/action.php (revision 4d6d17d0b62193a872b3445df4ca9f2301b8817d)
1*4d6d17d0SAndreas Gohr<?php
2*4d6d17d0SAndreas Gohr/**
3*4d6d17d0SAndreas Gohr * DokuWiki Plugin acknowledge (Action Component)
4*4d6d17d0SAndreas Gohr *
5*4d6d17d0SAndreas Gohr * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6*4d6d17d0SAndreas Gohr * @author  Andreas Gohr, Anna Dabrowska <dokuwiki@cosmocode.de>
7*4d6d17d0SAndreas Gohr */
8*4d6d17d0SAndreas Gohr
9*4d6d17d0SAndreas Gohr// must be run within Dokuwiki
10*4d6d17d0SAndreas Gohrif (!defined('DOKU_INC')) {
11*4d6d17d0SAndreas Gohr    die();
12*4d6d17d0SAndreas Gohr}
13*4d6d17d0SAndreas Gohr
14*4d6d17d0SAndreas Gohrclass action_plugin_acknowledge extends DokuWiki_Action_Plugin
15*4d6d17d0SAndreas Gohr{
16*4d6d17d0SAndreas Gohr
17*4d6d17d0SAndreas Gohr    /**
18*4d6d17d0SAndreas Gohr     * Registers a callback function for a given event
19*4d6d17d0SAndreas Gohr     *
20*4d6d17d0SAndreas Gohr     * @param Doku_Event_Handler $controller DokuWiki's event controller object
21*4d6d17d0SAndreas Gohr     *
22*4d6d17d0SAndreas Gohr     * @return void
23*4d6d17d0SAndreas Gohr     */
24*4d6d17d0SAndreas Gohr    public function register(Doku_Event_Handler $controller)
25*4d6d17d0SAndreas Gohr    {
26*4d6d17d0SAndreas Gohr        $controller->register_hook('AJAX_CALL_UNKNOWN', 'FIXME', $this, 'handle_ajax_call_unknown');
27*4d6d17d0SAndreas Gohr
28*4d6d17d0SAndreas Gohr    }
29*4d6d17d0SAndreas Gohr
30*4d6d17d0SAndreas Gohr    /**
31*4d6d17d0SAndreas Gohr     * [Custom event handler which performs action]
32*4d6d17d0SAndreas Gohr     *
33*4d6d17d0SAndreas Gohr     * Called for event:
34*4d6d17d0SAndreas Gohr     *
35*4d6d17d0SAndreas Gohr     * @param Doku_Event $event  event object by reference
36*4d6d17d0SAndreas Gohr     * @param mixed      $param  [the parameters passed as fifth argument to register_hook() when this
37*4d6d17d0SAndreas Gohr     *                           handler was registered]
38*4d6d17d0SAndreas Gohr     *
39*4d6d17d0SAndreas Gohr     * @return void
40*4d6d17d0SAndreas Gohr     */
41*4d6d17d0SAndreas Gohr    public function handle_ajax_call_unknown(Doku_Event $event, $param)
42*4d6d17d0SAndreas Gohr    {
43*4d6d17d0SAndreas Gohr    }
44*4d6d17d0SAndreas Gohr
45*4d6d17d0SAndreas Gohr}
46*4d6d17d0SAndreas Gohr
47