Welcome Guest, Not a member yet? Register   Sign In
[CI2.0] XML-RPC Server & Drivers
#3

[eluser]Schotte[/eluser]
[quote author="Jamie Rumbelow" date="1275887408"]Since the XML-RPC library is built into CodeIgniter's Standard Library, couldn't you just create a driver specific to your API, then use that to interface with the XML-RPC library directly?[/quote]

That's exactly what I am trying to do. The problem with using a driver is that it has the format $this->driver_name->driver_class->function(). To check whether this is a callable method does not work with is_callable(). Therefore I am looking for a solution how to check whether a driver is callable.

[quote author="Jamie Rumbelow" date="1275887408"]That would make more sense than trying to morph the actual library into a driver.[/quote]

I am not trying to morph the xml-rpc class into a driver. Just trying to change the function calls away from models. Drivers have the unique possibility of adding more functionality to them by altering the array "valid_drivers" (i.e. adding entries via mysql).

[quote author="Jamie Rumbelow" date="1275887408"]Also, there are some architectural differences with different types of APIs you'll want to take into account.[/quote]

Can you give brief examples?

Cheers for the quick response already,

Schotte


Messages In This Thread
[CI2.0] XML-RPC Server & Drivers - by El Forum - 06-06-2010, 03:24 PM
[CI2.0] XML-RPC Server & Drivers - by El Forum - 06-06-2010, 06:10 PM
[CI2.0] XML-RPC Server & Drivers - by El Forum - 06-07-2010, 02:37 AM
[CI2.0] XML-RPC Server & Drivers - by El Forum - 07-03-2010, 03:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB