ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:addons:xmlrpc

The xmlrpc interface

The XML-RPC interface has been removed in ADOdb 5.21.0. Please refer to Issue #671 for further information.

requires 'contrib/toxmlrpc.inc.php'

Description

This experimental contribution creates an interface between an ADOdb recordset and the xmlrpc standard. The interface has 2 dependencies

API

The API exposes 3 public methods:


rs2xmlrpcval

Syntax
string rs2xmlrpcval(
       obj $recordeSet
       )

The method rs2xmlrpcval() takes an ADdb recordset and returns a string containing an xmlrpc formatted object.

Usage

include 'adodb/contrib/toxmlrpc.inc.php'
/*
* Connection assumed
*/
$sql = 'select * from orders';
$result = $db->execute($sql);
 
$rpc = rs2xmlrpc($result);
 
print $rpc;
/*
* prints the rpc object
*/

xmlrpcval2rs

Due to lack of maintenance this method is broken when used with the current xmlrpc library

Syntax
ADODBrecordset xmlrpcval2rs (
    string $xmlrpcval
    )

The method xmlrpcval2rs() takes a correctly formatted xmlrpc string and creates an ADOdb recordset object.


rs2xmlrpcstring

Due to lack of maintenance this method is broken when used with the current xmlrpc library

Syntax
ADODBrecordset rs2xmlrpcstring (
    string $xmlrpcval
    )

The method rs2xmlrpcstring () has an unknown utility

v5/addons/xmlrpc.txt · Last modified: 2023/06/26 11:28 by dregad