我在 php 中有以下代码通过 XML-RPC 进行连接:
$key = array(new xmlrpcval('id','integer'), new xmlrpcval('name', 'string'), new xmlrpcval('requirements','string'),new xmlrpcval('description','string'));
$msg = new xmlrpcmsg('execute');
$msg->addParam(new xmlrpcval($this->db, "string"));
$msg->addParam(new xmlrpcval(1, "int"));
$msg->addParam(new xmlrpcval($this->password, "string"));
$msg->addParam(new xmlrpcval("hr.job","string"));
$msg->addParam(new xmlrpcval("read", "string"));
$msg->addParam(new xmlrpcval($ids, "array"));
$msg->addParam(new xmlrpcval($key, "array"));
$resp = $client->send($msg);
$val = $resp->value();
$scalval = $val->scalarval();
一切正常,但我想在hr_job
不提供 id 的情况下读取所有记录,例如SELECT * FROM
.