Lines Matching defs:event
69 foreach ($events_dispatcher as $event => $data) {
72 $EVENT_HANDLER->register_hook($event, $advise, $this, $method);
77 public function test(\Doku_Event $event)
79 msg('<pre>' . hsc(print_r($event, 1)) . '</pre>');
82 public function formLoginOutput(\Doku_Event $event)
85 $form = $event->data;
94 public function formResendPwdOutput(\Doku_Event $event)
97 $form = $event->data;
107 public function formRegisterOutput(\Doku_Event $event)
110 $form = $event->data;
119 public function formRevisionsOutput(\Doku_Event $event)
122 $form = $event->data;
138 public function commonStyles(\Doku_Event $event)
141 $form = $event->data;
155 public function formUpdateProfileOutput(\Doku_Event $event)
158 $form = $event->data;
167 public function formProfileDeleteOutput(\Doku_Event $event)
170 $form = $event->data;
179 public function formEditOutput(\Doku_Event $event)
184 $form = $event->data;
197 public function htmlSecEditButton(\Doku_Event $event)
200 $html->load($event->result, true, false);
216 $event->result = $html->save();
221 public function htmlAccountFormOutput(\Doku_Event $event)
223 foreach ($event->data->_content as $key => $item) {
229 switch ($event->name) {
254 $event->data->_content[$key]['_legend'] = (($title_icon) ? iconify("mdi:$title_icon") : '') . ' ' . $event->data->_content[$key]['_legend'];
259 $event->data->_content[$key]['class'] = " $button_class";
260 $event->data->_content[$key]['value'] = (($button_icon) ? iconify("mdi:$button_icon") : '') . ' ' . $event->data->_content[$key]['value'];
267 * Handle HTML_DRAFTFORM_OUTPUT event
269 * @param \Doku_Event $event Event handler
273 public function htmlDraftForm(\Doku_Event $event)
275 foreach ($event->data->_content as $key => $item) {
278 $event->data->_content[$key]['class'] = ' btn btn-danger';
279 $event->data->_content[$key]['value'] = iconify('mdi:close') . ' ' . $event->data->_content[$key]['value'];
283 $event->data->_content[$key]['value'] = iconify('mdi:refresh') . ' ' . $event->data->_content[$key]['value'];
287 $event->data->_content[$key]['value'] = iconify('mdi:arrow-left') . ' ' . $event->data->_content[$key]['value'];
294 * Handle HTML_EDITFORM_OUTPUT and HTML_DRAFTFORM_OUTPUT event
296 * @param \Doku_Event $event Event handler
300 public function htmlEditForm(\Doku_Event $event)
302 foreach ($event->data->_content as $key => $item) {
306 $event->data->_content[$key]['class'] = ' btn btn-success';
307 $event->data->_content[$key]['value'] = iconify('mdi:content-save') . ' ' . $event->data->_content[$key]['value'];
312 $event->data->_content[$key]['value'] = iconify('mdi:file-document-outline') . ' ' . $event->data->_content[$key]['value'];
317 $event->data->_content[$key]['value'] = iconify('mdi:arrow-left') . ' ' . $event->data->_content[$key]['value'];
326 * @param \Doku_Event $event Event handler
330 public function htmlRevisionsFormOutput(\Doku_Event $event)
332 foreach ($event->data->_content as $key => $item) {
337 $event->data->_content[$key]['class'] .= ' label label-success';
341 $event->data->_content[$key]['class'] .= ' label label-danger';
347 $event->data->_content[$key]['class'] .= ' text-muted';
353 public function tplContent(\Doku_Event $event)
355 $event->data = $this->template->normalizeContent($event->data);
358 public function search(\Doku_Event $event)
360 if ($event->name == 'SEARCH_RESULT_PAGELOOKUP') {
361 array_unshift($event->data['listItemContent'], iconify('mdi:file-document-outline', ['title' => hsc($event->data['page'])]) . ' ');
364 if ($event->name == 'SEARCH_RESULT_FULLPAGE') {
365 $event->data['resultBody']['meta'] = str_replace(
368 '<small>' . $event->data['resultBody']['meta'] . '</small>'
379 * @param \Doku_Event $event
381 public function tplMetaHeaderOutput(\Doku_Event $event)
390 $event->data['script'][] = [
417 $event->data['style'][] = [
424 public function pluginTagLink(\Doku_Event $event)
426 $event->data['class'] .= ' tag label label-default mx-1';
427 $event->data['title'] = iconify('mdi:tag-text-outline') . ' ' . $event->data['title'];
430 public function tplIncPlugin(\Doku_Event $event)
432 $event->data['header'] = 'Header of page below the navbar (header)';
433 $event->data['topheader'] = 'Top Header of page (topheader)';
434 $event->data['pagefooter'] = 'Footer below the page content (pagefooter)';
435 $event->data['pageheader'] = 'Header above the page content (pageheader)';
436 $event->data['sidebarfooter'] = 'Footer below the sidebar (sidebarfooter)';
437 $event->data['sidebarheader'] = 'Header above the sidebar (sidebarheader)';
438 $event->data['rightsidebarfooter'] = 'Footer below the right-sidebar (rightsidebarfooter)';
439 $event->data['rightsidebarheader'] = 'Header above the right-sidebar (rightsidebarheader)';