DokuWiki

It's better when it's simple

ユーザ用ツール

サイト用ツール


ja:devel:action_plugins

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
ja:devel:action_plugins [2011-02-08 04:00] – [技術的なこと] 210.251.99.194ja:devel:action_plugins [2013-11-02 02:15] (現在) Klap-in
行 42: 行 42:
      * @return   not required      * @return   not required
      */      */
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
       $controller->register_hook(<EVENT NAME>, <EVENT ADVISE>, $this, <event handler function>, <parameters to be passed to event handler>);       $controller->register_hook(<EVENT NAME>, <EVENT ADVISE>, $this, <event handler function>, <parameters to be passed to event handler>);
     }     }
行 111: 行 111:
      * Register its handlers with the DokuWiki's event controller      * Register its handlers with the DokuWiki's event controller
      */      */
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
         $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,         $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,
                                    '_hookjs');                                    '_hookjs');
行 167: 行 167:
      * Register the eventhandlers      * Register the eventhandlers
      */      */
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
         $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());         $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());
     }     }
ja/devel/action_plugins.1297134043.txt.gz · 最終更新: 2011-02-08 04:00 by 210.251.99.194

特に明示されていない限り、本Wikiの内容は次のライセンスに従います: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki