示例#1
0
function xmlrpc_StockAdjustment($xmlrpcmsg)
{
    ob_start('ob_file_callback');
    /*x*/
    if ($xmlrpcmsg->getNumParams() == 6) {
        /*x*/
        $rtn = new xmlrpcresp(php_xmlrpc_encode(StockAdjustment($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), $xmlrpcmsg->getParam(3)->scalarval(), $xmlrpcmsg->getParam(4)->scalarval(), $xmlrpcmsg->getParam(5)->scalarval())));
        /*x*/
    } else {
        $rtn = new xmlrpcresp(php_xmlrpc_encode(StockAdjustment($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), $xmlrpcmsg->getParam(3)->scalarval(), '', '')));
        /*x*/
    }
    ob_end_flush();
    return $rtn;
}
示例#2
0
function xmlrpc_StockAdjustment($xmlrpcmsg)
{
    return new xmlrpcresp(php_xmlrpc_encode(StockAdjustment($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), $xmlrpcmsg->getParam(3)->scalarval(), $xmlrpcmsg->getParam(4)->scalarval(), $xmlrpcmsg->getParam(5)->scalarval())));
}