Lines Matching defs:event
21 * Registers a callback function for a given event
23 * @param EventHandler $controller DokuWiki's event controller object
50 * @param Event $event event object by reference
56 public function handleToolbarDefine(Event $event, $param)
58 $event->data[] = [
68 * @param Event $event
71 public function addFilterToSearchForm(Event $event, $param)
74 $searchForm = $event->data;
81 * Handles the FORM_QUICKSEARCH_OUTPUT event
83 * @param Event $event event object by reference
89 public function handleFormQuicksearchOutput(Event $event, $param)
92 $qsearchForm = $event->data;
101 * @param Event $event
104 public function filterSearchResults(Event $event, $param)
110 $event->result = array_filter($event->result, function ($key) {
117 * [Custom event handler which performs action]
119 * @param Event $event event object by reference
125 public function handleParserMetadataRender(Event $event, $param)
138 $page = $event->data['current']['last_change']['id'];
140 if (isset($event->data['current']['plugin']['watchcycle'])) {
141 $watchcycle = $event->data['current']['plugin']['watchcycle'];
143 $changes = $this->getLastMaintainerRev($event->data, $watchcycle['maintainer'], $last_maintainer_rev);
184 $event->data['current']['plugin']['watchcycle']['last_maintainer_rev'] = $last_maintainer_rev;
185 $event->data['current']['plugin']['watchcycle']['changes'] = $changes;
194 * @param Event $event
197 public function handleAjaxGet(Event $event, $param)
199 if ($event->data != 'plugin_watchcycle_get') return;
200 $event->preventDefault();
201 $event->stopPropagation();
223 * @param Event $event
226 public function handleAjaxValidate(Event $event, $param)
228 if ($event->data != 'plugin_watchcycle_validate') return;
229 $event->preventDefault();
230 $event->stopPropagation();
337 * @param Event $event event object by reference
343 public function handleParserCacheUse(Event $event, $param)
348 if ($helper->daysAgo($event->data->_time) >= 1) {
349 $event->result = false;
356 * @param Event $event event object by reference
362 public function handlePagesaveBefore(Event $event, $param)
364 if ($event->data['contentChanged']) {
369 if (!empty($event->data['summary'])) {
370 $event->data['contentChanged'] = true;
375 * called for event SEARCH_RESULT_PAGELOOKUP
377 * @param Event $event
380 public function addIconToPageLookupResult(Event $event, $param)
385 $icon = $helper->getSearchResultIconHTML($event->data['page']);
387 $event->data['listItemContent'][] = $icon;
392 * called for event SEARCH_RESULT_FULLPAGE
394 * @param Event $event
397 public function addIconToFullPageResult(Event $event, $param)
402 $icon = $helper->getSearchResultIconHTML($event->data['page']);
404 $event->data['resultHeader'][] = $icon;