16
Hello,
Quote:
kaotik wrote:
Hervet: how would this be implemented? Something like $XoopsHook? Wouldn't that be the idea Catzwolf is already sugesting with $hook = XoopsHook::getInstance();?
This is just a quick idea :
$service = XoopsServices::getInstance();
$service->call('mymodule', 'myMethod', 'Credentials', 'myParameter1', 'myParameter2', ...);
For example :
$service->call('News, 'CreateArticle', 'myFantasticPassword', array('Title' => 'My article', 'Content' => 'Hello world', etc));
For getting information :
$service->get('mymodule', 'myMethod', 'Credentials', parameters);
Several advantages :
1/ By using a XOOPS layer, XoopsServices, it will enable modules to speak between them and it will enable external "clients" to talk with us (a Java applet, another website etc)
2/ XOOPS itself could use this to communicate with modules. For examples for each module's search
This is just SOAP.
bye,
Hervé