Lines Matching defs:event
31 * Registers a callback function for a given event
57 * @param Event $event INIT_LANG_LOAD
59 public function translateUI(Event $event)
87 $event->data = $locale;
95 * @param Event $event TPL_METAHEADER_OUTPUT
97 public function translateJS(Event $event)
101 $count = count($event->data['script']);
104 array_key_exists('src', $event->data['script'][$i]) &&
105 strpos($event->data['script'][$i]['src'], '/lib/exe/js.php') !== false
107 $event->data['script'][$i]['src'] .= '&lang=' . hsc($conf['lang']);
115 * @param Event $event JS_CACHE_USE
117 public function translateJSCache(Event $event)
122 $event->data->__construct(
123 $event->data->key . $conf['lang'],
124 $event->data->ext
131 * @param Event $event TPL_CONTENT_DISPLAY
133 public function addLanguageAttributes(Event $event)
147 $event->data = '<div lang="' . hsc($locale) . '" dir="' . hsc($direction) . '">' .
148 $event->data .
157 * @param Event $event DOKUWIKI_STARTED
159 public function redirectStartPage(Event $event)
178 * @param Event $event TPL_METAHEADER_OUTPUT
180 public function addHrefLangAttributes(Event $event)
190 $event->data['link'][] = [
200 $event->data['link'][] = [
211 * @param Event $event COMMON_PAGETPL_LOAD
213 public function handlePageTemplates(Event $event)
228 $event->data['tpl'] = io_readFile(wikiFN($origfile));
233 $event->data['tpl'] = $warn . $event->data['tpl'];
256 $event->data['tpl'] = str_replace('@LANG@', $this->helper->realLC(''), $event->data['tpl']);
257 $event->data['tpl'] = str_replace('@TRANS@', $this->helper->getLangPart($ID), $event->data['tpl']);
264 * @param Event $event SEARCH_QUERY_PAGELOOKUP
266 public function sortSearchResults(Event $event)
270 foreach ($event->result as $r => $t) {
280 $event->result = [];
283 $event->result[$l[0]] = $l[1];