DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:xmlrpc_callback_register

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:event:xmlrpc_callback_register [2012-10-23 21:17] – Spelling: XMLRPC -> XML-RPC Matt2devel:event:xmlrpc_callback_register [2018-12-08 16:14] (current) – doc updated according to issue #2615 torpedo
Line 1: Line 1:
-^ This event will be replaced by [[devel:Remote Plugins]] ^+^ This event is replaced by [[devel:Remote Plugins]] ^
  
 ====== XMLRPC_CALLBACK_REGISTER ====== ====== XMLRPC_CALLBACK_REGISTER ======
Line 8: Line 8:
 Preventable:    yes Preventable:    yes
 Added_dt:       2008-08-24 Added_dt:       2008-08-24
 +Removed_dt:     2012-03-23
 ---- ----
  
-The event is signalled by [[xref>dokuwiki_xmlrpc_server()]] in [[xref>lib/exe/xmlrpc.php]]. You can use this event to register your own XML-RPC callbacks.+<del>The event is signalled by [[xref>dokuwiki_xmlrpc_server()]] in [[xref>lib/exe/xmlrpc.php]]. You can use this event to register your own XML-RPC callbacks.</del> Event removed: use [[plugintype>64#extension__table|Remote Plugins]]
  
 ===== Passed Data ===== ===== Passed Data =====
Line 16: Line 17:
 The XML-RPC server object. The XML-RPC server object.
  
-===== Plugins handling this event ===== 
- 
-The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself. 
- 
-  * FIXME 
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>XMLRPC_CALLBACK_REGISTER|Code related to this event]] used in any DokuWiki's files, plugins and templates
 +  * [[devel:Remote Plugins]]
   * [[devel:Action Plugins]]   * [[devel:Action Plugins]]
   * [[devel:Events]]   * [[devel:Events]]
Line 34: Line 32:
 First register the call back hook to a function that will actually add the xml-rpc call. First register the call back hook to a function that will actually add the xml-rpc call.
 <code php> <code php>
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
         $controller->register_hook('XMLRPC_CALLBACK_REGISTER', 'BEFORE',  $this, 'registerCallback');         $controller->register_hook('XMLRPC_CALLBACK_REGISTER', 'BEFORE',  $this, 'registerCallback');
     }     }
devel/event/xmlrpc_callback_register.1351019822.txt.gz · Last modified: 2012-10-23 21:17 by Matt2

Except where otherwise noted, content on this wiki is licensed under the following license: 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