1<?php 2/** 3 * Copyright (c) 2021. ComboStrap, Inc. and its affiliates. All Rights Reserved. 4 * 5 * This source code is licensed under the GPL license found in the 6 * COPYING file in the root directory of this source tree. 7 * 8 * @license GPL 3 (https://www.gnu.org/licenses/gpl-3.0.en.html) 9 * @author ComboStrap <support@combostrap.com> 10 * 11 * 12 */ 13 14use ComboStrap\Console; 15use ComboStrap\Event; 16use ComboStrap\ExceptionCompile; 17use ComboStrap\ExceptionNotFound; 18use ComboStrap\ExceptionRuntimeInternal; 19use ComboStrap\ExecutionContext; 20use ComboStrap\FileSystems; 21use ComboStrap\LogUtility; 22use ComboStrap\MarkupPath; 23use ComboStrap\Meta\Store\MetadataDbStore; 24use ComboStrap\Meta\Store\MetadataDokuWikiStore; 25use ComboStrap\PluginUtility; 26use ComboStrap\Reference; 27use ComboStrap\References; 28 29 30/** 31 * Just start our own event system 32 */ 33class action_plugin_combo_eventsystem extends DokuWiki_Action_Plugin 34{ 35 36 37 const CANONICAL = "event"; 38 39 public function register(Doku_Event_Handler $controller) 40 { 41 42 /** 43 * Process the event table 44 * 45 * We do it after because if there is an error 46 * It will not stop the Dokuwiki Processing 47 */ 48 $controller->register_hook('INDEXER_TASKS_RUN', 'AFTER', $this, 'processEventTable', array()); 49 50 51 } 52 53 /** 54 */ 55 public function processEventTable(Doku_Event $event, $param) 56 { 57 58 59 /** 60 * Process the async event 61 */ 62 Event::dispatchEvent(); 63 64 65 } 66 67 68 69 70} 71 72 73 74