MCPcopy Create free account
hub / github.com/BaseXdb/basex / sendCmd

Method sendCmd

basex-api/src/main/php/BaseXClient/Session.php:238–245  ·  view source on GitHub ↗
($code, $arg, $input)

Source from the content-addressed store, hash-verified

236 }
237
238 private function sendCmd($code, $arg, $input)
239 {
240 $this->send(chr($code).$arg.chr(0).$input.chr(0));
241 $this->info = $this->receive();
242 if (!$this->ok()) {
243 throw new BaseXException($this->info);
244 }
245 }
246
247 /**
248 * Raises a socket error.

Callers 4

createMethod · 0.95
addMethod · 0.95
replaceMethod · 0.95
storeMethod · 0.95

Calls 3

sendMethod · 0.95
receiveMethod · 0.95
okMethod · 0.95

Tested by

no test coverage detected