Lines Matching refs:event
35 public function handleExistsCheck(Doku_Event $event)
37 if ($event->data !== 'plugin_diagrams_mediafile_existscheck') return;
38 $event->preventDefault();
39 $event->stopPropagation();
52 * @param Doku_Event $event AJAX_CALL_UNKNOWN
54 public function handleEditCheck(Doku_Event $event)
56 if ($event->data !== 'plugin_diagrams_mediafile_editcheck') return;
57 $event->preventDefault();
58 $event->stopPropagation();
83 * @param Doku_Event $event AJAX_CALL_UNKNOWN
85 public function handleIsDiagramCheck(Doku_Event $event)
87 if ($event->data !== 'plugin_diagrams_mediafile_isdiagramcheck') return;
88 $event->preventDefault();
89 $event->stopPropagation();
112 * @param Doku_Event $event AJAX_CALL_UNKNOWN
114 public function handleNamespaceCheck(Doku_Event $event)
116 if ($event->data !== 'plugin_diagrams_mediafile_nscheck') return;
117 $event->preventDefault();
118 $event->stopPropagation();
129 * @param Doku_Event $event MEDIA_SENDFILE
131 public function handleCSP(Doku_Event $event)
133 if ($event->data['ext'] === 'svg' && $this->helper->isDiagramFile($event->data['file'])) {
134 $event->data['csp'] = Diagrams::CSP;
141 * @param Doku_Event $event
144 public function registerMoveHandler(Doku_Event $event)
146 $event->data['handlers']['diagrams_mediafile'] = [new \syntax_plugin_diagrams_mediafile(), 'handleMove'];