コード例 #1
0
ファイル: PopulateOBS.php プロジェクト: richmahn/Door43
 /**
  * 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'));
 }
コード例 #2
0
ファイル: ExportButtons.php プロジェクト: richmahn/Door43
 /**
  * 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'));
 }
コード例 #3
0
ファイル: ajax_helper.php プロジェクト: neutrinog/Door43
 /**
  * @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;
 }
コード例 #4
0
ファイル: UploadDocHandler.php プロジェクト: richmahn/Door43
 /**
  * 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'));
 }
コード例 #5
0
ファイル: GetUserInfo.php プロジェクト: richmahn/Door43
 /**
  * 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'));
 }
コード例 #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'));
 }
コード例 #7
0
ファイル: RegisterEdit.php プロジェクト: richmahn/Door43
 /**
  * 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'));
 }
コード例 #8
0
ファイル: GetBucketConfig.php プロジェクト: richmahn/Door43
 /**
  * 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');
 }
コード例 #9
0
ファイル: ExportButtons.php プロジェクト: neutrinog/Door43
 /**
  * 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'));
 }