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

Method more

basex-api/src/main/php/BaseXClient/Query.php:47–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 public function more()
48 {
49 if ($this->cache === null) {
50 $this->pos = 0;
51 $this->session->send(chr(4).$this->id.chr(0));
52 while (!$this->session->ok()) {
53 $this->cache[] = $this->session->readString();
54 }
55 if (!$this->session->ok()) {
56 throw new BaseXException($this->session->readString());
57 }
58 }
59 if ($this->pos < count($this->cache)) {
60 return true;
61 }
62 $this->cache = null;
63 return false;
64 }
65
66 public function next()
67 {

Callers 2

nextMethod · 0.95
validMethod · 0.95

Calls 3

okMethod · 0.65
sendMethod · 0.45
readStringMethod · 0.45

Tested by

no test coverage detected