()
| 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 | { |
no test coverage detected