DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:rpc_call_add

This is an old revision of the document!


This event is develonly

RPC_CALL_ADD

Description:
Map custom RPC call to existing one.
DefaultAction:
None
Preventable:
no
Added:
2012-03-23

This event is signalled by getCustomCallPlugins() in inc/remote.php when a remote call cannot be resolved by default naming scheme. Handlers can use it to add a alias for a existing remote method name.

Passed Data

The data passed is an (key-value)array. The key is always the method alias. The value is an array, with plugin name and remote method name.

<?php
array(
  'my.custom.call' => array('myplugin', 'mymethod'),
  'anothercall' => array('myplugin', 'mymethod')
)
do not overwrite the data array. Just add your calls to the array

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

devel/event/rpc_call_add.1332611852.txt.gz · Last modified: 2012-03-24 18:57 by 92.225.178.40

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