Exemplo n.º 1
0
 /**
  * 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'));
 }
Exemplo n.º 2
0
 /**
  * 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'));
 }
Exemplo n.º 3
0
 /**
  * @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;
 }
Exemplo n.º 4
0
 /**
  * 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'));
 }
Exemplo n.º 5
0
 /**
  * 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'));
 }
Exemplo n.º 6
0
 /**
  * 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'));
 }
Exemplo n.º 7
0
 /**
  * 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'));
 }
Exemplo n.º 8
0
 /**
  * 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');
 }
Exemplo n.º 9
0
 /**
  * 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'));
 }