Lines Matching defs:event
26 * plugin should use this method to register its handlers with the dokuwiki's event controller
50 public function handle_indexer_version($event, $param) {
51 $event->data['plugin_include'] = '0.1.safeindex='.$this->getConf('safeindex');
55 * Handles the INDEXER_PAGE_ADD event, prevents indexing of metadata from included pages that aren't public if enabled
57 * @param Doku_Event $event the event object
60 public function handle_indexer(Doku_Event $event, $params) {
70 $inclmeta = p_get_metadata($event->data['page'], 'plugin_include', METADATA_RENDER_UNLIMITED);
91 $meta = p_read_metadata($event->data['page']); // load the original metdata
92 $meta = p_render_metadata($event->data['page'], $meta); // render the metadata
93 p_save_metadata($event->data['page'], $meta); // save the metadata so other event handlers get the public metadata, too
98 $tag_called = isset($event->data['metadata']['subject']);
100 // Reset the metadata in the renderer. This removes data from all other event handlers, but we need to be on the safe side here.
101 $event->data['metadata'] = array('title' => $meta['title']);
105 $event->data['metadata']['relation_references'] = array_keys($meta['relation']['references']);
107 $event->data['metadata']['relation_references'] = array();
115 $event->data['metadata']['subject'] = $tag_helper->_cleanTagList($meta['subject']);
117 $event->data['metadata']['subject'] = array();
131 function handle_metadata(&$event, $param) {
135 dbglog($event->data);
146 function handle_parser(Doku_Event $event, $param) {
150 $ins =& $event->data->calls;
178 function handle_form(Doku_Event $event, $param)
182 if(is_a($event->data, \dokuwiki\Form\Form::class)) {
183 $event->data->setHiddenField('redirect_id', cleanID($_REQUEST['redirect_id']));
186 $event->data->addHidden('redirect_id', cleanID($_REQUEST['redirect_id']));
193 function handle_redirect(Doku_Event &$event, $param) {
200 p_set_metadata($event->data['id'], array(), true);
202 $event->data['id'] = cleanID($_REQUEST['redirect_id']);
203 $event->data['title'] = '';
210 function _cache_prepare(Doku_Event &$event, $param) {
214 $cache =& $event->data;
264 function handle_secedit_button(Doku_Event &$event, $params) {
270 $data = $event->data;
292 $event->result = '<div class="secedit">' . DOKU_LF .
320 $event->result = "<div class='secedit editbutton_" . $data['target'] .
328 $event->result = '';
331 return; // return so the event won't be stopped
334 $event->preventDefault();
335 $event->stopPropagation();
338 public function handle_move_register(Doku_Event $event, $params) {
339 $event->data['handlers']['include_include'] = array($this, 'rewrite_include');