[pLog-svn] xmlrpc file change?

Jon Daley plogworld at jon.limedaley.com
Mon Jun 4 16:56:17 EDT 2007


On Mon, 4 Jun 2007, Oscar Renalias wrote:
> But I'm not so sure about the implementation... I don't like using
> functions rather than classes very much, and I don't like messing
> with $GLOBALS unless there really is no other option.
 	Right.

> One thing we could do is modify the XMLRPC server library (which is
> not maintained anymore anyway) and add support for method calls
> outside $this, so instead of this:
 	That's where I started, and I stopped because I figured IXR was 
still supported.

> The method-calling logic is implemented starting at line 340 of
> IXR_Library.lib.php, I don't think it's too difficult to modify it so
> that it parses the "class:method" line, then does "new $class" and
> finally "$class->$method". It needs a bit more work than if we move
> to the function-based approach but I think it's cleaner (at least
> from my OOP point of view, anyway)
 	Yes, definitely.  I'll do it that way instead.

> Even with this I wouldn't know how to get rid of $GLOBALS, unless
> every API implements a method called "register" or something that
> would return all the XMLRPC methods supported in an array.
 	Right, I wrote a getMethods() function that did that.

> Regarding the atom api, the 'atom' plugin already implements it (at
> least Atom 0.3) Did you mean to reimplement it totally (which is
> quite a bit of work) or just add missing features?
 	I haven't looked into yet.  I was hoping to do the gdata api, but 
it looks like a pretty big task, so I am not sure if I was up for it.  I 
will look at the atom plugin, I hadn't realized it existed.


More information about the pLog-svn mailing list