예제 #1
0
function xmlrpc_GetCurrencyList($xmlrpcmsg)
{
    ob_start('ob_file_callback');
    /*x*/
    if ($xmlrpcmsg->getNumParams() == 2) {
        /*x*/
        $rtn = new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval())));
        /*x*/
    } else {
        /*e*/
        $rtn = new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList('', '')));
        /*x*/
    }
    ob_end_flush();
    return $rtn;
}
예제 #2
0
function xmlrpc_GetCurrencyList($xmlrpcmsg)
{
    return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval())));
}