1<?php
2// must be run within DokuWiki
3if(!defined('DOKU_INC')) die();
4
5if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
6require_once DOKU_PLUGIN.'syntax.php';
7
8/**
9 * All DokuWiki plugins to extend the parser/rendering mechanism
10 * need to inherit from this class
11 */
12class action_plugin_alphalist extends DokuWiki_Action_Plugin {
13    function register(Doku_Event_Handler $controller) {
14	$controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, '_preventCache', array ());
15    }
16    /**
17     * Prevents page caching
18     * @param mixed $param the parameters passed to register_hook when this handler was registered
19     * @param object $event event object by reference
20     */
21    function _preventCache(&$event, $param)
22    {
23	$event->preventDefault();
24	$event->stopPropagation();
25	$event->result = false;
26    }
27}
28