Lines Matching refs:event

37      *          DokuWiki's event controller object.
42 // http://www.dokuwiki.org/devel:event:indexer_page_add
46 // http://www.dokuwiki.org/devel:event:sitemap_generate
81 * @param Event $event
82 * event object
84 final public function handleIndexerPageAdd(Event $event): void
86 // $event→data['page'] – the page id
87 // $event→data['body'] – empty, can be filled by additional content to index by your plugin
88 // $event→data['metadata'] – the metadata that shall be indexed. This is an array where the keys are the
91 $id = $event->data ['page'];
99 * @param Event $event
100 * event object
102 final public function removeFromIndex(Event $event): void
104 // event data:
112 Logger::debug("Event data in removeFromIndex.", $event->data);
113 if (@file_exists($event->data [0] [0])) {
115 if (!$event->data [0] [1]) {
117 if (empty($event->data [1])) {
119 $id = $event->data [2];
121 $id = $event->data [1] . ":" . $event->data [2];
134 * @param Event $event
136 final public function handleSitemapGenerateBefore(Event $event): void
140 $event->data ['items'] [] = new Item(ml($this->getConf('media_kml'), '', true, '&', true), $lastmod);
146 * @param Event $event
147 * event object, not used
149 final public function handleSitemapGenerateAfter(Event $event): bool
151 // $event→data['items']: Array of SitemapItem instances, the array of sitemap items that already
153 // $event→data['sitemap']: The path of the file the sitemap will be saved to.
176 * This additional handler is required as described at: https://www.dokuwiki.org/devel:event:tpl_act_unknown
178 * @param Event $event
179 * event object
181 final public function handleActionActPreprocess(Event $event): void
183 if ($event->data !== 'findnearby') {
186 $event->preventDefault();
192 * @param Event $event
193 * event object
199 final public function findnearby(Event $event, array $param): void
201 if ($event->data !== 'findnearby') {
204 $event->preventDefault();
324 * @param Event $event
326 final public function handleMediaUploaded(Event $event): void
335 Logger::debug("handleMediaUploaded::event data", $event->data);
339 if (str_contains($event->data [3], 'image/jpeg')) {
342 $indexer->indexImage($event->data [2]);
351 * @param Event $event event object with data
353 final public function handleMediaDeleted(Event $event): void
363 $indexer->deleteFromIndex('media__' . $event->data ['id']);
370 * @param Event $event the DokuWiki event. $event->data is a two-dimensional array of all meta headers.
373 * @see http://www.dokuwiki.org/devel:event:tpl_metaheader_output
375 final public function handleMetaheaderOutput(Event $event): void
378 $event->data ["link"] [] = ["type" => "application/atom+xml", "rel" => "alternate",
380 $event->data ["link"] [] = ["type" => "application/vnd.google-earth.kml+xml", "rel" => "alternate",
387 * @param Event $event
388 * the DokuWiki event
390 final public function popularity(Event $event): void
394 $event->data['spatialhelper']['version'] = $plugin_info['date'];
395 $event->data['spatialhelper']['dwversion'] = $versionInfo['date'];
396 $event->data['spatialhelper']['combinedversion'] = $versionInfo['date'] . '_' . $plugin_info['date'];