/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'create_obs_now', array($this, 'initialize_obs_content')); Door43_Ajax_Helper::register_handler($controller, 'create_obs_notes', array($this, 'initialize_obs_notes')); Door43_Ajax_Helper::register_handler($controller, 'create_obs_words', array($this, 'initialize_obs_words')); Door43_Ajax_Helper::register_handler($controller, 'create_obs_questions', array($this, 'initialize_obs_questions')); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { $controller->register_hook('TPL_ACT_RENDER', 'AFTER', $this, 'load_pagetools_script'); $controller->register_hook('TEMPLATE_PAGETOOLS_DISPLAY', 'BEFORE', $this, 'add_button'); Door43_Ajax_Helper::register_handler($controller, 'get_obs_doc_export_dlg', array($this, 'get_obs_doc_export_dlg')); Door43_Ajax_Helper::register_handler($controller, 'download_obs_template_docx', array($this, 'download_obs_template_docx')); }
/** * @param $controller * @param $requestName * @param array [object, string] $classInstanceAndMethod An array, the first item is the class instance, the second * item is the name of the callback function. The $event variable is passed as the only parameter. */ public static function register_handler($controller, $requestName, $classInstanceAndMethod) { if (empty(self::$instance)) { self::$instance = new Door43_Ajax_Helper($controller); } self::$instance->handlers[$requestName] = $classInstanceAndMethod; }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'upload_obs_docx', array($this, 'upload_obs_docx')); Door43_Ajax_Helper::register_handler($controller, 'publish_obs_docx', array($this, 'publish_obs_docx')); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller DokuWiki's event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'obsaudioupload_user_info_request', array($this, 'handle_ajax_call')); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'cross_origin_request', array($this, 'execute_request')); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller DokuWiki's event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'door43_register_edit', array($this, 'handle_ajax_call')); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { Door43_Ajax_Helper::register_handler($controller, 'obsaudioupload_bucket_config_request', array($this, 'handle_ajax_call')); $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_do_action'); }
/** * Registers a callback function for a given event * * @param Doku_Event_Handler $controller the DokuWiki event controller object * @return void */ public function register(Doku_Event_Handler $controller) { $controller->register_hook('TPL_ACT_RENDER', 'AFTER', $this, 'handle_obs_action'); Door43_Ajax_Helper::register_handler($controller, 'get_obs_doc_export_dlg', array($this, 'get_obs_doc_export_dlg')); Door43_Ajax_Helper::register_handler($controller, 'download_obs_template_docx', array($this, 'download_obs_template_docx')); }