Ticket #708 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

IXR lib cannot call server methods contained in a class object

Reported by: ringmaster Assigned to: matt
Priority: normal Milestone:
Component: XML-RPC Version: 1.5
Severity: minor Keywords:
Cc: ringmaster

Description

Using the new 'xmlrpc_methods' plugin hook, I tried to create a new XML-RPC method via a plugin. My plugin code is contained in a class to avoid namespace issues (See: http://codex.wordpress.org/Plugin_API#Avoiding_Function_Name_Collisions ).

I added the method to the method list using the class object array method ( $callback=array(&$myobject, 'methodname') ), but IXR_Server cannot execute methods declared in this manner. As a result, the only way to implement XML-RPC server methods inside a class is to extend the IXR_Server class, which can't be done from the xmlrpc_methods hook in WordPress.

Attachments

class-IXR.php.patch (1.1 kB) - added by ringmaster on 05/21/05 06:32:34.

Change History

01/17/05 20:45:38 changed by ringmaster

  • Patch set to No.

01/17/05 20:49:38 changed by ringmaster

  • Patch changed from No to Yes.

01/18/05 06:11:21 changed by matt

Looks groovy

01/18/05 06:12:49 changed by matt

  • owner changed from anonymous to matt.
  • fixed_in_version set to 1.5.
  • status changed from new to closed.
  • resolution changed from 10 to 20.

05/21/05 06:32:34 changed by ringmaster

  • attachment class-IXR.php.patch added.